@ds-autonomie/web-components 2.19.0 → 2.21.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 (730) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/cdn/chunks/{chunk.63UE4VAO.js → chunk.2FPBPQUJ.js} +4 -6
  3. package/cdn/chunks/chunk.2OLHSSGN.js +60 -0
  4. package/cdn/chunks/{chunk.HEWKH2LT.js → chunk.2OZWUNZO.js} +2 -2
  5. package/cdn/chunks/{chunk.FX5UP23Z.js → chunk.2TZ4LFPJ.js} +1 -1
  6. package/cdn/chunks/{chunk.WWTHUDXI.js → chunk.2V4YCZ2W.js} +5 -2
  7. package/cdn/chunks/chunk.2YKQ7H24.js +3 -0
  8. package/cdn/chunks/{chunk.KWBL3MII.js → chunk.353PHEPC.js} +1 -1
  9. package/cdn/chunks/{chunk.ZMEW7RFS.js → chunk.3I36IGZA.js} +1 -1
  10. package/cdn/chunks/chunk.3NZ4VRJF.js +62 -0
  11. package/cdn/chunks/{chunk.DRNNBI43.js → chunk.3Z6ANWYS.js} +1 -1
  12. package/cdn/chunks/{chunk.JR3UZ7RV.js → chunk.4DONSG7S.js} +5 -4
  13. package/cdn/chunks/chunk.4HFX2WWN.js +26 -0
  14. package/cdn/chunks/{chunk.GFXPRQI6.js → chunk.4IZELNZN.js} +4 -4
  15. package/cdn/chunks/{chunk.EFCT4GFV.js → chunk.52THFY6J.js} +1 -0
  16. package/cdn/chunks/{chunk.5KCVCUSX.js → chunk.5VZFKPSK.js} +1 -1
  17. package/cdn/chunks/chunk.5YSNZTMZ.js +1 -0
  18. package/cdn/chunks/{chunk.WRM72LHH.js → chunk.5ZXHNMZU.js} +1 -1
  19. package/cdn/chunks/{chunk.IDWQZLCM.js → chunk.67T75VHN.js} +8 -8
  20. package/cdn/chunks/{chunk.CEKPJB4F.js → chunk.6B4U6EHI.js} +7 -13
  21. package/cdn/chunks/{chunk.ZCITPD2M.js → chunk.6DSY52TF.js} +5 -5
  22. package/cdn/chunks/{chunk.JFT7O46L.js → chunk.6DVHKT6J.js} +1 -1
  23. package/cdn/chunks/{chunk.5OGTGPR7.js → chunk.6ETSOBAB.js} +1 -1
  24. package/cdn/chunks/{chunk.6MYWUUAG.js → chunk.6QUNPG2K.js} +11 -12
  25. package/cdn/chunks/{chunk.NEWW6U6M.js → chunk.6WO7QCUB.js} +2 -0
  26. package/cdn/chunks/{chunk.AZVWRRFP.js → chunk.6XSWDZ3K.js} +1 -1
  27. package/cdn/chunks/chunk.75OMKNKV.js +35 -0
  28. package/cdn/chunks/{chunk.JLB52ESL.js → chunk.7DI4X2VG.js} +1 -1
  29. package/cdn/chunks/chunk.7JVAXVTA.js +1 -0
  30. package/cdn/chunks/{chunk.H6KRGKOT.js → chunk.7T3GRSME.js} +1 -1
  31. package/cdn/chunks/{chunk.WMOV27WV.js → chunk.7U5JEAWJ.js} +1 -1
  32. package/cdn/chunks/{chunk.7WZQFRLE.js → chunk.A7WF23I3.js} +1 -1
  33. package/cdn/chunks/{chunk.VOJKFSPN.js → chunk.AGV4A3YT.js} +1 -1
  34. package/cdn/chunks/{chunk.KHGWE5IX.js → chunk.ALIA5R6V.js} +32 -34
  35. package/cdn/chunks/chunk.AM2ZR2Y2.js +19 -0
  36. package/cdn/chunks/{chunk.WYKFMOCB.js → chunk.AQOO2T52.js} +1 -1
  37. package/cdn/chunks/{chunk.7ZYAJWHQ.js → chunk.AWM5EZRY.js} +1 -1
  38. package/cdn/chunks/{chunk.CWT6MEMU.js → chunk.B6OZRSZK.js} +19 -23
  39. package/cdn/chunks/chunk.BFOG2B56.js +121 -0
  40. package/cdn/chunks/{chunk.JP66XCHO.js → chunk.BNTHEAJN.js} +8 -9
  41. package/cdn/chunks/chunk.BWWABV2J.js +66 -0
  42. package/cdn/chunks/{chunk.IUOHXTHC.js → chunk.C6L5URBB.js} +1 -1
  43. package/cdn/chunks/chunk.CFJ4QXH4.js +19 -0
  44. package/cdn/chunks/{chunk.U6OE2WNY.js → chunk.CT4MJF6T.js} +5 -5
  45. package/cdn/chunks/{chunk.KX5QV54N.js → chunk.CWRA4UT2.js} +1 -1
  46. package/cdn/chunks/chunk.DBVKBRPG.js +47 -0
  47. package/cdn/chunks/{chunk.SN7BDOHN.js → chunk.DEILGCUT.js} +12 -35
  48. package/cdn/chunks/{chunk.CIFSYLTI.js → chunk.DFZPEZNV.js} +1 -1
  49. package/cdn/chunks/{chunk.CMPRHBFO.js → chunk.DGEG6HVV.js} +1 -1
  50. package/cdn/chunks/{chunk.THWI644G.js → chunk.DZNXUAKA.js} +2 -2
  51. package/cdn/chunks/{chunk.43ZUOVN3.js → chunk.EMVVCZ7J.js} +8 -5
  52. package/cdn/chunks/{chunk.M5ND6PIZ.js → chunk.EQQUOYXA.js} +6 -6
  53. package/cdn/chunks/{chunk.STCKZYIM.js → chunk.EV47H3BZ.js} +1 -1
  54. package/cdn/chunks/chunk.EXQPVGOS.js +1 -0
  55. package/cdn/chunks/{chunk.AB4OF3RS.js → chunk.FASLFYND.js} +1 -1
  56. package/cdn/chunks/{chunk.K747WAAP.js → chunk.FSDHPRBJ.js} +9 -13
  57. package/cdn/chunks/{chunk.WWRGGVFZ.js → chunk.FVTT4MMC.js} +1 -1
  58. package/cdn/chunks/chunk.G4QC72M3.js +90 -0
  59. package/cdn/chunks/{chunk.F6P3DA77.js → chunk.GA4W656I.js} +3 -4
  60. package/cdn/chunks/chunk.GGN6W46J.js +33 -0
  61. package/cdn/chunks/{chunk.7IFO43EM.js → chunk.GHH7XYKB.js} +1 -1
  62. package/cdn/chunks/{chunk.YZO4H6DD.js → chunk.GL7V5QFT.js} +1 -1
  63. package/cdn/chunks/{chunk.CIKTPEVX.js → chunk.GLMWJUWZ.js} +2 -0
  64. package/cdn/chunks/chunk.GNP3HUWO.js +80 -0
  65. package/cdn/chunks/{chunk.MRVUEYXZ.js → chunk.GSE4BYLS.js} +1 -1
  66. package/cdn/chunks/{chunk.WEWRFZAQ.js → chunk.HACTOR3N.js} +1 -1
  67. package/cdn/chunks/{chunk.HCFW7RW4.js → chunk.HJIBYZA7.js} +33 -37
  68. package/cdn/chunks/{chunk.FYJYTPOV.js → chunk.HLXIBAA3.js} +2 -3
  69. package/cdn/chunks/{chunk.XOEINTMR.js → chunk.HPYWAFMA.js} +8 -11
  70. package/cdn/chunks/{chunk.RGBTVRRP.js → chunk.HTMFQPE5.js} +10 -12
  71. package/cdn/chunks/{chunk.VIXRVYB7.js → chunk.HZV5COH7.js} +1 -1
  72. package/cdn/chunks/chunk.I2EMSNY5.js +3 -0
  73. package/cdn/chunks/{chunk.MK2QCBNO.js → chunk.I2SFPZRT.js} +13 -13
  74. package/cdn/chunks/{chunk.HGNNGE53.js → chunk.I4AEWSTQ.js} +5 -5
  75. package/cdn/chunks/chunk.I6KH3RXW.js +31 -0
  76. package/cdn/chunks/{chunk.4IWXGSUM.js → chunk.IJ4EFTP2.js} +2 -2
  77. package/cdn/chunks/{chunk.T5OLUN3T.js → chunk.IZDRYSJI.js} +8 -8
  78. package/cdn/chunks/chunk.J34FMZ22.js +20 -0
  79. package/cdn/chunks/chunk.J5KWRJTH.js +121 -0
  80. package/cdn/chunks/{chunk.A5DTG2XB.js → chunk.JU47KXI6.js} +3 -3
  81. package/cdn/chunks/{chunk.GPW6JCHZ.js → chunk.K6LO352V.js} +1 -1
  82. package/cdn/chunks/{chunk.4VP4RPNY.js → chunk.KDJOQQSW.js} +1 -1
  83. package/cdn/chunks/{chunk.EJ5DXQU3.js → chunk.KIBXAWKS.js} +1 -0
  84. package/cdn/chunks/{chunk.LOZ2JZLU.js → chunk.KLTVL4KH.js} +12 -15
  85. package/cdn/chunks/{chunk.AYT5ORA7.js → chunk.KUSB4WKX.js} +1 -1
  86. package/cdn/chunks/{chunk.IDTMD6WQ.js → chunk.KZKCBYIC.js} +1 -1
  87. package/cdn/chunks/chunk.LCXOBOTQ.js +64 -0
  88. package/cdn/chunks/{chunk.5V6ZBY2X.js → chunk.LPXI2TGU.js} +1 -1
  89. package/cdn/chunks/{chunk.2JTZGBMF.js → chunk.LXVTY3UZ.js} +1 -1
  90. package/cdn/chunks/{chunk.2J6VNJAV.js → chunk.M4NNGNSF.js} +1 -1
  91. package/cdn/chunks/chunk.MIF4MK3R.js +47 -0
  92. package/cdn/chunks/{chunk.6HXGZFOB.js → chunk.MPOEF2AD.js} +1 -1
  93. package/cdn/chunks/{chunk.TS5WHKH6.js → chunk.N35G45JG.js} +1 -1
  94. package/cdn/chunks/{chunk.2QQVNGQU.js → chunk.NG2DZYRR.js} +1 -1
  95. package/cdn/chunks/{chunk.RNR6P3VA.js → chunk.NWYSJOVO.js} +1 -1
  96. package/cdn/chunks/{chunk.H46NZIZH.js → chunk.O7SAIPOG.js} +1 -1
  97. package/cdn/chunks/chunk.OE4QGAVP.js +40 -0
  98. package/cdn/chunks/{chunk.YBVIKP5F.js → chunk.OHC3KP3N.js} +2 -2
  99. package/cdn/chunks/chunk.OR4BPTYF.js +4 -0
  100. package/cdn/chunks/{chunk.E2GQJ6JW.js → chunk.OSQWNBGB.js} +1 -1
  101. package/cdn/chunks/{chunk.5PWPU25F.js → chunk.OX4H5VZP.js} +5 -5
  102. package/cdn/chunks/{chunk.YDZQVGSP.js → chunk.OZUBIMSO.js} +2 -2
  103. package/cdn/chunks/{chunk.RMI7CBAO.js → chunk.P5OHHVIZ.js} +4 -4
  104. package/cdn/chunks/{chunk.PIWF5VEN.js → chunk.PNTZLR2X.js} +1 -1
  105. package/cdn/chunks/chunk.POOZWGH5.js +64 -0
  106. package/cdn/chunks/chunk.Q54GPNUS.js +1 -0
  107. package/cdn/chunks/chunk.QHQUGZAC.js +1 -0
  108. package/cdn/chunks/{chunk.4GV3WJET.js → chunk.QXQFA2PL.js} +2 -2
  109. package/cdn/chunks/chunk.QZ7M6OGO.js +123 -0
  110. package/cdn/chunks/{chunk.RCGUDUP2.js → chunk.R2SAERUV.js} +14 -15
  111. package/cdn/chunks/{chunk.EZQSKUPG.js → chunk.RKAXCU2K.js} +1 -1
  112. package/cdn/chunks/{chunk.4A2SP2JA.js → chunk.RMHUEO6M.js} +1 -1
  113. package/cdn/chunks/{chunk.LLP7EPAY.js → chunk.RUMRXWLX.js} +1 -1
  114. package/cdn/chunks/{chunk.BARZKNDN.js → chunk.RXX4NY67.js} +5 -10
  115. package/cdn/chunks/{chunk.NJOCDP2A.js → chunk.SARJ4UB5.js} +1 -1
  116. package/cdn/chunks/chunk.SCA6KI3Y.js +108 -0
  117. package/cdn/chunks/{chunk.2MY5TX6M.js → chunk.SK27PJHT.js} +1 -2
  118. package/cdn/chunks/{chunk.DR6FOTG4.js → chunk.TBAF2O5H.js} +1 -1
  119. package/cdn/chunks/chunk.THBCP6LI.js +173 -0
  120. package/cdn/chunks/{chunk.II4JQ433.js → chunk.U5TCFENL.js} +1 -1
  121. package/cdn/chunks/{chunk.HW5UT2FF.js → chunk.UB73V5BI.js} +3 -3
  122. package/cdn/chunks/chunk.UIEL566X.js +59 -0
  123. package/cdn/chunks/{chunk.U7X2EV5T.js → chunk.UIKL7DR3.js} +119 -91
  124. package/cdn/chunks/{chunk.3FMDB6AF.js → chunk.UPTGFHYO.js} +1 -1
  125. package/cdn/chunks/{chunk.KOU7YZ7Z.js → chunk.UPUWTQY3.js} +1 -1
  126. package/cdn/chunks/{chunk.3URUFDPU.js → chunk.UQC4FZQO.js} +1 -1
  127. package/cdn/chunks/{chunk.COMV5MJ5.js → chunk.UREKS7QR.js} +1 -1
  128. package/cdn/chunks/{chunk.6GC5ODVL.js → chunk.UVI76N5N.js} +7 -7
  129. package/cdn/chunks/chunk.V6G6DQFY.js +25 -0
  130. package/cdn/chunks/{chunk.GVL377SN.js → chunk.VBIJSQJQ.js} +1 -1
  131. package/cdn/chunks/chunk.VCAUYLU6.js +53 -0
  132. package/cdn/chunks/chunk.VEWOSPRC.js +19 -0
  133. package/cdn/chunks/chunk.VK2CO5ZK.js +5 -0
  134. package/cdn/chunks/{chunk.EG6MMAM3.js → chunk.VM2KBACU.js} +1 -1
  135. package/cdn/chunks/{chunk.76OQZSVD.js → chunk.VPHVZMUY.js} +1 -1
  136. package/cdn/chunks/chunk.VRETONIU.js +112 -0
  137. package/cdn/chunks/{chunk.7OMTHUFI.js → chunk.VSTKTCJY.js} +1 -1
  138. package/cdn/chunks/{chunk.7RWZ2YNR.js → chunk.VVBLZBT2.js} +1 -1
  139. package/cdn/chunks/{chunk.IMDJ7GD2.js → chunk.W6E7LGND.js} +1 -1
  140. package/cdn/chunks/{chunk.U72UDJIM.js → chunk.WADWJFMR.js} +1 -1
  141. package/cdn/chunks/chunk.WDYFEO2Q.js +6 -0
  142. package/cdn/chunks/{chunk.NJBAMERR.js → chunk.WFPILKOS.js} +1 -1
  143. package/cdn/chunks/{chunk.JOY25RSZ.js → chunk.X4AWEYYO.js} +0 -5
  144. package/cdn/chunks/{chunk.M7BLJVGV.js → chunk.XBO6BPEL.js} +1 -1
  145. package/cdn/chunks/chunk.XDSXN7TT.js +17 -0
  146. package/cdn/chunks/{chunk.F4EQPWW4.js → chunk.XP43FQ5R.js} +3 -3
  147. package/cdn/chunks/{chunk.J7MFL7JZ.js → chunk.XXFCN6MW.js} +1 -1
  148. package/cdn/chunks/{chunk.JPOWE7L2.js → chunk.YDZDEOUX.js} +1 -1
  149. package/cdn/chunks/chunk.YEEGO6X3.js +85 -0
  150. package/cdn/chunks/chunk.YG7EIWOO.js +27 -0
  151. package/cdn/chunks/{chunk.BS2OSSAE.js → chunk.YOPYBUGE.js} +1 -1
  152. package/cdn/chunks/{chunk.67UP3FZD.js → chunk.Z33ITBWZ.js} +5 -5
  153. package/cdn/chunks/{chunk.F6YFQ3GB.js → chunk.ZEMA7TWY.js} +15 -2
  154. package/cdn/chunks/chunk.ZNP3XUGI.js +9 -0
  155. package/cdn/chunks/chunk.ZNUQSSRL.js +24 -0
  156. package/cdn/chunks/{chunk.BDRT5OOU.js → chunk.ZQPFBR34.js} +1 -1
  157. package/cdn/chunks/{chunk.CLIKZB5P.js → chunk.ZZEMBF7E.js} +1 -1
  158. package/cdn/components/accordion/accordion.js +1 -1
  159. package/cdn/components/accordion-group/accordion-group.js +1 -1
  160. package/cdn/components/alert/alert.js +1 -1
  161. package/cdn/components/avatar/avatar.js +1 -1
  162. package/cdn/components/banner/banner.d.ts +36 -0
  163. package/cdn/components/banner/banner.js +1 -0
  164. package/cdn/components/banner/banner.styles.d.ts +2 -0
  165. package/cdn/components/banner/banner.styles.js +1 -0
  166. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  167. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  168. package/cdn/components/button/button.js +1 -1
  169. package/cdn/components/calendar/calendar.js +1 -1
  170. package/cdn/components/card-content/card-content.js +1 -1
  171. package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
  172. package/cdn/components/card-nav-item/card-nav-item.js +1 -1
  173. package/cdn/components/checkbox/checkbox.js +1 -1
  174. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  175. package/cdn/components/checkbox-button/checkbox-button.js +1 -1
  176. package/cdn/components/checkbox-card/checkbox-card.js +1 -1
  177. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  178. package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
  179. package/cdn/components/combobox/combobox.d.ts +3 -0
  180. package/cdn/components/combobox/combobox.js +1 -1
  181. package/cdn/components/combobox/combobox.styles.js +1 -1
  182. package/cdn/components/copy-button/copy-button.js +1 -1
  183. package/cdn/components/dialog/dialog.js +1 -1
  184. package/cdn/components/download-card/download-card.d.ts +3 -1
  185. package/cdn/components/download-card/download-card.js +1 -1
  186. package/cdn/components/download-card/download-card.styles.js +1 -1
  187. package/cdn/components/download-link/download-link.d.ts +3 -1
  188. package/cdn/components/download-link/download-link.js +1 -1
  189. package/cdn/components/download-link/download-link.styles.js +1 -1
  190. package/cdn/components/drawer/drawer.js +1 -1
  191. package/cdn/components/drawer/drawer.styles.js +1 -1
  192. package/cdn/components/dropdown/dropdown.js +1 -1
  193. package/cdn/components/error-message-panel/error-message-panel.js +1 -1
  194. package/cdn/components/error-message-panel/error-message-panel.styles.js +1 -1
  195. package/cdn/components/error-text/error-text.js +1 -1
  196. package/cdn/components/fieldset/fieldset.js +1 -1
  197. package/cdn/components/fieldset/fieldset.styles.js +1 -1
  198. package/cdn/components/file-upload/file-upload.d.ts +10 -0
  199. package/cdn/components/file-upload/file-upload.js +1 -1
  200. package/cdn/components/file-upload/file-upload.styles.js +1 -1
  201. package/cdn/components/file-upload-item/file-upload-item.js +1 -1
  202. package/cdn/components/file-upload-item/file-upload-item.styles.js +1 -1
  203. package/cdn/components/filter-button/filter-button.js +1 -1
  204. package/cdn/components/filter-counter/filter-counter.d.ts +2 -0
  205. package/cdn/components/filter-counter/filter-counter.js +1 -1
  206. package/cdn/components/filter-date/filter-date.js +1 -1
  207. package/cdn/components/filter-date/filter-date.styles.js +1 -1
  208. package/cdn/components/filter-range/filter-range.js +1 -1
  209. package/cdn/components/filter-select/filter-select.d.ts +3 -0
  210. package/cdn/components/filter-select/filter-select.js +1 -1
  211. package/cdn/components/footer/footer.js +1 -1
  212. package/cdn/components/footer/footer.styles.js +1 -1
  213. package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.js +1 -1
  214. package/cdn/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.js +1 -1
  215. package/cdn/components/footer-sitemap/footer-sitemap.js +1 -1
  216. package/cdn/components/footer-sitemap/footer-sitemap.styles.js +1 -1
  217. package/cdn/components/footer-sitemap-item/footer-sitemap-item.js +1 -1
  218. package/cdn/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
  219. package/cdn/components/format-bytes/format-bytes.js +1 -1
  220. package/cdn/components/format-date/format-date.js +1 -1
  221. package/cdn/components/format-number/format-number.js +1 -1
  222. package/cdn/components/graphic-element/graphic-element.js +1 -1
  223. package/cdn/components/graphic-element/graphic-element.library.js +1 -1
  224. package/cdn/components/header/header.js +1 -1
  225. package/cdn/components/header-external-link/header-external-link.js +1 -1
  226. package/cdn/components/header-modern/header-modern.js +1 -1
  227. package/cdn/components/header-search/header-search.js +1 -1
  228. package/cdn/components/icon/icon.js +1 -1
  229. package/cdn/components/icon/library.js +1 -1
  230. package/cdn/components/icon-button/icon-button.js +1 -1
  231. package/cdn/components/icon-button/icon-button.styles.js +1 -1
  232. package/cdn/components/input/input.js +1 -1
  233. package/cdn/components/input-amount/input-amount.js +1 -1
  234. package/cdn/components/input-amount/input-amount.styles.js +1 -1
  235. package/cdn/components/input-amount/input-amount.utils.js +1 -1
  236. package/cdn/components/input-date/input-date.js +1 -1
  237. package/cdn/components/input-date/input-date.styles.js +1 -1
  238. package/cdn/components/input-mask/input-mask.configs.js +1 -1
  239. package/cdn/components/input-mask/input-mask.d.ts +6 -1
  240. package/cdn/components/input-mask/input-mask.js +1 -1
  241. package/cdn/components/input-mask/input-mask.styles.js +1 -1
  242. package/cdn/components/input-mask/input-mask.utils.d.ts +3 -0
  243. package/cdn/components/input-mask/input-mask.utils.js +1 -1
  244. package/cdn/components/input-native/input-native.js +1 -1
  245. package/cdn/components/input-native/input-native.styles.js +1 -1
  246. package/cdn/components/input-otp/input-otp.js +1 -1
  247. package/cdn/components/input-otp/input-otp.styles.js +1 -1
  248. package/cdn/components/input-phone/input-phone.configs.js +1 -1
  249. package/cdn/components/input-phone/input-phone.d.ts +6 -2
  250. package/cdn/components/input-phone/input-phone.js +1 -1
  251. package/cdn/components/input-phone/input-phone.styles.js +1 -1
  252. package/cdn/components/input-time/input-time.d.ts +2 -0
  253. package/cdn/components/input-time/input-time.js +1 -1
  254. package/cdn/components/input-time/input-time.styles.js +1 -1
  255. package/cdn/components/menu-accordion/menu-accordion.d.ts +7 -2
  256. package/cdn/components/menu-accordion/menu-accordion.js +1 -1
  257. package/cdn/components/menu-accordion/menu-accordion.styles.js +1 -1
  258. package/cdn/components/menu-item/menu-item.d.ts +1 -0
  259. package/cdn/components/menu-item/menu-item.js +1 -1
  260. package/cdn/components/menu-item/menu-item.styles.js +1 -1
  261. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  262. package/cdn/components/mutation-observer/mutation-observer.d.ts +1 -1
  263. package/cdn/components/mutation-observer/mutation-observer.js +1 -1
  264. package/cdn/components/navbar/navbar.d.ts +4 -5
  265. package/cdn/components/navbar/navbar.js +1 -1
  266. package/cdn/components/navbar/navbar.styles.js +1 -1
  267. package/cdn/components/navbar-link/navbar-link.js +1 -1
  268. package/cdn/components/navbar-menu/navbar-menu.d.ts +3 -0
  269. package/cdn/components/navbar-menu/navbar-menu.js +1 -1
  270. package/cdn/components/option/option.js +1 -1
  271. package/cdn/components/page-header/page-header.js +1 -1
  272. package/cdn/components/page-header/page-header.styles.js +1 -1
  273. package/cdn/components/pagination/pagination.d.ts +3 -1
  274. package/cdn/components/pagination/pagination.js +1 -1
  275. package/cdn/components/pagination/pagination.styles.js +1 -1
  276. package/cdn/components/pagination-button/pagination-button.js +1 -1
  277. package/cdn/components/popup/popup.js +1 -1
  278. package/cdn/components/profile-button/profile-button.js +1 -1
  279. package/cdn/components/progress-bar/progress-bar.js +1 -1
  280. package/cdn/components/progress-bar/progress-bar.styles.js +1 -1
  281. package/cdn/components/progress-ring/progress-ring.d.ts +2 -0
  282. package/cdn/components/progress-ring/progress-ring.js +1 -1
  283. package/cdn/components/progress-ring/progress-ring.styles.js +1 -1
  284. package/cdn/components/radio/radio.js +1 -1
  285. package/cdn/components/radio-button/radio-button.js +1 -1
  286. package/cdn/components/radio-card/radio-card.js +1 -1
  287. package/cdn/components/radio-group/radio-group.js +1 -1
  288. package/cdn/components/radio-group/radio-group.styles.js +1 -1
  289. package/cdn/components/range-slider/range-slider.d.ts +1 -0
  290. package/cdn/components/range-slider/range-slider.js +1 -1
  291. package/cdn/components/relative-time/relative-time.js +1 -1
  292. package/cdn/components/resize-observer/resize-observer.js +1 -1
  293. package/cdn/components/search/search.js +1 -1
  294. package/cdn/components/select/select.js +1 -1
  295. package/cdn/components/select/select.styles.js +1 -1
  296. package/cdn/components/sidenav/sidenav.js +1 -1
  297. package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
  298. package/cdn/components/skip-links/skip-links.js +1 -1
  299. package/cdn/components/spinner/spinner.js +1 -1
  300. package/cdn/components/spinner/spinner.styles.js +1 -1
  301. package/cdn/components/split-panel/split-panel.d.ts +2 -0
  302. package/cdn/components/split-panel/split-panel.js +1 -1
  303. package/cdn/components/split-panel/split-panel.styles.js +1 -1
  304. package/cdn/components/step/step.js +1 -1
  305. package/cdn/components/success-text/success-text.js +1 -1
  306. package/cdn/components/switch/switch.js +1 -1
  307. package/cdn/components/tab/tab.js +1 -1
  308. package/cdn/components/tab-group/tab-group.js +1 -1
  309. package/cdn/components/table-action/table-action.d.ts +2 -0
  310. package/cdn/components/table-action/table-action.js +1 -1
  311. package/cdn/components/table-caption/table-caption.js +1 -1
  312. package/cdn/components/table-container/table-container.js +1 -1
  313. package/cdn/components/table-header-cell/table-header-cell.js +1 -1
  314. package/cdn/components/table-header-row/table-header-row.js +1 -1
  315. package/cdn/components/table-of-contents/table-of-contents.js +1 -1
  316. package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
  317. package/cdn/components/table-row/table-row.js +1 -1
  318. package/cdn/components/tag/tag.js +1 -1
  319. package/cdn/components/textarea/textarea.js +1 -1
  320. package/cdn/components/textarea/textarea.styles.js +1 -1
  321. package/cdn/components/tooltip/tooltip.js +1 -1
  322. package/cdn/components/tree/tree.js +1 -1
  323. package/cdn/components/tree-item/tree-item.d.ts +1 -2
  324. package/cdn/components/tree-item/tree-item.js +1 -1
  325. package/cdn/components/tree-item/tree-item.styles.js +1 -1
  326. package/cdn/custom-elements.json +625 -49
  327. package/cdn/design-system.d.ts +1 -0
  328. package/cdn/design-system.js +1 -1
  329. package/cdn/internal/components/date-field/date-field.d.ts +1 -0
  330. package/cdn/internal/components/date-field/date-field.js +24 -8
  331. package/cdn/internal/components/form-control/form-control-layout.js +16 -15
  332. package/cdn/internal/components/input-base/input-base.js +4 -3
  333. package/cdn/internal/components/input-base/input-base.styles.js +6 -6
  334. package/cdn/styles/form-control.styles.js +32 -34
  335. package/cdn/templates/utilities/decorator.js +1 -1
  336. package/cdn/templates/utilities/header.js +1 -1
  337. package/cdn/templates/utilities/template-story-config.js +0 -3
  338. package/cdn/themes/dsa-wc-theme.css +2 -4
  339. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  340. package/cdn/themes/dsa-wc-theme.styles.js +2 -4
  341. package/cdn/translations/en-gb.js +1 -1
  342. package/cdn/translations/en.js +1 -1
  343. package/cdn/translations/fr.js +1 -1
  344. package/cdn/utilities/icon-library.js +1 -1
  345. package/cdn/utilities/localize.d.ts +1 -0
  346. package/cdn/utilities/localize.js +1 -1
  347. package/cdn/utilities/storybook.js +2 -2
  348. package/cdn/vscode.html-custom-data.json +37 -0
  349. package/cdn/web-types.json +340 -21
  350. package/dist/chunks/{chunk.SXFVCR7O.js → chunk.2G35OVLZ.js} +3 -3
  351. package/dist/chunks/{chunk.WNESPUKK.js → chunk.2GTXVMMC.js} +4 -6
  352. package/dist/chunks/{chunk.JKNKFWLE.js → chunk.2I4VZQYC.js} +5 -6
  353. package/dist/chunks/{chunk.7OLEA3GQ.js → chunk.3D7AGBFQ.js} +55 -28
  354. package/dist/chunks/{chunk.MFGYIAUT.js → chunk.3TAGND37.js} +1 -1
  355. package/dist/chunks/{chunk.QEXDSP5Y.js → chunk.47CX6JJX.js} +0 -5
  356. package/dist/chunks/{chunk.CQR34TNY.js → chunk.4AUOO4K2.js} +9 -13
  357. package/dist/chunks/{chunk.V4SDZV6L.js → chunk.4IDR4RJI.js} +7 -7
  358. package/dist/chunks/{chunk.LYVWDO7O.js → chunk.5DVIZLXZ.js} +9 -8
  359. package/dist/chunks/{chunk.4535HZ7L.js → chunk.5ESJXERV.js} +5 -5
  360. package/dist/chunks/{chunk.5NSAEDEE.js → chunk.5NGXTSAJ.js} +1 -1
  361. package/dist/chunks/{chunk.I522XZAV.js → chunk.65EFQZ4A.js} +1 -2
  362. package/dist/chunks/{chunk.TLQMWL6I.js → chunk.67J6LDJW.js} +5 -2
  363. package/dist/chunks/{chunk.GUKOZGE3.js → chunk.6EU6GX26.js} +1 -1
  364. package/dist/chunks/{chunk.33P7XYHC.js → chunk.6KY7LP6G.js} +5 -3
  365. package/dist/chunks/{chunk.UHF3BDIM.js → chunk.6PI2M6R6.js} +1 -2
  366. package/dist/chunks/{chunk.6Q5DARJM.js → chunk.6ZVGYVEL.js} +1 -1
  367. package/dist/chunks/{chunk.V26NK6TM.js → chunk.73XHVQNA.js} +1 -1
  368. package/dist/chunks/{chunk.K27SKJCO.js → chunk.74CLWWSO.js} +3 -2
  369. package/dist/chunks/{chunk.T6OAGTAP.js → chunk.7EVHJ2OT.js} +3 -3
  370. package/dist/chunks/{chunk.WMFEJDPX.js → chunk.7HMEK2ND.js} +6 -5
  371. package/dist/chunks/{chunk.7MY3WW7C.js → chunk.7PE2PORN.js} +2 -2
  372. package/dist/chunks/{chunk.YI6BUIUL.js → chunk.7WMOPNN5.js} +26 -10
  373. package/dist/chunks/{chunk.QKT5LLDM.js → chunk.7YNHLXVZ.js} +1 -1
  374. package/dist/chunks/chunk.7Z3P7ZIT.js +100 -0
  375. package/dist/chunks/{chunk.PENDUUVT.js → chunk.A4X3GH4U.js} +46 -41
  376. package/dist/chunks/{chunk.6BCJJGLC.js → chunk.ABXTXNT4.js} +2 -2
  377. package/dist/chunks/{chunk.767V7QP2.js → chunk.ADV67KWS.js} +5 -10
  378. package/dist/chunks/{chunk.EMPEBDHH.js → chunk.ADVAWXPE.js} +8 -10
  379. package/dist/chunks/{chunk.VNGKMC5T.js → chunk.AEU5B6YK.js} +1 -1
  380. package/dist/chunks/{chunk.RG7MUNLM.js → chunk.AL6PYL6U.js} +10 -9
  381. package/dist/chunks/{chunk.FLI47BNN.js → chunk.BAWCVSXY.js} +4 -4
  382. package/dist/chunks/{chunk.ZS3JNRJE.js → chunk.BIB7IJGE.js} +4 -4
  383. package/dist/chunks/{chunk.BJ76CXBF.js → chunk.BWP55AAX.js} +1 -1
  384. package/dist/chunks/{chunk.O65OOIT6.js → chunk.BZFZTT6Z.js} +4 -2
  385. package/dist/chunks/{chunk.EWMFHVNW.js → chunk.C4SE3ULG.js} +7 -7
  386. package/dist/chunks/{chunk.QUEYKUIS.js → chunk.C6BC46KV.js} +7 -7
  387. package/dist/chunks/{chunk.KD27MP6C.js → chunk.D7HT35YE.js} +1 -1
  388. package/dist/chunks/{chunk.JATRBE3H.js → chunk.DEEMRWEE.js} +41 -19
  389. package/dist/chunks/{chunk.WJFVQRWU.js → chunk.DIRVCY5C.js} +1 -1
  390. package/dist/chunks/{chunk.XAYOMJ4X.js → chunk.DJFSPHO4.js} +5 -5
  391. package/dist/chunks/{chunk.34HS7ICN.js → chunk.DVIHNMQQ.js} +4 -2
  392. package/dist/chunks/{chunk.H26XMOUA.js → chunk.DX7525EY.js} +1 -1
  393. package/dist/chunks/{chunk.WEPA3NJG.js → chunk.DZLEAEG5.js} +61 -61
  394. package/dist/chunks/chunk.E2AA6JZR.js +102 -0
  395. package/dist/chunks/{chunk.6QE4MIXY.js → chunk.E6D26DI7.js} +2 -5
  396. package/dist/chunks/{chunk.KAG2EIKO.js → chunk.EH2DQIPN.js} +9 -10
  397. package/dist/chunks/{chunk.U4W57NV6.js → chunk.EPG5ZB4T.js} +2 -2
  398. package/dist/chunks/{chunk.VYX5ZSFI.js → chunk.EQNOUAQ6.js} +8 -4
  399. package/dist/chunks/{chunk.RU7L7OSM.js → chunk.ESWLZEFC.js} +12 -15
  400. package/dist/chunks/{chunk.HRZVG552.js → chunk.EX63QI6Z.js} +27 -20
  401. package/dist/chunks/{chunk.SGRSRDWP.js → chunk.F4DMZGND.js} +10 -10
  402. package/dist/chunks/{chunk.GTO6NACR.js → chunk.FLCLDNUC.js} +2 -2
  403. package/dist/chunks/{chunk.LHKUT7UW.js → chunk.GDRWZRCN.js} +16 -9
  404. package/dist/chunks/{chunk.5SH25FOL.js → chunk.GM3QM4YJ.js} +3 -3
  405. package/dist/chunks/{chunk.47AQXN3U.js → chunk.GOVTNZ72.js} +52 -31
  406. package/dist/chunks/{chunk.2GJ46J7Q.js → chunk.GQZAFXU6.js} +1 -1
  407. package/dist/chunks/{chunk.M47KXEXM.js → chunk.GSRQID3H.js} +32 -10
  408. package/dist/chunks/{chunk.IMZ2EJ3J.js → chunk.H5G2LRCX.js} +85 -85
  409. package/dist/chunks/{chunk.4E2FKC3C.js → chunk.H7QHCUBR.js} +2 -2
  410. package/dist/chunks/{chunk.LT44CVRV.js → chunk.H7TB3KTK.js} +6 -10
  411. package/dist/chunks/{chunk.LO42XUHN.js → chunk.HAWD2P5K.js} +12 -13
  412. package/dist/chunks/{chunk.WO56WJXU.js → chunk.HG526A44.js} +1 -0
  413. package/dist/chunks/{chunk.6WPKFGU3.js → chunk.HIABUXVS.js} +13 -13
  414. package/dist/chunks/{chunk.2WW7OJZT.js → chunk.IDMG3YLC.js} +2 -2
  415. package/dist/chunks/{chunk.JVIWPP43.js → chunk.IEYQPZRM.js} +1 -0
  416. package/dist/chunks/{chunk.SRLGPXHB.js → chunk.IJYHCSO5.js} +1 -1
  417. package/dist/chunks/{chunk.SP2SVH7K.js → chunk.IQY2ZVAV.js} +17 -11
  418. package/dist/chunks/{chunk.SAKI57GG.js → chunk.ITBFUL7J.js} +48 -24
  419. package/dist/chunks/{chunk.TURUUPFG.js → chunk.ITD5BZEA.js} +1 -1
  420. package/dist/chunks/{chunk.PSWGNIVT.js → chunk.ITFYDUMM.js} +3 -3
  421. package/dist/chunks/{chunk.R3PD3TNK.js → chunk.IWCSAXJN.js} +2 -2
  422. package/dist/chunks/{chunk.5R7OHVIP.js → chunk.IYGSQFGQ.js} +5 -5
  423. package/dist/chunks/{chunk.4NY2E4AU.js → chunk.JBFJWJUF.js} +5 -5
  424. package/dist/chunks/{chunk.UC5S2IUH.js → chunk.JLAQUWWF.js} +1 -1
  425. package/dist/chunks/{chunk.WSQ2ZYD4.js → chunk.JMA3VRB4.js} +2 -2
  426. package/dist/chunks/{chunk.LFCY7UUJ.js → chunk.JZAQYPUX.js} +31 -35
  427. package/dist/chunks/{chunk.WFACPRM5.js → chunk.K64V2XZO.js} +5 -1
  428. package/dist/chunks/{chunk.WAEFCPAX.js → chunk.KC2ZHNPC.js} +1 -1
  429. package/dist/chunks/{chunk.H4WJ64X5.js → chunk.KGP2JSZ7.js} +58 -53
  430. package/dist/chunks/{chunk.FLRNIL37.js → chunk.KN6JQY6O.js} +1 -1
  431. package/dist/chunks/{chunk.4VSGAJJL.js → chunk.KOO2JWHZ.js} +2 -2
  432. package/dist/chunks/{chunk.XZU6MLWO.js → chunk.LBLBASKK.js} +14 -8
  433. package/dist/chunks/{chunk.FZFK3D6L.js → chunk.LUN6HLAE.js} +22 -31
  434. package/dist/chunks/{chunk.ZFGRB56M.js → chunk.LVSZUO34.js} +5 -5
  435. package/dist/chunks/{chunk.7BBNETYY.js → chunk.M347TELO.js} +8 -8
  436. package/dist/chunks/{chunk.XL3HVVDK.js → chunk.M47YUO2L.js} +1 -1
  437. package/dist/chunks/{chunk.6HSTAJNR.js → chunk.M6X2ZDO6.js} +2 -2
  438. package/dist/chunks/{chunk.DN3K2GHZ.js → chunk.MRGJKLE3.js} +1 -1
  439. package/dist/chunks/{chunk.YKL22V4E.js → chunk.N2V4KI76.js} +1 -1
  440. package/dist/chunks/{chunk.UQ7ZIOBO.js → chunk.N2XNANRE.js} +2 -2
  441. package/dist/chunks/{chunk.YMBSK45L.js → chunk.NBEDK6M4.js} +2 -0
  442. package/dist/chunks/{chunk.34BCRRRT.js → chunk.NTKYNRVQ.js} +8 -3
  443. package/dist/chunks/{chunk.ERMNNF77.js → chunk.ORAH2BHK.js} +3 -3
  444. package/dist/chunks/{chunk.3SAKVK56.js → chunk.P57KFF6A.js} +12 -7
  445. package/dist/chunks/{chunk.5TBGCNJD.js → chunk.PCTIMH5D.js} +26 -11
  446. package/dist/chunks/{chunk.JBKNTRA7.js → chunk.PFPVUCRD.js} +20 -7
  447. package/dist/chunks/{chunk.ZYGCOBUE.js → chunk.PT2BKEDG.js} +1 -1
  448. package/dist/chunks/{chunk.Q7YCE4UA.js → chunk.Q45EA7A6.js} +8 -3
  449. package/dist/chunks/{chunk.QKUUHXNR.js → chunk.Q6GPBRDV.js} +6 -6
  450. package/dist/chunks/{chunk.MDQDWJCR.js → chunk.QCVOP7JL.js} +13 -0
  451. package/dist/chunks/{chunk.ODOHKR6J.js → chunk.QHEMM3XC.js} +18 -16
  452. package/dist/chunks/{chunk.KPVDLRVV.js → chunk.QLJNW3TZ.js} +3 -3
  453. package/dist/chunks/{chunk.64EGGLHL.js → chunk.QWPEXQZX.js} +7 -13
  454. package/dist/chunks/{chunk.TCW77JY3.js → chunk.RJAOB66Y.js} +50 -41
  455. package/dist/chunks/{chunk.RVUUZ3KA.js → chunk.RLLACUYR.js} +27 -15
  456. package/dist/chunks/{chunk.LH65ZIEN.js → chunk.RMOUFLCI.js} +7 -7
  457. package/dist/chunks/{chunk.S5FAXONJ.js → chunk.RVOALTE4.js} +5 -5
  458. package/dist/chunks/{chunk.XTVVSORU.js → chunk.S4ZCJOC5.js} +16 -14
  459. package/dist/chunks/{chunk.CFBX4SXO.js → chunk.SEMHY47B.js} +1 -1
  460. package/dist/chunks/{chunk.6LLDVH7Y.js → chunk.SJNFRQKU.js} +1 -1
  461. package/dist/chunks/{chunk.FBY2IM6R.js → chunk.SKY7526Z.js} +19 -14
  462. package/dist/chunks/{chunk.RZRBWZ7K.js → chunk.SPIKJZGM.js} +1 -1
  463. package/dist/chunks/{chunk.QGSBICBZ.js → chunk.SWKXQDKB.js} +1 -1
  464. package/dist/chunks/{chunk.VOKBXFKF.js → chunk.SYQNO5B4.js} +5 -5
  465. package/dist/chunks/{chunk.SGPAUD26.js → chunk.SYZVBVOX.js} +4 -4
  466. package/dist/chunks/{chunk.CKEB7DWU.js → chunk.T43D4ETK.js} +32 -34
  467. package/dist/chunks/{chunk.J476JEKY.js → chunk.T7O6NKFH.js} +1 -1
  468. package/dist/chunks/{chunk.V3LWOWUB.js → chunk.TAMFIHNV.js} +2 -2
  469. package/dist/chunks/{chunk.KIN7BJ2S.js → chunk.TILFUJJ2.js} +3 -4
  470. package/dist/chunks/{chunk.2DYEXJNV.js → chunk.TJNOM7IR.js} +117 -89
  471. package/dist/chunks/{chunk.4XPBWICF.js → chunk.TNWA2A3X.js} +1 -1
  472. package/dist/chunks/{chunk.KW762SFE.js → chunk.TOXFYUP5.js} +7 -11
  473. package/dist/chunks/{chunk.CFUNT7FK.js → chunk.TXX2YIZA.js} +6 -7
  474. package/dist/chunks/{chunk.VJMPU2K5.js → chunk.U5AWZEM5.js} +5 -5
  475. package/dist/chunks/{chunk.HYAC2WLH.js → chunk.U6SFJUEX.js} +4 -3
  476. package/dist/chunks/{chunk.ELOLGOFM.js → chunk.UBA2H662.js} +1 -1
  477. package/dist/chunks/{chunk.SZDGGP2Y.js → chunk.VDZUSRNI.js} +12 -35
  478. package/dist/chunks/{chunk.XSXVVUKP.js → chunk.VILH76T7.js} +2 -0
  479. package/dist/chunks/{chunk.IER4ZBFV.js → chunk.VNBYO53K.js} +2 -1
  480. package/dist/chunks/{chunk.EGJGLON7.js → chunk.VRUSJUXU.js} +7 -4
  481. package/dist/chunks/{chunk.72FKNFBS.js → chunk.VTNFE6PI.js} +4 -5
  482. package/dist/chunks/{chunk.GSSDOCVR.js → chunk.W2GBRU2D.js} +5 -5
  483. package/dist/chunks/{chunk.SAQFLKP7.js → chunk.WEWJQ2AA.js} +6 -6
  484. package/dist/chunks/{chunk.TW7OE55S.js → chunk.WQA4XJEW.js} +1 -1
  485. package/dist/chunks/{chunk.2AMILV3O.js → chunk.WQMUNZSA.js} +31 -6
  486. package/dist/chunks/{chunk.YYKAI7FO.js → chunk.WZBEL7FC.js} +1 -1
  487. package/dist/chunks/{chunk.VPBDM3F2.js → chunk.X3H6MOUU.js} +1 -1
  488. package/dist/chunks/{chunk.RK2WN36C.js → chunk.XBQTTKJU.js} +1 -1
  489. package/dist/chunks/{chunk.JTPMSU67.js → chunk.XCSAMBUB.js} +8 -8
  490. package/dist/chunks/{chunk.Q4BEX42U.js → chunk.XGEWLFBF.js} +8 -8
  491. package/dist/chunks/{chunk.6TDF44UO.js → chunk.XHZ5CCR7.js} +1 -1
  492. package/dist/chunks/{chunk.UESIZCBP.js → chunk.Y4KCVPIC.js} +49 -49
  493. package/dist/chunks/{chunk.V2HQ7IVJ.js → chunk.Y7UR2ZKQ.js} +8 -7
  494. package/dist/chunks/{chunk.CKJJ4MSU.js → chunk.YPBLUIU7.js} +11 -7
  495. package/dist/chunks/{chunk.6RXEQKWZ.js → chunk.Z4TGH2YA.js} +3 -3
  496. package/dist/chunks/{chunk.KUXAIXES.js → chunk.ZAYEYBAY.js} +8 -11
  497. package/dist/chunks/{chunk.E6D32GY2.js → chunk.ZDRQOJI6.js} +4 -4
  498. package/dist/chunks/{chunk.QS7BPH3Y.js → chunk.ZSPNI52I.js} +9 -18
  499. package/dist/chunks/{chunk.XMBQRPGX.js → chunk.ZUG2HYP5.js} +7 -7
  500. package/dist/components/accordion/accordion.js +6 -5
  501. package/dist/components/accordion-group/accordion-group.js +9 -8
  502. package/dist/components/alert/alert.js +8 -7
  503. package/dist/components/avatar/avatar.js +5 -4
  504. package/dist/components/banner/banner.d.ts +36 -0
  505. package/dist/components/banner/banner.js +24 -0
  506. package/dist/components/banner/banner.styles.d.ts +2 -0
  507. package/dist/components/banner/banner.styles.js +8 -0
  508. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  509. package/dist/components/breadcrumb-item/breadcrumb-item.js +6 -5
  510. package/dist/components/button/button.js +8 -7
  511. package/dist/components/calendar/calendar.js +2 -2
  512. package/dist/components/card-content/card-content.js +5 -4
  513. package/dist/components/card-nav-accordion/card-nav-accordion.js +6 -5
  514. package/dist/components/card-nav-item/card-nav-item.js +5 -4
  515. package/dist/components/checkbox/checkbox.js +11 -11
  516. package/dist/components/checkbox/checkbox.styles.js +2 -2
  517. package/dist/components/checkbox-button/checkbox-button.js +10 -10
  518. package/dist/components/checkbox-card/checkbox-card.js +8 -8
  519. package/dist/components/checkbox-group/checkbox-group.js +8 -7
  520. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  521. package/dist/components/combobox/combobox.d.ts +3 -0
  522. package/dist/components/combobox/combobox.js +17 -17
  523. package/dist/components/combobox/combobox.styles.js +2 -2
  524. package/dist/components/copy-button/copy-button.js +7 -6
  525. package/dist/components/dialog/dialog.js +8 -7
  526. package/dist/components/download-card/download-card.d.ts +3 -1
  527. package/dist/components/download-card/download-card.js +6 -5
  528. package/dist/components/download-card/download-card.styles.js +1 -1
  529. package/dist/components/download-link/download-link.d.ts +3 -1
  530. package/dist/components/download-link/download-link.js +6 -5
  531. package/dist/components/download-link/download-link.styles.js +1 -1
  532. package/dist/components/drawer/drawer.js +9 -8
  533. package/dist/components/drawer/drawer.styles.js +1 -1
  534. package/dist/components/dropdown/dropdown.js +2 -2
  535. package/dist/components/error-message-panel/error-message-panel.js +3 -3
  536. package/dist/components/error-message-panel/error-message-panel.styles.js +1 -1
  537. package/dist/components/error-text/error-text.js +5 -4
  538. package/dist/components/fieldset/fieldset.js +2 -2
  539. package/dist/components/fieldset/fieldset.styles.js +1 -1
  540. package/dist/components/file-upload/file-upload.d.ts +10 -0
  541. package/dist/components/file-upload/file-upload.js +12 -11
  542. package/dist/components/file-upload/file-upload.styles.js +2 -2
  543. package/dist/components/file-upload-item/file-upload-item.js +7 -6
  544. package/dist/components/file-upload-item/file-upload-item.styles.js +1 -1
  545. package/dist/components/filter-button/filter-button.js +6 -5
  546. package/dist/components/filter-counter/filter-counter.d.ts +2 -0
  547. package/dist/components/filter-counter/filter-counter.js +33 -32
  548. package/dist/components/filter-date/filter-date.js +16 -15
  549. package/dist/components/filter-date/filter-date.styles.js +1 -1
  550. package/dist/components/filter-range/filter-range.js +33 -32
  551. package/dist/components/filter-select/filter-select.d.ts +3 -0
  552. package/dist/components/filter-select/filter-select.js +33 -33
  553. package/dist/components/footer/footer.js +3 -3
  554. package/dist/components/footer/footer.styles.js +1 -1
  555. package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
  556. package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.js +1 -1
  557. package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
  558. package/dist/components/footer-sitemap/footer-sitemap.styles.js +1 -1
  559. package/dist/components/footer-sitemap-item/footer-sitemap-item.js +2 -2
  560. package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
  561. package/dist/components/format-bytes/format-bytes.js +2 -2
  562. package/dist/components/format-date/format-date.js +2 -2
  563. package/dist/components/format-number/format-number.js +2 -2
  564. package/dist/components/header/header.js +4 -4
  565. package/dist/components/header-external-link/header-external-link.js +2 -2
  566. package/dist/components/header-modern/header-modern.js +3 -3
  567. package/dist/components/header-search/header-search.js +13 -12
  568. package/dist/components/icon/icon.js +4 -3
  569. package/dist/components/icon/library.js +2 -2
  570. package/dist/components/icon-button/icon-button.js +6 -5
  571. package/dist/components/icon-button/icon-button.styles.js +1 -1
  572. package/dist/components/input/input.js +26 -25
  573. package/dist/components/input-amount/input-amount.js +16 -15
  574. package/dist/components/input-amount/input-amount.styles.js +3 -3
  575. package/dist/components/input-amount/input-amount.utils.js +1 -1
  576. package/dist/components/input-date/input-date.js +17 -16
  577. package/dist/components/input-date/input-date.styles.js +3 -3
  578. package/dist/components/input-mask/input-mask.configs.js +1 -1
  579. package/dist/components/input-mask/input-mask.d.ts +6 -1
  580. package/dist/components/input-mask/input-mask.js +16 -15
  581. package/dist/components/input-mask/input-mask.styles.js +3 -3
  582. package/dist/components/input-mask/input-mask.utils.d.ts +3 -0
  583. package/dist/components/input-mask/input-mask.utils.js +5 -1
  584. package/dist/components/input-native/input-native.js +15 -14
  585. package/dist/components/input-native/input-native.styles.js +3 -3
  586. package/dist/components/input-otp/input-otp.js +11 -10
  587. package/dist/components/input-otp/input-otp.styles.js +2 -2
  588. package/dist/components/input-phone/input-phone.d.ts +6 -2
  589. package/dist/components/input-phone/input-phone.js +21 -21
  590. package/dist/components/input-phone/input-phone.styles.js +2 -2
  591. package/dist/components/input-time/input-time.d.ts +2 -0
  592. package/dist/components/input-time/input-time.js +16 -15
  593. package/dist/components/input-time/input-time.styles.js +3 -3
  594. package/dist/components/menu-accordion/menu-accordion.d.ts +7 -2
  595. package/dist/components/menu-accordion/menu-accordion.js +8 -7
  596. package/dist/components/menu-accordion/menu-accordion.styles.js +1 -1
  597. package/dist/components/menu-item/menu-item.d.ts +1 -0
  598. package/dist/components/menu-item/menu-item.js +4 -4
  599. package/dist/components/menu-item/menu-item.styles.js +1 -1
  600. package/dist/components/menu-navigation/menu-navigation.js +5 -5
  601. package/dist/components/mutation-observer/mutation-observer.d.ts +1 -1
  602. package/dist/components/mutation-observer/mutation-observer.js +1 -1
  603. package/dist/components/navbar/navbar.d.ts +4 -5
  604. package/dist/components/navbar/navbar.js +2 -2
  605. package/dist/components/navbar/navbar.styles.js +1 -1
  606. package/dist/components/navbar-link/navbar-link.js +10 -9
  607. package/dist/components/navbar-menu/navbar-menu.d.ts +3 -0
  608. package/dist/components/navbar-menu/navbar-menu.js +6 -5
  609. package/dist/components/option/option.js +6 -6
  610. package/dist/components/page-header/page-header.js +2 -2
  611. package/dist/components/page-header/page-header.styles.js +1 -1
  612. package/dist/components/pagination/pagination.d.ts +3 -1
  613. package/dist/components/pagination/pagination.js +29 -28
  614. package/dist/components/pagination/pagination.styles.js +1 -1
  615. package/dist/components/pagination-button/pagination-button.js +1 -1
  616. package/dist/components/profile-button/profile-button.js +8 -7
  617. package/dist/components/progress-bar/progress-bar.js +3 -3
  618. package/dist/components/progress-bar/progress-bar.styles.js +1 -1
  619. package/dist/components/progress-ring/progress-ring.d.ts +2 -0
  620. package/dist/components/progress-ring/progress-ring.js +2 -2
  621. package/dist/components/progress-ring/progress-ring.styles.js +1 -1
  622. package/dist/components/radio/radio.js +6 -6
  623. package/dist/components/radio-button/radio-button.js +10 -10
  624. package/dist/components/radio-card/radio-card.js +12 -12
  625. package/dist/components/radio-group/radio-group.js +8 -8
  626. package/dist/components/radio-group/radio-group.styles.js +2 -2
  627. package/dist/components/range-slider/range-slider.d.ts +1 -0
  628. package/dist/components/range-slider/range-slider.js +1 -1
  629. package/dist/components/relative-time/relative-time.js +2 -2
  630. package/dist/components/resize-observer/resize-observer.js +1 -1
  631. package/dist/components/search/search.js +9 -8
  632. package/dist/components/select/select.js +15 -14
  633. package/dist/components/select/select.styles.js +2 -2
  634. package/dist/components/sidenav/sidenav.js +7 -7
  635. package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +9 -8
  636. package/dist/components/skip-links/skip-links.js +2 -2
  637. package/dist/components/spinner/spinner.js +3 -3
  638. package/dist/components/spinner/spinner.styles.js +1 -1
  639. package/dist/components/split-panel/split-panel.d.ts +2 -0
  640. package/dist/components/split-panel/split-panel.js +7 -6
  641. package/dist/components/split-panel/split-panel.styles.js +1 -1
  642. package/dist/components/step/step.js +6 -6
  643. package/dist/components/success-text/success-text.js +5 -4
  644. package/dist/components/switch/switch.js +7 -6
  645. package/dist/components/tab/tab.js +8 -8
  646. package/dist/components/tab-group/tab-group.js +8 -8
  647. package/dist/components/table-action/table-action.d.ts +2 -0
  648. package/dist/components/table-action/table-action.js +9 -8
  649. package/dist/components/table-caption/table-caption.js +2 -2
  650. package/dist/components/table-container/table-container.js +3 -3
  651. package/dist/components/table-header-cell/table-header-cell.js +5 -4
  652. package/dist/components/table-header-row/table-header-row.js +19 -19
  653. package/dist/components/table-of-contents/table-of-contents.js +7 -6
  654. package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
  655. package/dist/components/table-row/table-row.js +15 -15
  656. package/dist/components/tag/tag.js +9 -8
  657. package/dist/components/textarea/textarea.js +9 -8
  658. package/dist/components/textarea/textarea.styles.js +2 -2
  659. package/dist/components/tooltip/tooltip.js +2 -2
  660. package/dist/components/tree/tree.js +11 -26
  661. package/dist/components/tree-item/tree-item.d.ts +1 -2
  662. package/dist/components/tree-item/tree-item.js +10 -25
  663. package/dist/components/tree-item/tree-item.styles.js +1 -1
  664. package/dist/custom-elements.json +625 -49
  665. package/dist/design-system.d.ts +1 -0
  666. package/dist/design-system.js +240 -235
  667. package/dist/internal/components/date-field/date-field.d.ts +1 -0
  668. package/dist/internal/components/date-field/date-field.js +24 -8
  669. package/dist/internal/components/form-control/form-control-layout.js +16 -15
  670. package/dist/internal/components/input-base/input-base.js +4 -3
  671. package/dist/internal/components/input-base/input-base.styles.js +6 -6
  672. package/dist/styles/form-control.styles.js +32 -34
  673. package/dist/templates/utilities/decorator.js +1 -1
  674. package/dist/templates/utilities/header.js +1 -1
  675. package/dist/templates/utilities/template-story-config.js +0 -3
  676. package/dist/themes/dsa-wc-theme.css +2 -4
  677. package/dist/themes/dsa-wc-theme.min.css +1 -1
  678. package/dist/themes/dsa-wc-theme.styles.js +2 -4
  679. package/dist/translations/en-gb.js +1 -1
  680. package/dist/translations/en.js +1 -1
  681. package/dist/translations/fr.js +1 -1
  682. package/dist/utilities/icon-library.js +2 -2
  683. package/dist/utilities/localize.d.ts +1 -0
  684. package/dist/utilities/localize.js +1 -1
  685. package/dist/utilities/storybook.js +2 -2
  686. package/dist/vscode.html-custom-data.json +37 -0
  687. package/dist/web-types.json +340 -21
  688. package/package.json +18 -18
  689. package/cdn/chunks/chunk.2EC2JS5U.js +0 -60
  690. package/cdn/chunks/chunk.4NE2V6DW.js +0 -9
  691. package/cdn/chunks/chunk.5MXBS7CA.js +0 -62
  692. package/cdn/chunks/chunk.77YRGKFQ.js +0 -53
  693. package/cdn/chunks/chunk.7TKKYYU2.js +0 -112
  694. package/cdn/chunks/chunk.7Y7CQMR6.js +0 -3
  695. package/cdn/chunks/chunk.AGA6W4U2.js +0 -26
  696. package/cdn/chunks/chunk.BOCMAV5D.js +0 -51
  697. package/cdn/chunks/chunk.C2H2IJ5N.js +0 -19
  698. package/cdn/chunks/chunk.CCKFL63L.js +0 -31
  699. package/cdn/chunks/chunk.CUYQOZPJ.js +0 -20
  700. package/cdn/chunks/chunk.DFIOQK4K.js +0 -108
  701. package/cdn/chunks/chunk.EAWHOXCM.js +0 -24
  702. package/cdn/chunks/chunk.GDNVDKSZ.js +0 -4
  703. package/cdn/chunks/chunk.H7CICKO6.js +0 -173
  704. package/cdn/chunks/chunk.HCJCL2UD.js +0 -23
  705. package/cdn/chunks/chunk.IYPKQQOD.js +0 -35
  706. package/cdn/chunks/chunk.KD3BHBHK.js +0 -19
  707. package/cdn/chunks/chunk.KH2JVAEZ.js +0 -3
  708. package/cdn/chunks/chunk.KTJAW66F.js +0 -73
  709. package/cdn/chunks/chunk.KVPC6DC4.js +0 -121
  710. package/cdn/chunks/chunk.LBAIMDY3.js +0 -1
  711. package/cdn/chunks/chunk.MN7GWB3J.js +0 -66
  712. package/cdn/chunks/chunk.PICWAFB5.js +0 -1
  713. package/cdn/chunks/chunk.PVV7WADS.js +0 -121
  714. package/cdn/chunks/chunk.QXMNA43O.js +0 -19
  715. package/cdn/chunks/chunk.RGOPSYRZ.js +0 -1
  716. package/cdn/chunks/chunk.RTVNV4IL.js +0 -27
  717. package/cdn/chunks/chunk.S5XJPLVO.js +0 -51
  718. package/cdn/chunks/chunk.TPKY6SO3.js +0 -94
  719. package/cdn/chunks/chunk.U5DYVPGP.js +0 -1
  720. package/cdn/chunks/chunk.ULWBK7T7.js +0 -40
  721. package/cdn/chunks/chunk.UXV7IG5J.js +0 -1
  722. package/cdn/chunks/chunk.VL5LPHV3.js +0 -47
  723. package/cdn/chunks/chunk.VVOUCVXZ.js +0 -123
  724. package/cdn/chunks/chunk.WFR7MSMI.js +0 -1
  725. package/cdn/chunks/chunk.WXQKHJC3.js +0 -5
  726. package/cdn/chunks/chunk.XGUKMUW4.js +0 -25
  727. package/cdn/chunks/chunk.YWOAIOEZ.js +0 -75
  728. package/cdn/chunks/chunk.Z226LHQY.js +0 -64
  729. package/dist/chunks/{chunk.WJU4UHF5.js → chunk.24VWWARJ.js} +3 -3
  730. package/dist/chunks/{chunk.GBZY2OWL.js → chunk.BIDMVL7F.js} +3 -3
@@ -1,20 +0,0 @@
1
- import{a as zt}from"./chunk.TYYYX2PR.js";import{d as St}from"./chunk.ZBHHLRFH.js";import{a as Mt,b as R,d as At,f as Nt}from"./chunk.KBZ32KWP.js";import{a as Ct}from"./chunk.GP725TPQ.js";import{a as C,b as B,d as pt,f as v}from"./chunk.IZ2HVRME.js";var D=Math.min,S=Math.max,ft=Math.round,ut=Math.floor,F=t=>({x:t,y:t}),ye={left:"right",right:"left",bottom:"top",top:"bottom"},we={start:"end",end:"start"};function yt(t,e,n){return S(t,D(e,n))}function Z(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}var xe=new Set(["top","bottom"]);function j(t){return xe.has(I(t))?"y":"x"}function xt(t){return Pt(j(t))}function Wt(t,e,n){n===void 0&&(n=!1);let o=tt(t),i=xt(t),s=wt(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=at(r)),[r,at(r)]}function Vt(t){let e=at(t);return[gt(t),e,gt(e)]}function gt(t){return t.replace(/start|end/g,e=>we[e])}var Ft=["left","right"],Ht=["right","left"],be=["top","bottom"],ve=["bottom","top"];function Re(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Ft:e?Ft:Ht;case"left":case"right":return e?be:ve;default:return[]}}function _t(t,e,n,o){let i=tt(t),s=Re(I(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(gt)))),s}function at(t){return t.replace(/left|right|bottom|top/g,e=>ye[e])}function Oe(t){return C({top:0,right:0,bottom:0,left:0},t)}function Lt(t){return typeof t!="number"?Oe(t):{top:t,right:t,bottom:t,left:t}}function et(t){let{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Dt(t,e,n){let{reference:o,floating:i}=t,s=j(e),r=xt(e),l=wt(r),c=I(e),f=s==="y",a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2,h;switch(c){case"top":h={x:a,y:o.y-i.height};break;case"bottom":h={x:a,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(tt(e)){case"start":h[r]-=d*(n&&f?-1:1);break;case"end":h[r]+=d*(n&&f?-1:1);break}return h}var jt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:u}=Dt(f,o,c),d=o,h={},m=0;for(let p=0;p<l.length;p++){let{name:g,fn:y}=l[p],{x:w,y:b,data:O,reset:E}=await y({x:a,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:f,platform:r,elements:{reference:t,floating:e}});a=w!=null?w:a,u=b!=null?b:u,h=B(C({},h),{[g]:C(C({},h[g]),O)}),E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(f=E.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:a,y:u}=Dt(f,d,c)),p=-1)}return{x:a,y:u,placement:d,strategy:i,middlewareData:h}};async function bt(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:d=!1,padding:h=0}=Z(e,t),m=Lt(h),g=l[d?u==="floating"?"reference":"floating":u],y=et(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:a,strategy:c})),w=u==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),O=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},E=et(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:c}):w);return{top:(y.top-E.top+m.top)/O.y,bottom:(E.bottom-y.bottom+m.bottom)/O.y,left:(y.left-E.left+m.left)/O.x,right:(E.right-y.right+m.right)/O.x}}var Xt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:c}=e,{element:f,padding:a=0}=Z(t,e)||{};if(f==null)return{};let u=Lt(a),d={x:n,y:o},h=xt(i),m=wt(h),p=await r.getDimensions(f),g=h==="y",y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",O=s.reference[m]+s.reference[h]-d[h]-s.floating[m],E=d[h]-s.reference[h],M=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),A=M?M[b]:0;(!A||!await(r.isElement==null?void 0:r.isElement(M)))&&(A=l.floating[b]||s.floating[m]);let X=O/2-E/2,V=A/2-p[m]/2-1,T=D(u[y],V),U=D(u[w],V),_=T,G=A-p[m]-U,L=A/2-p[m]/2+X,N=yt(_,L,G),J=!c.arrow&&tt(i)!=null&&L!==N&&s.reference[m]/2-(L<_?T:U)-p[m]/2<0,Y=J?L<_?L-_:L-G:0;return{[h]:d[h]+Y,data:C({[h]:N,centerOffset:L-N-Y},J&&{alignmentOffset:Y}),reset:J}}});var Yt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:c,elements:f}=e,L=Z(t,e),{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0}=L,g=pt(L,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let y=I(i),w=j(l),b=I(l)===l,O=await(c.isRTL==null?void 0:c.isRTL(f.floating)),E=d||(b||!p?[at(l)]:Vt(l)),M=m!=="none";!d&&M&&E.push(..._t(l,p,m,O));let A=[l,...E],X=await bt(e,g),V=[],T=((o=s.flip)==null?void 0:o.overflows)||[];if(a&&V.push(X[y]),u){let N=Wt(i,r,O);V.push(X[N[0]],X[N[1]])}if(T=[...T,{placement:i,overflows:V}],!V.every(N=>N<=0)){var U,_;let N=(((U=s.flip)==null?void 0:U.index)||0)+1,J=A[N];if(J&&(!(u==="alignment"?w!==j(J):!1)||T.every(z=>j(z.placement)===w?z.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:J}};let Y=(_=T.filter(Q=>Q.overflows[0]<=0).sort((Q,z)=>Q.overflows[1]-z.overflows[1])[0])==null?void 0:_.placement;if(!Y)switch(h){case"bestFit":{var G;let Q=(G=T.filter(z=>{if(M){let K=j(z.placement);return K===w||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,ge)=>K+ge,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:G[0];Q&&(Y=Q);break}case"initialPlacement":Y=l;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};var Ee=new Set(["left","top"]);async function Ce(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=I(n),l=tt(n),c=j(n)==="y",f=Ee.has(r)?-1:1,a=s&&c?-1:1,u=Z(e,t),{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof m=="number"&&(h=l==="end"?m*-1:m),c?{x:h*a,y:d*f}:{x:d*f,y:h*a}}var It=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:s,placement:r,middlewareData:l}=e,c=await Ce(e,t);return r===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:B(C({},c),{placement:r})}}}},qt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,g=Z(t,e),{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:y=>{let{x:w,y:b}=y;return{x:w,y:b}}}}=g,c=pt(g,["mainAxis","crossAxis","limiter"]),f={x:n,y:o},a=await bt(e,c),u=j(I(i)),d=Pt(u),h=f[d],m=f[u];if(s){let y=d==="y"?"top":"left",w=d==="y"?"bottom":"right",b=h+a[y],O=h-a[w];h=yt(b,h,O)}if(r){let y=u==="y"?"top":"left",w=u==="y"?"bottom":"right",b=m+a[y],O=m-a[w];m=yt(b,m,O)}let p=l.fn(B(C({},e),{[d]:h,[u]:m}));return B(C({},p),{data:{x:p.x-n,y:p.y-o,enabled:{[d]:s,[u]:r}}})}}};var Ut=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;let{placement:i,rects:s,platform:r,elements:l}=e,T=Z(t,e),{apply:c=()=>{}}=T,f=pt(T,["apply"]),a=await bt(e,f),u=I(i),d=tt(i),h=j(i)==="y",{width:m,height:p}=s.floating,g,y;u==="top"||u==="bottom"?(g=u,y=d===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(y=u,g=d==="end"?"top":"bottom");let w=p-a.top-a.bottom,b=m-a.left-a.right,O=D(p-a[g],w),E=D(m-a[y],b),M=!e.middlewareData.shift,A=O,X=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(X=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(A=w),M&&!d){let U=S(a.left,0),_=S(a.right,0),G=S(a.top,0),L=S(a.bottom,0);h?X=m-2*(U!==0||_!==0?U+_:S(a.left,a.right)):A=p-2*(G!==0||L!==0?G+L:S(a.top,a.bottom))}await c(B(C({},e),{availableWidth:X,availableHeight:A}));let V=await r.getDimensions(l.floating);return m!==V.width||p!==V.height?{reset:{rects:!0}}:{}}}};function vt(){return typeof window!="undefined"}function nt(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return vt()?t instanceof Node||t instanceof P(t).Node:!1}function $(t){return vt()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return vt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Gt(t){return!vt()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}var Ae=new Set(["inline","contents"]);function st(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ae.has(i)}var Se=new Set(["table","td","th"]);function Jt(t){return Se.has(nt(t))}var Pe=[":popover-open",":modal"];function ht(t){return Pe.some(e=>{try{return t.matches(e)}catch(n){return!1}})}var Le=["transform","translate","scale","rotate","perspective"],Te=["transform","translate","scale","rotate","perspective","filter"],Be=["paint","layout","strict","content"];function lt(t){let e=Rt(),n=$(t)?k(t):t;return Le.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Te.some(o=>(n.willChange||"").includes(o))||Be.some(o=>(n.contain||"").includes(o))}function Qt(t){let e=q(t);for(;W(e)&&!ot(e);){if(lt(e))return e;if(ht(e))return null;e=q(e)}return null}function Rt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var $e=new Set(["html","body","#document"]);function ot(t){return $e.has(nt(t))}function k(t){return P(t).getComputedStyle(t)}function dt(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if(nt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Gt(t)&&t.host||H(t);return Gt(e)?e.host:e}function Zt(t){let e=q(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&st(e)?e:Zt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Zt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=P(i);if(s){let l=Ot(r);return e.concat(r,r.visualViewport||[],st(i)?i:[],l&&n?rt(l):[])}return e.concat(i,rt(i,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oe(t){let e=k(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=W(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=ft(n)!==s||ft(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function Bt(t){return $(t)?t:t.contextElement}function ct(t){let e=Bt(t);if(!W(e))return F(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=oe(e),r=(s?ft(n.width):n.width)/o,l=(s?ft(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var ke=F(0);function ie(t){let e=P(t);return!Rt()||!e.visualViewport?ke:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Me(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),s=Bt(t),r=F(1);e&&(o?$(o)&&(r=ct(o)):r=ct(t));let l=Me(s,n,o)?ie(s):F(0),c=(i.left+l.x)/r.x,f=(i.top+l.y)/r.y,a=i.width/r.x,u=i.height/r.y;if(s){let d=P(s),h=o&&$(o)?P(o):o,m=d,p=Ot(m);for(;p&&o&&h!==m;){let g=ct(p),y=p.getBoundingClientRect(),w=k(p),b=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*g.x,O=y.top+(p.clientTop+parseFloat(w.paddingTop))*g.y;c*=g.x,f*=g.y,a*=g.x,u*=g.y,c+=b,f+=O,m=P(p),p=Ot(m)}}return et({width:a,height:u,x:c,y:f})}function Et(t,e){let n=dt(t).scrollLeft;return e?e.left+n:it(H(t)).left+n}function re(t,e){let n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-Et(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Ne(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,s=i==="fixed",r=H(o),l=e?ht(e.floating):!1;if(o===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},f=F(1),a=F(0),u=W(o);if((u||!u&&!s)&&((nt(o)!=="body"||st(r))&&(c=dt(o)),W(o))){let h=it(o);f=ct(o),a.x=h.x+o.clientLeft,a.y=h.y+o.clientTop}let d=r&&!u&&!s?re(r,c):F(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+a.x+d.x,y:n.y*f.y-c.scrollTop*f.y+a.y+d.y}}function ze(t){return Array.from(t.getClientRects())}function Fe(t){let e=H(t),n=dt(t),o=t.ownerDocument.body,i=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+Et(t),l=-n.scrollTop;return k(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}var te=25;function He(t,e){let n=P(t),o=H(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;let a=Rt();(!a||a&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}let f=Et(o);if(f<=0){let a=o.ownerDocument,u=a.body,d=getComputedStyle(u),h=a.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=te&&(s-=m)}else f<=te&&(s+=f);return{width:s,height:r,x:l,y:c}}var We=new Set(["absolute","fixed"]);function Ve(t,e){let n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?ct(t):F(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,f=o*s.y;return{width:r,height:l,x:c,y:f}}function ee(t,e,n){let o;if(e==="viewport")o=He(t,n);else if(e==="document")o=Fe(H(t));else if($(e))o=Ve(e,n);else{let i=ie(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return et(o)}function se(t,e){let n=q(t);return n===e||!$(n)||ot(n)?!1:k(n).position==="fixed"||se(n,e)}function _e(t,e){let n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(l=>$(l)&&nt(l)!=="body"),i=null,s=k(t).position==="fixed",r=s?q(t):t;for(;$(r)&&!ot(r);){let l=k(r),c=lt(r);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&We.has(i.position)||st(r)&&!c&&se(t,r))?o=o.filter(a=>a!==r):i=l,r=q(r)}return e.set(t,o),o}function De(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?ht(e)?[]:_e(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((f,a)=>{let u=ee(e,a,i);return f.top=S(u.top,f.top),f.right=D(u.right,f.right),f.bottom=D(u.bottom,f.bottom),f.left=S(u.left,f.left),f},ee(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function je(t){let{width:e,height:n}=oe(t);return{width:e,height:n}}function Xe(t,e,n){let o=W(e),i=H(e),s=n==="fixed",r=it(t,!0,s,e),l={scrollLeft:0,scrollTop:0},c=F(0);function f(){c.x=Et(i)}if(o||!o&&!s)if((nt(e)!=="body"||st(i))&&(l=dt(e)),o){let h=it(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else i&&f();s&&!o&&i&&f();let a=i&&!o&&!s?re(i,l):F(0),u=r.left+l.scrollLeft-c.x-a.x,d=r.top+l.scrollTop-c.y-a.y;return{x:u,y:d,width:r.width,height:r.height}}function Tt(t){return k(t).position==="static"}function ne(t,e){if(!W(t)||k(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function le(t,e){let n=P(t);if(ht(t))return n;if(!W(t)){let i=q(t);for(;i&&!ot(i);){if($(i)&&!Tt(i))return i;i=q(i)}return n}let o=ne(t,e);for(;o&&Jt(o)&&Tt(o);)o=ne(o,e);return o&&ot(o)&&Tt(o)&&!lt(o)?n:o||Qt(t)||n}var Ye=async function(t){let e=this.getOffsetParent||le,n=this.getDimensions,o=await n(t.floating);return{reference:Xe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ie(t){return k(t).direction==="rtl"}var mt={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:H,getClippingRect:De,getOffsetParent:le,getElementRects:Ye,getClientRects:ze,getDimensions:je,getScale:ct,isElement:$,isRTL:Ie};function ce(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function qe(t,e){let n=null,o,i=H(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function r(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();let f=t.getBoundingClientRect(),{left:a,top:u,width:d,height:h}=f;if(l||e(),!d||!h)return;let m=ut(u),p=ut(i.clientWidth-(a+d)),g=ut(i.clientHeight-(u+h)),y=ut(a),b={rootMargin:-m+"px "+-p+"px "+-g+"px "+-y+"px",threshold:S(0,D(1,c))||1},O=!0;function E(M){let A=M[0].intersectionRatio;if(A!==c){if(!O)return r();A?r(!1,A):o=setTimeout(()=>{r(!1,1e-7)},1e3)}A===1&&!ce(f,t.getBoundingClientRect())&&r(),O=!1}try{n=new IntersectionObserver(E,B(C({},b),{root:i.ownerDocument}))}catch(M){n=new IntersectionObserver(E,b)}n.observe(t)}return r(!0),s}function ae(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Bt(t),a=i||s?[...f?rt(f):[],...rt(e)]:[];a.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});let u=f&&l?qe(f,n):null,d=-1,h=null;r&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===f&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(e)})),n()}),f&&!c&&h.observe(f),h.observe(e));let m,p=c?it(t):null;c&&g();function g(){let y=it(t);p&&!ce(p,y)&&n(),p=y,m=requestAnimationFrame(g)}return n(),()=>{var y;a.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),u==null||u(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}var fe=It;var ue=qt,he=Yt,$t=Ut;var de=Xt;var me=(t,e,n)=>{let o=new Map,i=C({platform:mt},n),s=B(C({},i.platform),{_c:o});return jt(t,e,B(C({},i),{platform:s}))};function pe(t){return Ue(t)}function kt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ue(t){for(let e=t;e;e=kt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=kt(t);e;e=kt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||lt(n)||e.tagName==="BODY"))return e}return null}var x=class extends Nt{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let n=this.anchorEl.getBoundingClientRect(),o=this.popup.getBoundingClientRect(),i=this.placement.includes("top")||this.placement.includes("bottom"),s=0,r=0,l=0,c=0,f=0,a=0,u=0,d=0;i?n.top<o.top?(s=n.left,r=n.bottom,l=n.right,c=n.bottom,f=o.left,a=o.top,u=o.right,d=o.top):(s=o.left,r=o.bottom,l=o.right,c=o.bottom,f=n.left,a=n.top,u=n.right,d=n.top):n.left<o.left?(s=n.right,r=n.top,l=o.left,c=o.top,f=n.right,a=n.bottom,u=o.left,d=o.bottom):(s=o.right,r=o.top,l=n.left,c=n.top,f=o.right,a=o.bottom,u=n.left,d=n.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${s}px`),this.style.setProperty("--hover-bridge-top-left-y",`${r}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${a}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${d}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(n){super.updated(n),n.has("active")&&(this.active?this.start():this.stop()),n.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let n=this.getRootNode();this.anchorEl=n.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=ae(this.anchorEl,this.popup,()=>{this.reposition()}))}stop(){return new Promise(n=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>n())):n()})}reposition(){if(!this.active||!this.anchorEl)return;let n=[fe({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?n.push($t({apply:({rects:i})=>{let s=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=r?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(he({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(ue({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push($t({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push(de({element:this.arrowEl,padding:this.arrowPadding}));let o=this.strategy==="absolute"?i=>mt.getOffsetParent(i,pe):mt.getOffsetParent;me(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:B(C({},mt),{getOffsetParent:o})}).then(({x:i,y:s,middlewareData:r,placement:l})=>{let c=getComputedStyle(this).direction==="rtl",f={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){let a=r.arrow.x,u=r.arrow.y,d="",h="",m="",p="";if(this.arrowPlacement==="start"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",h=c?g:"",p=c?"":g}else if(this.arrowPlacement==="end"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=c?"":g,p=c?g:"",m=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(p=typeof a=="number"?"calc(50% - var(--arrow-size-diagonal))":"",d=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(p=typeof a=="number"?`${a}px`:"",d=typeof u=="number"?`${u}px`:"");Object.assign(this.arrowEl.style,{top:d,right:h,bottom:m,left:p,[f]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("dsa-reposition")}render(){return Ct`
2
- <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3
-
4
- <span
5
- part="hover-bridge"
6
- class=${St({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
7
- ></span>
8
-
9
- <div
10
- part="popup"
11
- class=${St({popup:!0,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
12
- >
13
- <slot></slot>
14
- ${this.arrow?Ct`<div
15
- part="arrow"
16
- class="popup__arrow"
17
- role="presentation"
18
- ></div>`:""}
19
- </div>
20
- `}};x.styles=zt,v([At(".popup")],x.prototype,"popup",2),v([At(".popup__arrow")],x.prototype,"arrowEl",2),v([R()],x.prototype,"anchor",2),v([R({type:Boolean,reflect:!0})],x.prototype,"active",2),v([R({reflect:!0})],x.prototype,"placement",2),v([R({reflect:!0})],x.prototype,"strategy",2),v([R({type:Number})],x.prototype,"distance",2),v([R({type:Number})],x.prototype,"skidding",2),v([R({type:Boolean})],x.prototype,"arrow",2),v([R({attribute:"arrow-placement"})],x.prototype,"arrowPlacement",2),v([R({attribute:"arrow-padding",type:Number})],x.prototype,"arrowPadding",2),v([R({type:Boolean})],x.prototype,"flip",2),v([R({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(o=>o.trim()).filter(o=>o!==""),toAttribute:n=>n.join(" ")}})],x.prototype,"flipFallbackPlacements",2),v([R({attribute:"flip-fallback-strategy"})],x.prototype,"flipFallbackStrategy",2),v([R({type:Object})],x.prototype,"flipBoundary",2),v([R({attribute:"flip-padding",type:Number})],x.prototype,"flipPadding",2),v([R({type:Boolean})],x.prototype,"shift",2),v([R({type:Object})],x.prototype,"shiftBoundary",2),v([R({attribute:"shift-padding",type:Number})],x.prototype,"shiftPadding",2),v([R({attribute:"auto-size"})],x.prototype,"autoSize",2),v([R()],x.prototype,"sync",2),v([R({type:Object})],x.prototype,"autoSizeBoundary",2),v([R({attribute:"auto-size-padding",type:Number})],x.prototype,"autoSizePadding",2),v([R({attribute:"hover-bridge",type:Boolean})],x.prototype,"hoverBridge",2),x=v([Mt("dsa-popup")],x);export{x as a};
@@ -1,108 +0,0 @@
1
- import{a as _}from"./chunk.HCFW7RW4.js";import{a as B}from"./chunk.VMXJHVRU.js";import{a as x}from"./chunk.U4TME7DS.js";import{a as I}from"./chunk.NJBAMERR.js";import{a as T}from"./chunk.SWEIVB73.js";import{a as z}from"./chunk.ELL45QD3.js";import{b as C}from"./chunk.FWTZS7LK.js";import{a as F}from"./chunk.7OMTHUFI.js";import{a as f}from"./chunk.B4KFHYLS.js";import{a as E}from"./chunk.NIRNX67K.js";import{c as $}from"./chunk.LBAIMDY3.js";import{c as y}from"./chunk.KD3BHBHK.js";import{a as u}from"./chunk.2RF4WD6T.js";import{d as c}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as b,b as o,c as g,d as h,f as v}from"./chunk.KBZ32KWP.js";import{a as d}from"./chunk.GP725TPQ.js";import{f as r}from"./chunk.IZ2HVRME.js";var i=class extends v{constructor(){super(...arguments);this.formControlController=new C(this,{assumeInteractionOn:["dsa-blur","dsa-file-upload"],value:()=>[...this.fileUploadInput.files]});this.hasSlotController=new z(this,"help-text","label","button-label","description");this.localize=new $(this);this.storedFiles=[];this.internalError="";this.size="medium";this.label="";this.type="button";this.buttonLabel="";this.description="";this.helpText="";this.disabled=!1;this.required=!1;this.accept="";this.multiple=!1;this.error=!1;this.directory=!1;this.name="";this.value="";this.defaultValue="";this.errorMessage=""}get validity(){return this.fileUploadInput.validity}get validationMessage(){return this.fileUploadInput.validationMessage}get files(){return this.fileUploadInput.files}checkValidity(){return this.fileUploadInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.fileUploadInput.reportValidity();return e||this.fileUploadButton.focus(),e}setCustomValidity(e){this.fileUploadInput.setCustomValidity(e),this.formControlController.updateValidity()}removeFile(e){this.storedFiles.splice(e,1);let t=new DataTransfer;this.storedFiles.forEach(l=>t.items.add(l)),this.fileUploadInput.files=t.files,this.value=this.fileUploadInput.value,this.emit("dsa-file-upload",{detail:{files:this.storedFiles}})}connectedCallback(){super.connectedCallback(),this.getAllFileElements().forEach(t=>t.setAttribute("size",this.size))}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){e.stopPropagation(),this.fileUploadInput.click()}handleInvalid(e){this.internalError="",this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}getAllFileElements(){return[...this.querySelectorAll("dsa-file-upload-item")]}handleDefaultSlotChange(){this.getAllFileElements().forEach(t=>t.setAttribute("size",this.size))}handleBlur(){this.emit("dsa-blur")}handleFocus(){this.emit("dsa-focus")}addFiles(e){this.internalError="";let t=this.filterValidFiles(e);this.multiple?this.storedFiles=[...this.storedFiles,...t]:this.storedFiles=t;let l=new DataTransfer;this.storedFiles.forEach(n=>l.items.add(n)),this.fileUploadInput.files=l.files,this.value=this.fileUploadInput.value,this.formControlController.updateValidity(),this.emit("dsa-file-upload",{detail:{files:this.storedFiles}})}isAcceptedFileType(e){var a;if(!this.accept)return!0;let t=this.accept.split(",").map(s=>s.trim()),l=e.type,n=`.${(a=e.name.split(".").pop())!=null?a:""}`;return t.some(s=>{if(s.startsWith("."))return n===s;if(s.endsWith("/*")){let p=s.split("/")[0];return l.startsWith(p+"/")}else return l===s})}isAcceptedFileSize(e){return this.fileSizeLimit?e.size<=this.fileSizeLimit:!0}filterValidFiles(e){let t=[],l=[],n=e.filter(a=>{let s=this.isAcceptedFileType(a);s||t.push(a.name);let p=this.isAcceptedFileSize(a);return p||l.push(a.name),s&&p});if(t.length>0||l.length>0){let a=[];t.length>0&&a.push(d`${this.localize.term("fileTypeNotAccepted",t)}
2
- <ul>
3
- ${t.map(s=>d`<li>${s}</li>`)}
4
- </ul>`),l.length>0&&a.push(d`${this.localize.term("fileSizeExceeded",l)}
5
- <ul>
6
- ${l.map(s=>d`<li>${s}</li>`)}
7
- </ul>`),this.internalError=d`${a}`}return n}handleChange(){var t;let e=Array.from((t=this.fileUploadInput.files)!=null?t:[]);this.addFiles(e)}async handleDrop(e){e.preventDefault(),this.dropzone.classList.remove("dropzone--dragover");let t=e.dataTransfer;if(!t)return;let l=t.items,n=[...l].some(s=>{var p;return(p=s.webkitGetAsEntry())==null?void 0:p.isDirectory});if(!this.multiple)if(l.length>1||n){this.internalError=this.localize.term("onlySingleFileAllowed");return}else{let s=Array.from(t.files);this.addFiles(s);return}let a=await B(t);a.length&&this.addFiles(a)}handleDropzoneDragover(e){var l;e.preventDefault();let t=(l=e.dataTransfer)==null?void 0:l.items;t&&(this.multiple||t.length===1)&&this.dropzone.classList.add("dropzone--dragover")}handleDropzoneDragleave(){this.dropzone.classList.remove("dropzone--dragover")}handleInternalErrorHide(){this.internalError=""}getDescriptionIds(){let e=[];return this.error&&(e=["error-text"]),e=[...e,"description","help-text","slot_files"],e.join(" ")}handleSizeChange(){this.getAllFileElements().forEach(t=>t.setAttribute("size",this.size))}handleValueChange(){this.value===""&&this.fileUploadInput&&(this.fileUploadInput.value="")}focus(e){this.fileUploadButton.focus(e)}blur(){this.fileUploadButton.blur()}renderButtonAndInput(){let e=this.size;return this.type==="drop"&&this.size!=="small"&&(e=this.size==="medium"?"small":"medium"),d`
8
- <button
9
- part="file-upload-button"
10
- id="button"
11
- type="button"
12
- class=${c({button:!0,"button--small":e==="small","button--medium":e==="medium","button--large":e==="large","button--disabled":this.disabled})}
13
- ?disabled=${this.disabled}
14
- aria-required=${u(this.required?"true":void 0)}
15
- aria-invalid=${u(this.error?"true":void 0)}
16
- aria-describedby=${this.getDescriptionIds()}
17
- @click=${this.handleClick}
18
- @blur=${this.handleBlur}
19
- @focus=${this.handleFocus}
20
- >
21
- <slot name="button-label">
22
- ${this.buttonLabel||this.localize.term("fileSelect",this.directory,this.multiple)}
23
- </slot>
24
- </button>
25
- <input
26
- part="input"
27
- id="file"
28
- type="file"
29
- ?disabled=${this.disabled}
30
- ?required=${this.required}
31
- accept=${E(this.accept)}
32
- tabindex="-1"
33
- aria-hidden="true"
34
- ?multiple=${this.multiple}
35
- ?webkitdirectory=${u(this.directory)}
36
- @change=${this.handleChange}
37
- @invalid=${this.handleInvalid}
38
- />
39
- `}render(){let e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),l=this.hasSlotController.test("description"),n=this.label||e,a=this.helpText||t,s=this.description||l;return n||f("<dsa-file-upload> requires a label attribute or a label slot for accessibility"),this.error&&!this.errorMessage&&f("<dsa-file-upload> requires an error-message attribute for accessibility when the error attribute is set"),d`
40
- <fieldset
41
- part="base"
42
- class=${c({"form-control":!0,"form-control--error":this.error&&!this.disabled,"form-control--disabled":this.disabled,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":n,"form-control--has-description":s,"form-control--has-help-text":a,"form-control--internal-error":this.internalError!==""})}
43
- >
44
- <legend
45
- id="label"
46
- part="file-upload-label"
47
- class="form-control__label"
48
- aria-hidden=${n?"false":"true"}
49
- >
50
- ${this.required?d`<span class="form-control__label-required">*</span>`:""}
51
- <slot name="label">${this.label}</slot>
52
- </legend>
53
- <slot
54
- part="file-upload-description"
55
- id="description"
56
- name="description"
57
- class="form-control__description"
58
- >${this.description}</slot
59
- >
60
- <div class="form-control__field">
61
- ${this.type==="drop"?d` <div
62
- class="dropzone "
63
- @drop=${this.handleDrop}
64
- @dragover=${this.handleDropzoneDragover}
65
- @dragleave=${this.handleDropzoneDragleave}
66
- @click=${this.handleClick}
67
- >
68
- <div class="dropzone__icon-container">
69
- <dsa-icon
70
- library="system"
71
- name="file_upload"
72
- class="dropzone__icon"
73
- ></dsa-icon>
74
- </div>
75
- <p class="dropzone__text">
76
- ${this.localize.term("fileDropHere",this.multiple)}
77
- </p>
78
- <div class="button-container">
79
- ${this.renderButtonAndInput()}
80
- </div>
81
- </div>`:d` <div class="button-container">
82
- ${this.renderButtonAndInput()}
83
- </div>`}
84
- </div>
85
-
86
- <slot
87
- name="help-text"
88
- id="help-text"
89
- part="file-upload-help-text"
90
- class="form-control__help-text"
91
- >
92
- ${this.helpText}
93
- </slot>
94
- ${this.error&&!this.disabled?T(this.errorMessage):""}
95
- <dsa-alert
96
- variant="danger"
97
- ?open=${this.internalError!==""}
98
- class="internal-error"
99
- closable
100
- size=${this.size==="large"?"medium":"small"}
101
- @dsa-after-hide=${this.handleInternalErrorHide}
102
- >${this.internalError}</dsa-alert
103
- >
104
- <ul id="slot_files" part="slot_files">
105
- <slot @slotchange=${this.handleDefaultSlotChange}> </slot>
106
- </ul>
107
- </fieldset>
108
- `}};i.styles=_,i.dependencies={"dsa-icon":y,"dsa-error-text":I,"dsa-alert":F},r([h("#file")],i.prototype,"fileUploadInput",2),r([h("#button")],i.prototype,"fileUploadButton",2),r([h(".dropzone")],i.prototype,"dropzone",2),r([g()],i.prototype,"internalError",2),r([o()],i.prototype,"size",2),r([o()],i.prototype,"label",2),r([o()],i.prototype,"type",2),r([o({attribute:"button-label"})],i.prototype,"buttonLabel",2),r([o({attribute:"description"})],i.prototype,"description",2),r([o({attribute:"help-text"})],i.prototype,"helpText",2),r([o({type:Boolean,reflect:!0})],i.prototype,"disabled",2),r([o({type:Boolean,reflect:!0})],i.prototype,"required",2),r([o()],i.prototype,"accept",2),r([o({type:Boolean,reflect:!0})],i.prototype,"multiple",2),r([o({type:Boolean})],i.prototype,"error",2),r([o({type:Boolean,reflect:!0})],i.prototype,"directory",2),r([o()],i.prototype,"name",2),r([o()],i.prototype,"value",2),r([x()],i.prototype,"defaultValue",2),r([o({attribute:"error-message",converter:{fromAttribute:e=>e?e.split("|"):"",toAttribute:e=>typeof e=="string"?e:e.join("|")}})],i.prototype,"errorMessage",2),r([o({type:Number,attribute:"file-size-limit"})],i.prototype,"fileSizeLimit",2),r([m("size")],i.prototype,"handleSizeChange",1),r([m("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=r([b("dsa-file-upload")],i);export{i as a};
@@ -1,24 +0,0 @@
1
- import{a as d}from"./chunk.BARZKNDN.js";import{a as n}from"./chunk.LRR4YZGW.js";import{a as m}from"./chunk.B4KFHYLS.js";import{a as i}from"./chunk.NIRNX67K.js";import{c as p}from"./chunk.LBAIMDY3.js";import{d as s}from"./chunk.ZBHHLRFH.js";import{a as l,b as r,f as o}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends o{constructor(){super(...arguments);this.localize=new p(this);this.value=0;this.indeterminate=!1;this.label=""}render(){return this.label||m("<dsa-progress-bar> requires a label attribute for accessibility"),a`
2
- <div
3
- part="base"
4
- class=${s({"progress-bar":!0,"progress-bar--indeterminate":this.indeterminate,"progress-bar--rtl":this.localize.dir()==="rtl"})}
5
- role="progressbar"
6
- title=${i(this.title)}
7
- aria-label=${i(this.label.length>0?this.label:void 0)}
8
- aria-valuemin="0"
9
- aria-valuemax="100"
10
- aria-valuenow=${this.indeterminate?0:this.value}
11
- >
12
- <div
13
- part="indicator"
14
- class="progress-bar__indicator"
15
- style=${n({width:`${this.value}%`})}
16
- >
17
- ${this.indeterminate?"":a`
18
- <div part="label" class="progress-bar__label">
19
- ${this.value}%
20
- </div>
21
- `}
22
- </div>
23
- </div>
24
- `}};e.styles=d,t([r({type:Number,reflect:!0})],e.prototype,"value",2),t([r({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),t([r()],e.prototype,"label",2),e=t([l("dsa-progress-bar")],e);export{e as a};
@@ -1,4 +0,0 @@
1
- import{a as h}from"./chunk.XUPT47LV.js";import{a as m}from"./chunk.RTVNV4IL.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as r,b as o,d as n,f as d}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var e=class extends d{connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.setAttribute("role","list")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}updateChildrenClassName(){this.level&&this.querySelectorAll("dsa-menu-item").forEach(s=>{this.level===1?(s.classList.remove("level-2"),s.classList.add("level-1")):(s.classList.remove("level-1"),s.classList.add("level-2"))})}handleSlotChange(){this.updateChildrenClassName()}handleKeyDown(t){t.key===" "&&!(t.target instanceof m&&t.target.type==="button")&&t.preventDefault()}handleLevelChange(){this.updateChildrenClassName()}render(){return a`<slot
2
- @keydown=${this.handleKeyDown}
3
- @slotchange=${this.handleSlotChange}
4
- ></slot>`}};e.styles=h,l([n("slot")],e.prototype,"defaultSlot",2),l([o({type:Number})],e.prototype,"level",2),l([i("level",{waitUntilFirstUpdate:!0})],e.prototype,"handleLevelChange",1),e=l([r("dsa-menu-navigation")],e);export{e as a};
@@ -1,173 +0,0 @@
1
- import{a as z}from"./chunk.COMV5MJ5.js";import{a as x}from"./chunk.HEWKH2LT.js";import{a as P}from"./chunk.VL5LPHV3.js";import{a as K}from"./chunk.CUYQOZPJ.js";import{a as V}from"./chunk.U4TME7DS.js";import{a as L}from"./chunk.QTD6NQFL.js";import{a as T}from"./chunk.NJBAMERR.js";import{a as A}from"./chunk.CLIKZB5P.js";import{a as F}from"./chunk.WWRGGVFZ.js";import{b as k}from"./chunk.FWTZS7LK.js";import{a as b}from"./chunk.KLRPP4NQ.js";import{a as v,c as g}from"./chunk.HHVNQNCC.js";import{a as w,c as $}from"./chunk.TV2TMO2H.js";import{a as u}from"./chunk.NIRNX67K.js";import{c as D}from"./chunk.LBAIMDY3.js";import{c as M}from"./chunk.KD3BHBHK.js";import{a as f}from"./chunk.2RF4WD6T.js";import{d as y}from"./chunk.ZBHHLRFH.js";import{a as h}from"./chunk.BWEPOOQP.js";import{a as _,b as o,c as r,d as p}from"./chunk.KBZ32KWP.js";import{a}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";var m="dsa-option",s=class extends P{constructor(){super(...arguments);this.formControlController=new k(this,{assumeInteractionOn:["dsa-blur","dsa-input"]});this.localize=new D(this);this.hasVisualFocus=!1;this.displayLabel="";this.selectedOptions=[];this.allOptions=[];this.filteredOptions=[];this.displayedOptionsCount=0;this.debounceTimerId=null;this.open=!1;this.value="";this.defaultValue="";this.hoist=!1;this.placement="bottom";this.clearable=!1;this.noSyncWidth=!1;this.items=void 0;this.multiple=!1;this.maxOptionsVisible=3;this.visibleListLength=void 0;this.debounceTimeout=300;this.fetchingState="idle";this.overrideDefaultFiltering=!1}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.open=!1,this.allOptions=this.getAllOptions(),this.filteredOptions=[...this.allOptions],this.resetDisplayedOptionsCount()}handleBlur(){this.hasVisualFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasVisualFocus=!0,this.emit("dsa-focus")}handleComboboxMouseDown(e){let i=e.composedPath().some(l=>l instanceof Element&&l.tagName.toLowerCase()==="dsa-tag");this.readonly||this.disabled||i||(e.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.filterOptions(this.displayLabel),this.open?this.hide():this.show())}handleComboboxKeyDown(e){this.filterOptions(this.displayLabel),this.handleDefaultKeyDown(e)}handleClearMouseKeyDown(e){switch(e.stopPropagation(),e.key){case"Enter":case"Escape":this.clearSelection(),this.displayInput.focus({preventScroll:!0});break}}handleChange(){var e;this.displayLabel=this.displayInput.value,this.emit("dsa-change"),this.multiple||this.displayLabel!==((e=this.selectedOptions[0])==null?void 0:e.getTextLabel())&&this.clearSelectedOptions()}handleInput(){this.displayLabel=this.displayInput.value,this.show(),!this.multiple&&this.displayLabel===""&&this.clearSelection(),this.debounceTimerId!==null&&clearTimeout(this.debounceTimerId),this.debounceTimerId=window.setTimeout(()=>this.emit("dsa-input"),this.debounceTimeout)}handleClearClick(e){e.stopPropagation(),this.value!==""&&(this.displayInput.focus({preventScroll:!0}),this.clearSelection())}clearSelection(){this.clearSelectedOptions(),this.value="",this.syncOnSelection(),this.updateComplete.then(()=>{this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change")})}filterOptions(e){let t=L(e);this.overrideDefaultFiltering?this.filteredOptions=this.allOptions:this.filteredOptions=this.allOptions.filter(i=>L(i.innerText).includes(t))}resetDisplayedOptionsCount(){let e=this.visibleListLength?Math.min(this.visibleListLength,this.filteredOptions.length):this.filteredOptions.length;this.displayedOptionsCount!==e&&(this.displayedOptionsCount=e)}toggleOptionSelection(e,t){let i=t===void 0?!e.selected:t;e.selected!==i&&(e.selected=i),this.selectedOptions=this.allOptions.filter(l=>l.selected),this.syncOnSelection()}handleOptionClick(e){let i=e.target.closest(m);if(this.setCurrentOption(void 0),i!==this.seeMoreOption&&i!==null&&!i.disabled){let l=this.value;this.multiple?this.toggleOptionSelection(i):(this.setSelectedOptions(i),this.syncOnSelection(),this.filterOptions(this.displayLabel)),this.updateComplete.then(()=>{this.value!==l&&(this.emit("dsa-input"),this.emit("dsa-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0)}}handleDefaultSlotChange(){if(customElements.get(m)){this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection()}else customElements.whenDefined(m).then(()=>this.handleDefaultSlotChange());this.resetDisplayedOptionsCount()}handleTagRemove(e,t){e.stopPropagation(),!this.disabled&&!this.readonly&&(this.focusNextTagOrInput(t),this.toggleOptionSelection(t,!1),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}focusNextTagOrInput(e){let t=this.selectedOptions.findIndex(l=>l===e),i=this.selectedOptions[t+1];i?i.focus():this.displayInput.focus({preventScroll:!0})}getAllOptions(){if(this.items!==void 0)return this.items;let e=this.querySelectorAll(m),t=[];return e.forEach(i=>{let l=i.cloneNode(!0);l.multiple=this.multiple,l.id=l.value,t.push(l)}),t}clearSelectedOptions(){this.selectedOptions=[],this.allOptions.forEach(e=>{e.selected&&(e.selected=!1)})}setCurrentOption(e){let t=this.currentOption;t&&t!==e&&(t.current&&(t.current=!1),t.tabIndex!==-1&&(t.tabIndex=-1)),e!==void 0?(this.currentOption=e,e.current||(e.current=!0),e.tabIndex!==0&&(e.tabIndex=0),e.focus()):this.currentOption=void 0}setSelectedOptions(e){let t=Array.isArray(e)?e:[e],i=new Set(t);this.allOptions.forEach(l=>{let d=i.has(l);l.selected!==d&&(l.selected=d)}),this.selectedOptions=this.allOptions.filter(l=>l.selected)}handleClearMouseDown(e){e.stopPropagation(),e.preventDefault()}syncOnSelection(){var e,t,i,l;this.multiple?this.value=this.selectedOptions.map(d=>d.value):(this.value=(t=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?t:this.value,this.displayLabel=(l=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?l:""),this.updateComplete.then(()=>{this.formControlController.updateValidity(),this.filterOptions(this.displayLabel)})}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleDocumentFocusIn(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDocumentMouseDown(e){let t=e.composedPath();this&&!t.includes(this)&&this.hide()}handleDefaultKeyDown(e){switch(e.key){case"Escape":case"Tab":this.handleEscapeAndTabKeys(e);break;case"Enter":e.stopPropagation(),this.handleEnterKey(e);break;case" ":this.handleSpaceKey(e);break;case"ArrowLeft":case"ArrowRight":e.stopPropagation(),this.handleArrowKeys();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":e.stopPropagation(),this.handleNavigationKeys(e);break;default:e.stopPropagation(),this.focus();break}}handleEscapeAndTabKeys(e){if(this.open){e.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0}),this.hasVisualFocus=!0;return}e.key==="Escape"&&(this.multiple&&this.displayLabel!==""&&(e.stopPropagation(),this.displayLabel=""),!this.multiple&&this.selectedOptions.length>0&&(e.stopPropagation(),this.clearSelection()))}handleEnterKey(e){var l;let i=e.target.closest("dsa-tag")!==null;if((l=this.seeMoreOption)!=null&&l.current){this.handleSeeMoreClick();return}i||(e.preventDefault(),e.stopImmediatePropagation(),this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")})))}handleSpaceKey(e){this.open&&this.currentOption!==void 0&&!this.currentOption.disabled&&(e.preventDefault(),e.stopImmediatePropagation(),this.multiple?this.toggleOptionSelection(this.currentOption):(this.setSelectedOptions(this.currentOption),this.syncOnSelection(),this.hide(),this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0})),this.updateComplete.then(()=>{this.emit("dsa-input"),this.emit("dsa-change")}))}handleArrowKeys(){this.hasVisualFocus=!0,this.displayInput.focus({preventScroll:!0}),this.setCurrentOption(void 0)}handleNavigationKeys(e){var i,l;let t=this.currentOption!==void 0?this.filteredOptions.indexOf(this.currentOption):-1;switch(e.preventDefault(),this.open||this.show(),e.key){case"ArrowDown":if((i=this.seeMoreOption)!=null&&i.current)break;t<this.displayedOptionsCount-1?this.setCurrentOption(this.filteredOptions[t+1]):this.filteredOptions.length>this.displayedOptionsCount&&(this.seeMoreOption?this.setCurrentOption(this.seeMoreOption):this.setCurrentOption(void 0));break;case"ArrowUp":(l=this.seeMoreOption)!=null&&l.current?(this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption.current=!1):t===0?(this.setCurrentOption(void 0),this.focus()):t>0&&this.setCurrentOption(this.filteredOptions[t-1]);break;case"Home":this.setCurrentOption(this.filteredOptions[0]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break;case"End":this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount-1]),this.seeMoreOption&&(this.seeMoreOption.current=!1);break}this.hasVisualFocus=!1}handleSeeMoreClick(){var e;this.setCurrentOption(this.filteredOptions[this.displayedOptionsCount]),this.displayedOptionsCount=Math.min(this.displayedOptionsCount+((e=this.visibleListLength)!=null?e:0),this.filteredOptions.length),this.seeMoreOption&&(this.seeMoreOption.current=!1)}getDescriptionIds(){let e=[];if(this.multiple&&this.maxOptionsVisible>0){let t=this.selectedOptions.slice(0,this.maxOptionsVisible).map(i=>`tag-${i.value}`).join(" ");e=[...e,t]}return this.multiple&&this.selectedOptions.length>this.maxOptionsVisible&&(e=[...e,"tag-remaining"]),this.error&&(e=[...e,"error-text"]),e=[...e,"help-text","description"],e.join(" ")}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleReadonlyChange(){this.readonly&&(this.open=!1,this.handleOpenChange())}handleItemsChange(){var t;(t=this.items)==null||t.forEach(i=>{i.id=i.id&&i.id!==""?i.id:i.value,i.multiple=this.multiple}),this.allOptions=this.getAllOptions(),this.filterOptions(this.displayLabel);let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(i=>e.includes(i.value))),!this.multiple&&this.selectedOptions.length>0&&this.syncOnSelection(),this.resetDisplayedOptionsCount()}handleValueChange(){let e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(this.allOptions.filter(t=>e.includes(t.value))),this.multiple||this.syncOnSelection()}async handleOpenChange(){var e,t;if(this.open&&!this.disabled&&!this.readonly){this.emit("dsa-show"),this.addOpenListeners(),await g(this),this.listbox.hidden=!1,this.popup.active=!0,this.displayInput.focus({preventScroll:!0}),requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:i,options:l}=$(this,"select.show",{dir:this.localize.dir()});await v(this.popup.popup,i,l),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),this.multiple||(this.displayLabel=(t=(e=this.selectedOptions[0])==null?void 0:e.getTextLabel())!=null?t:""),await g(this);let{keyframes:i,options:l}=$(this,"select.hide",{dir:this.localize.dir()});await v(this.popup.popup,i,l),this.listbox.hidden=!0,this.popup.active=!1,this.emit("dsa-after-hide")}}handleDisplayLabelChange(){this.filterOptions(this.displayLabel),this.resetDisplayedOptionsCount()}handleMultipleChange(){this.allOptions.forEach(e=>{e.multiple!==this.multiple&&(e.multiple=this.multiple)})}async show(){if(!(this.open||this.disabled||this.readonly||this.allOptions.length===0&&this.fetchingState==="idle"))return this.open=!0,await b(this,"dsa-after-show")}async hide(){if(!this.open||this.disabled||this.readonly){this.open=!1;return}return this.open=!1,this.currentOption=void 0,await b(this,"dsa-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(e){this.valueInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){this.hasVisualFocus=!0,this.displayInput.focus(e)}blur(){this.hasVisualFocus=!1,this.displayInput.blur()}renderInput(){var S,I,C,E;let e=this.value.length>0,t=this.hasSlotController.test("label"),i=this.label?!0:!!t,l=this.clearable&&!this.disabled&&!this.readonly&&e,d=this.placeholder&&this.value.length===0,N=this.value?e?this.value.length:1:void 0,H=this.disabled||this.readonly,B=this.filteredOptions.slice(0,this.displayedOptionsCount);return a`
2
- <dsa-popup
3
- class=${y({select:!0,"select--error":this.error,"select--open":this.open,"select--disabled":this.disabled,"select--readonly":this.readonly,"select--multiple":this.multiple,"select--focused":this.hasVisualFocus,"select--placeholder-visible":d,"select--top":["top","top-start","top-end"].includes(this.placement),"select--bottom":["bottom","bottom-start","bottom-end"].includes(this.placement),"select--small":this.size==="small","select--medium":this.size==="medium","select--large":this.size==="large","select--on-base":this.variant==="base","select--on-layer":this.variant==="layer"})}
4
- part="popup"
5
- placement=${this.placement}
6
- strategy=${this.hoist?"fixed":"absolute"}
7
- flip
8
- shift
9
- sync=${this.noSyncWidth?void 0:"width"}
10
- auto-size="vertical"
11
- auto-size-padding="10"
12
- >
13
- <div
14
- part="combobox"
15
- class="select__combobox"
16
- slot="anchor"
17
- @click=${this.handleComboboxMouseDown}
18
- @keydown=${this.handleComboboxKeyDown}
19
- >
20
- <slot part="prefix" name="prefix" class="select__prefix"></slot>
21
- <div
22
- class=${y({"input-container":!0})}
23
- >
24
- <input
25
- id="input"
26
- part="display-input"
27
- class="select__display-input"
28
- type="text"
29
- .value=${this.displayLabel}
30
- placeholder=${u(this.placeholder)}
31
- .disabled=${this.disabled}
32
- size=${N}
33
- autocomplete="off"
34
- spellcheck="false"
35
- autocapitalize="off"
36
- ?readonly=${this.readonly}
37
- title=${u((S=this.accessibleName)!=null?S:this.title)}
38
- aria-controls="listbox"
39
- aria-autocomplete="list"
40
- aria-expanded=${this.open?"true":"false"}
41
- aria-haspopup="listbox"
42
- aria-labelledby=${u(i?"label":void 0)}
43
- aria-label=${u(i?void 0:(I=this.accessibleName)!=null?I:this.title)}
44
- aria-disabled=${f(this.readonly?"true":void 0)}
45
- aria-describedby=${this.getDescriptionIds()}
46
- aria-activedescendant=${(E=(C=this.currentOption)==null?void 0:C.id)!=null?E:""}
47
- aria-invalid=${f(this.error?"true":void 0)}
48
- aria-required=${f(this.required?"true":void 0)}
49
- role="combobox"
50
- @change=${this.handleChange}
51
- @input=${this.handleInput}
52
- @focus=${this.handleFocus}
53
- @blur=${this.handleBlur}
54
- @invalid=${this.handleInvalid}
55
- />
56
-
57
- ${this.multiple&&this.value.length>0?a`
58
- <div part="tags" class="select__tags">
59
- ${this.selectedOptions.map((c,O)=>O<this.maxOptionsVisible||this.maxOptionsVisible<=0?a`
60
- <dsa-tag
61
- part="tag"
62
- exportparts="
63
- base:tag__base,
64
- content:tag__content,
65
- remove-button:tag__remove-button,
66
- remove-button__base:tag__remove-button__base
67
- "
68
- size=${this.size}
69
- removable
70
- ?disable-removable-focus=${this.disabled||this.readonly}
71
- @dsa-remove=${R=>this.handleTagRemove(R,c)}
72
- label=${c.getTextLabel()}
73
- >
74
- </dsa-tag>
75
- <span
76
- id=${`tag-${c.value}`}
77
- class="hidden-tag-label"
78
- >${c.getTextLabel()},</span
79
- >
80
- `:O===this.maxOptionsVisible?a`
81
- <dsa-tag
82
- id="tag-remaining"
83
- size=${this.size}
84
- label="+${this.selectedOptions.length-O}"
85
- >
86
- </dsa-tag>
87
- `:null)}
88
- </div>
89
- `:""}
90
- </div>
91
-
92
- <input
93
- class="select__value-input"
94
- type="text"
95
- ?disabled=${H}
96
- ?required=${this.required}
97
- .value=${this.value}
98
- tabindex="-1"
99
- aria-hidden="true"
100
- @focus=${()=>this.focus()}
101
- @invalid=${this.handleInvalid}
102
- />
103
-
104
- ${l?a`
105
- <button
106
- part="clear-button"
107
- class="select__clear"
108
- type="button"
109
- aria-label=${this.localize.term("clearEntry")}
110
- @mousedown=${this.handleClearMouseDown}
111
- @keydown=${this.handleClearMouseKeyDown}
112
- @click=${this.handleClearClick}
113
- >
114
- <dsa-icon name="close" library="system"></dsa-icon>
115
- </button>
116
- `:""}
117
- ${this.allOptions.length>0||this.fetchingState!=="idle"?a`
118
- <dsa-icon
119
- class="select__expand-icon"
120
- name="expand_more"
121
- library="system"
122
- ></dsa-icon>
123
- `:""}
124
- </div>
125
- <ul
126
- id="listbox"
127
- role="listbox"
128
- aria-expanded=${this.open?"true":"false"}
129
- aria-multiselectable="false"
130
- aria-labelledby="label"
131
- part="listbox"
132
- class="select__panel"
133
- tabindex="-1"
134
- @keydown=${this.handleDefaultKeyDown}
135
- @mouseup=${this.handleOptionClick}
136
- >
137
- ${this.fetchingState==="loading"?a`
138
- <div class="select__loading_text">
139
- <dsa-spinner></dsa-spinner>
140
- <p>${this.localize.term("optionsLoading")}</p>
141
- </div>
142
- `:a``}
143
- ${this.fetchingState==="error"?a`
144
- <div class="select__loading_text">
145
- <p>${this.localize.term("optionsError")}</p>
146
- </div>
147
- `:a``}
148
- ${["idle","success"].includes(this.fetchingState)&&this.filteredOptions.length>0?B:a``}
149
- ${this.visibleListLength&&this.visibleListLength>0&&this.filteredOptions.length>this.displayedOptionsCount?a`
150
- <dsa-option
151
- class="select__panel-see-more-option"
152
- id="dsa-seemore-option"
153
- @click=${this.handleSeeMoreClick}
154
- ><span class="see-more-option-text"
155
- >${this.localize.term("seeMore")}</span
156
- ></dsa-option
157
- >
158
- `:""}
159
- ${["idle","success"].includes(this.fetchingState)&&this.filteredOptions.length===0?a`
160
- <div class="select__empty_text">
161
- <p>${this.localize.term("noMatchFound")}</p>
162
- </div>
163
- `:a``}
164
- </ul>
165
-
166
- <slot
167
- class="slot_options"
168
- tabindex="-1"
169
- @slotchange=${this.handleDefaultSlotChange}
170
- >
171
- </slot>
172
- </dsa-popup>
173
- `}};s.styles=A,s.dependencies={"dsa-icon":M,"dsa-popup":K,"dsa-tag":z,"dsa-error-text":T,"dsa-spinner":F,"dsa-option":x},n([p(".select")],s.prototype,"popup",2),n([p(".select__combobox")],s.prototype,"combobox",2),n([p(".select__display-input")],s.prototype,"displayInput",2),n([p(".select__value-input")],s.prototype,"valueInput",2),n([p(".select__panel")],s.prototype,"listbox",2),n([p(".select__panel-see-more-option")],s.prototype,"seeMoreOption",2),n([r()],s.prototype,"hasVisualFocus",2),n([r()],s.prototype,"displayLabel",2),n([r()],s.prototype,"currentOption",2),n([r()],s.prototype,"selectedOptions",2),n([r()],s.prototype,"allOptions",2),n([r()],s.prototype,"filteredOptions",2),n([r()],s.prototype,"displayedOptionsCount",2),n([o({type:Boolean,reflect:!0})],s.prototype,"open",2),n([o({converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>typeof e=="string"?e:e.join(" ")}})],s.prototype,"value",2),n([V()],s.prototype,"defaultValue",2),n([o({type:Boolean})],s.prototype,"hoist",2),n([o({reflect:!0})],s.prototype,"placement",2),n([o({type:Boolean})],s.prototype,"clearable",2),n([o({attribute:"no-sync-width",type:Boolean})],s.prototype,"noSyncWidth",2),n([o({type:Array,attribute:!1})],s.prototype,"items",2),n([o({type:Boolean})],s.prototype,"multiple",2),n([o({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),n([o({attribute:"visible-list-length",type:Number||void 0})],s.prototype,"visibleListLength",2),n([o({type:Number,attribute:"debounce-timeout"})],s.prototype,"debounceTimeout",2),n([o({attribute:"fetching-state"})],s.prototype,"fetchingState",2),n([o({type:Boolean,attribute:"override-default-filtering"})],s.prototype,"overrideDefaultFiltering",2),n([h("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),n([h("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),n([h("items")],s.prototype,"handleItemsChange",1),n([h("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),n([h("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),n([h("displayLabel")],s.prototype,"handleDisplayLabelChange",1),n([h("multiple")],s.prototype,"handleMultipleChange",1),s=n([_("dsa-combobox")],s);w("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});w("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
@@ -1,23 +0,0 @@
1
- import{a as m}from"./chunk.T5OLUN3T.js";import{a as g}from"./chunk.ELL45QD3.js";import{a as b}from"./chunk.B4KFHYLS.js";import{d as n}from"./chunk.ZBHHLRFH.js";import{a as h}from"./chunk.BWEPOOQP.js";import{a as r,b as l,d,f}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends f{constructor(){super(...arguments);this.hasSlotController=new g(this,"legend-title");this.legendTitle="";this.variant="base";this.disabled=!1;this.horizontal=!1;this.contrastedBorders=!1}updateChildrenDisabledState(){var a;let s=(a=this.defaultSlot)==null?void 0:a.assignedElements();s==null||s.forEach(i=>{"disabled"in i&&!i.disabled&&(i.disabled=this.disabled)})}handleSlotChange(){this.updateChildrenDisabledState()}handleDisabledChange(){this.updateChildrenDisabledState()}render(){let s=this.hasSlotController.test("label");return this.legendTitle||s||b("<dsa-fieldset> requires a legend-title attribute or a legend-title slot for accessibility"),o`
2
- <fieldset
3
- role="group"
4
- class=${n({fieldset:!0,"fieldset--on-base":this.variant==="base","fieldset--on-layer":this.variant==="layer","fieldset--horizontal":this.horizontal,"fieldset--vertical":!this.horizontal,"fieldset--contrasted-borders":this.contrastedBorders})}
5
- aria-labelledby="legend"
6
- >
7
- <div id="legend" class="fieldset__legend">
8
- <div class="fieldset__first-line">
9
- <slot name="legend-title" class="fieldset__legend-title"
10
- >${this.legendTitle}</slot
11
- >
12
- <slot name="tooltip" class="fieldset__tooltip"></slot>
13
- </div>
14
- <slot name="legend-subtitle" class="fieldset__legend-subtitle">
15
- ${this.legendSubtitle}
16
- </slot>
17
- </div>
18
-
19
- <div class="fieldset__content">
20
- <slot @slotchange=${this.handleSlotChange}></slot>
21
- </div>
22
- </fieldset>
23
- `}};e.styles=m,t([d("slot:not([name])")],e.prototype,"defaultSlot",2),t([l({attribute:"legend-title"})],e.prototype,"legendTitle",2),t([l({attribute:"legend-subtitle"})],e.prototype,"legendSubtitle",2),t([l({reflect:!0})],e.prototype,"variant",2),t([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([l({type:Boolean})],e.prototype,"horizontal",2),t([l({type:Boolean,reflect:!0,attribute:"contrasted-borders"})],e.prototype,"contrastedBorders",2),t([h("disabled")],e.prototype,"handleDisabledChange",1),e=t([r("dsa-fieldset")],e);export{e as a};
@@ -1,35 +0,0 @@
1
- import{a as m}from"./chunk.FC4RDJJF.js";import{a as P}from"./chunk.JP66XCHO.js";import{c as z}from"./chunk.LBAIMDY3.js";import{c as w}from"./chunk.KD3BHBHK.js";import{a as y}from"./chunk.2RF4WD6T.js";import{a as c}from"./chunk.BWEPOOQP.js";import{a as u,b as h,d as g,f as b}from"./chunk.KBZ32KWP.js";import{a as x}from"./chunk.UMC4I57R.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as n}from"./chunk.IZ2HVRME.js";function T(p,r){function e(o){let a=p.getBoundingClientRect(),s=p.ownerDocument.defaultView,v=a.left+s.pageXOffset,d=a.top+s.pageYOffset,l=o.pageX-v,E=o.pageY-d;r!=null&&r.onMove&&r.onMove(l,E)}function t(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",t),r!=null&&r.onStop&&r.onStop()}document.addEventListener("pointermove",e,{passive:!0}),document.addEventListener("pointerup",t),(r==null?void 0:r.initialEvent)instanceof PointerEvent&&e(r.initialEvent)}var i=class extends b{constructor(){super(...arguments);this.localize=new z(this);this.position=50;this.vertical=!1;this.disabled=!1;this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>this.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()==="rtl";this.disabled||(e.cancelable&&e.preventDefault(),T(this,{onMove:(o,a)=>{let s=this.vertical?a:o;this.primary==="end"&&(s=this.size-s),this.snap&&this.snap.split(" ").forEach(d=>{let l;d.endsWith("%")?l=this.size*(parseFloat(d)/100):l=parseFloat(d),t&&!this.vertical&&(l=this.size-l),s>=l-this.snapThreshold&&s<=l+this.snapThreshold&&(s=l)}),this.position=m(this.pixelsToPercentage(s),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=this.position,o=(e.shiftKey?10:1)*(this.primary==="end"?-1:1);e.preventDefault(),(e.key==="ArrowLeft"&&!this.vertical||e.key==="ArrowUp"&&this.vertical)&&(t-=o),(e.key==="ArrowRight"&&!this.vertical||e.key==="ArrowDown"&&this.vertical)&&(t+=o),e.key==="Home"&&(t=this.primary==="end"?100:0),e.key==="End"&&(t=this.primary==="end"?0:100),this.position=m(t,0,100)}}handleResize(e){let{width:t,height:o}=e[0].contentRect;this.size=this.vertical?o:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute("position-in-pixels")),this.positionInPixels=Number(this.getAttribute("position-in-pixels")),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("dsa-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",o=this.localize.dir()==="rtl",a=`
2
- clamp(
3
- 0%,
4
- clamp(
5
- var(--min),
6
- ${this.position}% - var(--divider-width) / 2,
7
- var(--max)
8
- ),
9
- calc(100% - var(--divider-width))
10
- )
11
- `,s="auto";return this.primary==="end"?o&&!this.vertical?this.style[e]=`${a} var(--divider-width) ${s}`:this.style[e]=`${s} var(--divider-width) ${a}`:o&&!this.vertical?this.style[e]=`${s} var(--divider-width) ${a}`:this.style[e]=`${a} var(--divider-width) ${s}`,this.style[t]="",f`
12
- <slot name="start" part="panel start" class="start"></slot>
13
-
14
- <div
15
- part="divider"
16
- class="divider"
17
- tabindex=${y(this.disabled?void 0:"0")}
18
- role="separator"
19
- aria-valuenow=${this.position}
20
- aria-valuemin="0"
21
- aria-valuemax="100"
22
- aria-label=${this.localize.term("resize")}
23
- @keydown=${this.handleKeyDown}
24
- @mousedown=${this.handleDrag}
25
- @touchstart=${this.handleDrag}
26
- >
27
- <dsa-icon
28
- name="drag_indicator"
29
- class="drag-icon"
30
- library="system"
31
- ></dsa-icon>
32
- </div>
33
-
34
- <slot name="end" part="panel end" class="end"></slot>
35
- `}};i.styles=[x,P],i.dependencies={"dsa-icon":w},n([g(".divider")],i.prototype,"divider",2),n([h({type:Number,reflect:!0})],i.prototype,"position",2),n([h({attribute:"position-in-pixels",type:Number})],i.prototype,"positionInPixels",2),n([h({type:Boolean,reflect:!0})],i.prototype,"vertical",2),n([h({type:Boolean,reflect:!0})],i.prototype,"disabled",2),n([h()],i.prototype,"primary",2),n([h()],i.prototype,"snap",2),n([h({type:Number,attribute:"snap-threshold"})],i.prototype,"snapThreshold",2),n([c("position")],i.prototype,"handlePositionChange",1),n([c("positionInPixels")],i.prototype,"handlePositionInPixelsChange",1),n([c("vertical")],i.prototype,"handleVerticalChange",1),i=n([u("dsa-split-panel")],i);export{i as a};
@@ -1,19 +0,0 @@
1
- import{a as S,b as T,c as g}from"./chunk.NJOCDP2A.js";import{a as E}from"./chunk.MHIIHFT3.js";import{a as d}from"./chunk.2RF4WD6T.js";import{a as v}from"./chunk.BWEPOOQP.js";import{a as L,b as u,c as _,f as A}from"./chunk.KBZ32KWP.js";import{a as $,f as y}from"./chunk.GP725TPQ.js";import{f as a}from"./chunk.IZ2HVRME.js";var{I:V}=y;var C=(i,o)=>o===void 0?(i==null?void 0:i._$litType$)!==void 0:(i==null?void 0:i._$litType$)===o;var G=i=>i.strings===void 0;var M={},H=(i,o=M)=>i._$AH=o;var m=Symbol(),f=Symbol(),b,R=new Map,s=class extends A{constructor(){super(...arguments);this.initialRender=!1;this.svg=null;this.label="";this.library="default"}async resolveIcon(r,c){var l;let e;if(c!=null&&c.spriteSheet){let t=typeof this.label=="string"&&this.label.length>0;return this.svg=$`
2
- <svg
3
- part="svg"
4
- role=${d(t?"img":void 0)}
5
- aria-hidden="${d(t?void 0:"true")}"
6
- aria-label="${d(t?this.label:void 0)}"
7
- >
8
- <use part="use" href="${r}"></use>
9
- </svg>
10
- `,this.svg}try{if(e=await fetch(r,{mode:"cors"}),!e.ok)return e.status===410?m:f}catch(t){return f}try{let t=document.createElement("div");t.innerHTML=await e.text();let n=t.firstElementChild;if(((l=n==null?void 0:n.tagName)==null?void 0:l.toLowerCase())!=="svg")return m;b||(b=new DOMParser);let p=b.parseFromString(n.outerHTML,"text/html").body.querySelector("svg");return p?(p.part.add("svg"),document.adoptNode(p)):m}catch(t){return m}}connectedCallback(){super.connectedCallback(),S(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),T(this)}getIconSource(){let r=g(this.library);return this.name&&r?{url:r.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}setSvgLabel(){if(!(this.svg instanceof SVGElement))return;typeof this.label=="string"&&this.label.length>0?(this.svg.setAttribute("role","img"),this.svg.setAttribute("aria-label",this.label),this.svg.removeAttribute("aria-hidden")):(this.svg.removeAttribute("role"),this.svg.removeAttribute("aria-label"),this.svg.setAttribute("aria-hidden","true"))}handleLabelChange(){this.setSvgLabel()}async setIcon(){var n;let{url:r,fromLibrary:c}=this.getIconSource(),e=c?g(this.library):void 0;if(!r){this.svg=null;return}let l=R.get(r);if(l||(l=this.resolveIcon(r,e),R.set(r,l)),!this.initialRender)return;let t=await l;if(t===f&&R.delete(r),r===this.getIconSource().url){if(C(t)){if(this.svg=t,e){await this.updateComplete;let h=this.shadowRoot.querySelector("[part='svg']");typeof e.mutator=="function"&&h&&e.mutator(h)}return}switch(t){case f:case m:this.svg=null,this.emit("dsa-error");break;default:this.svg=t.cloneNode(!0),(n=e==null?void 0:e.mutator)==null||n.call(e,this.svg),this.setSvgLabel(),this.emit("dsa-load")}}}render(){return this.svg}};s.styles=E,a([_()],s.prototype,"svg",2),a([u({reflect:!0})],s.prototype,"name",2),a([u()],s.prototype,"src",2),a([u()],s.prototype,"label",2),a([u({reflect:!0})],s.prototype,"library",2),a([v("label")],s.prototype,"handleLabelChange",1),a([v(["name","src","library"])],s.prototype,"setIcon",1),s=a([L("dsa-icon")],s);export{G as a,H as b,s as c};
11
- /*! Bundled license information:
12
-
13
- lit-html/directive-helpers.js:
14
- (**
15
- * @license
16
- * Copyright 2020 Google LLC
17
- * SPDX-License-Identifier: BSD-3-Clause
18
- *)
19
- */
@@ -1,3 +0,0 @@
1
- import{a as o}from"./chunk.6GC5ODVL.js";import{a as t}from"./chunk.6G2FNLAV.js";var m=t`
2
- ${o}
3
- `;export{m as a};