@ds-autonomie/web-components 1.22.2 → 1.23.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 (240) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/chunks/{chunk.BPEI35FP.js → chunk.2JIPPL3I.js} +1 -1
  3. package/dist/chunks/{chunk.5X4QTZAP.js → chunk.2LWUWDHO.js} +5 -2
  4. package/dist/chunks/{chunk.KCJKFLMI.js → chunk.2TQJGNLG.js} +1 -1
  5. package/dist/chunks/{chunk.4CA7E26P.js → chunk.33HY22NK.js} +77 -189
  6. package/dist/chunks/{chunk.7KYHO6CO.js → chunk.35CKPBLE.js} +1 -1
  7. package/dist/chunks/{chunk.BUDRSMFF.js → chunk.3EZTOQNV.js} +2 -2
  8. package/dist/chunks/{chunk.FPXW7ZMC.js → chunk.3KY7QTZE.js} +13 -5
  9. package/dist/chunks/{chunk.YXVKJQFH.js → chunk.3PHQ4BLH.js} +4 -1
  10. package/dist/chunks/{chunk.PQR2GAOE.js → chunk.3XIJ443Y.js} +1 -1
  11. package/dist/chunks/{chunk.YQX6XBXO.js → chunk.43G4V4JA.js} +7 -6
  12. package/dist/chunks/{chunk.DMX6VF2L.js → chunk.47JHZBMB.js} +1 -1
  13. package/dist/chunks/{chunk.GAC47LAL.js → chunk.4P45LB2J.js} +6 -4
  14. package/dist/chunks/{chunk.5MBTOZ4X.js → chunk.4ZYXTXB5.js} +6 -2
  15. package/dist/chunks/{chunk.GBFSCUF6.js → chunk.52QZ25CM.js} +5 -5
  16. package/dist/chunks/{chunk.M3FN3PFT.js → chunk.5OBDCB7I.js} +1 -1
  17. package/dist/chunks/{chunk.5DJID6VS.js → chunk.5RR67NIN.js} +1 -1
  18. package/dist/chunks/{chunk.TOWCNBTG.js → chunk.5SPPXRRA.js} +1 -1
  19. package/dist/chunks/{chunk.HRKZRSEX.js → chunk.5W2ADPTV.js} +1 -1
  20. package/dist/chunks/{chunk.GUSO7ZX7.js → chunk.66WACVGP.js} +1 -1
  21. package/dist/chunks/{chunk.FCXJCZEG.js → chunk.6AMOVQMF.js} +3 -3
  22. package/dist/chunks/{chunk.FUDAY7X2.js → chunk.6QHJJ6HQ.js} +1 -1
  23. package/dist/chunks/{chunk.EEKMHAZ5.js → chunk.7CXSHK4V.js} +6 -2
  24. package/dist/chunks/{chunk.NZSU3FNO.js → chunk.7NKRGNGW.js} +22 -6
  25. package/dist/chunks/{chunk.6YV75XW5.js → chunk.AF3ZNLUV.js} +3 -2
  26. package/dist/chunks/{chunk.F4QJBOMR.js → chunk.AYYW4GA7.js} +88 -197
  27. package/dist/chunks/{chunk.YGFOBU5R.js → chunk.BLOOH4O7.js} +2 -2
  28. package/dist/chunks/{chunk.QUB3Z4YN.js → chunk.BSUMGQ4B.js} +1 -1
  29. package/dist/chunks/{chunk.RC7QZSCE.js → chunk.CABS34UZ.js} +3 -3
  30. package/dist/chunks/{chunk.A5FZ3ZP6.js → chunk.COCN62Q7.js} +116 -231
  31. package/dist/chunks/{chunk.ZBZTILB6.js → chunk.CQHOJJEI.js} +1 -1
  32. package/dist/chunks/{chunk.4MDEHTR2.js → chunk.DC7PUODY.js} +2 -2
  33. package/dist/chunks/{chunk.2YCECXQ4.js → chunk.DDBVITXE.js} +2 -2
  34. package/dist/chunks/{chunk.XOAAGTHU.js → chunk.DE4CISVH.js} +1 -1
  35. package/dist/chunks/{chunk.75JDBBOQ.js → chunk.DKPTGNVN.js} +4 -3
  36. package/dist/chunks/{chunk.OOD25N36.js → chunk.E7D46GR5.js} +3 -2
  37. package/dist/chunks/{chunk.BTIJON33.js → chunk.EEGNWUXW.js} +4 -3
  38. package/dist/chunks/{chunk.DKATFHVQ.js → chunk.EG62SZ5F.js} +2 -1
  39. package/dist/chunks/{chunk.46QRHHLQ.js → chunk.ELSWDQF7.js} +124 -246
  40. package/dist/chunks/{chunk.YTRQPTZ3.js → chunk.EP7LLKJN.js} +1 -1
  41. package/dist/chunks/{chunk.PIL5B5ND.js → chunk.FAWAATV6.js} +2 -2
  42. package/dist/chunks/chunk.FJI3P5RX.js +158 -0
  43. package/dist/chunks/{chunk.42I2CPKY.js → chunk.FQMS24GI.js} +1 -1
  44. package/dist/chunks/{chunk.QBK6A3R2.js → chunk.GDOUDNZH.js} +1 -1
  45. package/dist/chunks/{chunk.5NEMV7VX.js → chunk.GN5K7Y37.js} +22 -5
  46. package/dist/chunks/{chunk.LKXJNHSQ.js → chunk.GNPJFQU2.js} +1 -1
  47. package/dist/chunks/{chunk.YAXCH4J7.js → chunk.HBUDYFQQ.js} +2 -2
  48. package/dist/chunks/{chunk.BETV66IR.js → chunk.HKVZJ7FV.js} +5 -5
  49. package/dist/chunks/{chunk.4JK743ZT.js → chunk.IPPHRX7W.js} +3 -1
  50. package/dist/chunks/{chunk.GM4DVAZJ.js → chunk.IPUOJRFA.js} +1 -1
  51. package/dist/chunks/{chunk.HR3WCXZI.js → chunk.IXDXQH27.js} +3 -1
  52. package/dist/chunks/{chunk.E3B2D5KE.js → chunk.IZBHR7GP.js} +0 -1
  53. package/dist/chunks/{chunk.4QQ5B4IL.js → chunk.JLVXPL5R.js} +1 -1
  54. package/dist/chunks/{chunk.AO6LCWR7.js → chunk.JUFWKPKA.js} +1 -1
  55. package/dist/chunks/{chunk.HOATJHQQ.js → chunk.KADIEJEA.js} +17 -1
  56. package/dist/chunks/{chunk.PGUC3I5F.js → chunk.KDQ7QGKG.js} +50 -168
  57. package/dist/chunks/{chunk.SMB4Q2LK.js → chunk.L64R3324.js} +1 -1
  58. package/dist/chunks/{chunk.GL4GU5DO.js → chunk.MJ3ZLDHO.js} +1 -1
  59. package/dist/chunks/{chunk.SDJYJZWB.js → chunk.MOXUFEWV.js} +80 -201
  60. package/dist/chunks/{chunk.KSSPTHJA.js → chunk.NILDQYHY.js} +2 -2
  61. package/dist/chunks/{chunk.W45NKAQM.js → chunk.NVCV74RN.js} +154 -275
  62. package/dist/chunks/{chunk.MKM7ZZA3.js → chunk.O52CMQXZ.js} +10 -23
  63. package/dist/chunks/{chunk.Q62BRBYD.js → chunk.PVNTVHSM.js} +4 -1
  64. package/dist/chunks/{chunk.EOWQAIDU.js → chunk.QDKQMUIQ.js} +4 -11
  65. package/dist/chunks/{chunk.XJU66OLS.js → chunk.QDMCHM32.js} +2 -2
  66. package/dist/chunks/{chunk.75SMDXL6.js → chunk.QPVOW5Y7.js} +1 -1
  67. package/dist/chunks/chunk.QTUCYPM5.js +61 -0
  68. package/dist/chunks/{chunk.WUZDHRQQ.js → chunk.QZ743FPY.js} +2 -2
  69. package/dist/chunks/{chunk.D6LJAMJM.js → chunk.RJQHPU3G.js} +10 -4
  70. package/dist/chunks/{chunk.BYTDEMP3.js → chunk.RPQWUBXM.js} +5 -3
  71. package/dist/chunks/{chunk.YKMMYGAJ.js → chunk.RS4JPM7N.js} +1 -1
  72. package/dist/chunks/{chunk.RKHCGLX6.js → chunk.RS7HNQVM.js} +3 -1
  73. package/dist/chunks/{chunk.SYXHGIMC.js → chunk.RWGL6D5U.js} +1 -1
  74. package/dist/chunks/{chunk.36WWRNIP.js → chunk.SHETMEY4.js} +3 -2
  75. package/dist/chunks/{chunk.HQKKL7C7.js → chunk.SJBAMGV4.js} +8 -2
  76. package/dist/chunks/chunk.SPSOTQ3Q.js +268 -0
  77. package/dist/chunks/{chunk.UPDUFREI.js → chunk.SX2NHC2D.js} +2 -1
  78. package/dist/chunks/{chunk.PSAB4UIG.js → chunk.SXCNBPZV.js} +5 -1
  79. package/dist/chunks/{chunk.5KFYZRQZ.js → chunk.TB3WT3D4.js} +2 -39
  80. package/dist/chunks/{chunk.LE6KR6YZ.js → chunk.TRPN2KWP.js} +28 -4
  81. package/dist/chunks/{chunk.O2PIWM25.js → chunk.UCR5H4HY.js} +3 -3
  82. package/dist/chunks/chunk.UTM2OEQ6.js +40 -0
  83. package/dist/chunks/{chunk.MAFEZZTX.js → chunk.UZEXRPNC.js} +2 -1
  84. package/dist/chunks/{chunk.L4BDK6WG.js → chunk.VBCRFPTQ.js} +6 -2
  85. package/dist/chunks/{chunk.LWJY5VKB.js → chunk.VMJ6DIIE.js} +6 -2
  86. package/dist/chunks/{chunk.KCKFUT7W.js → chunk.VNFFOE7Z.js} +2 -1
  87. package/dist/chunks/{chunk.KVWD6T4L.js → chunk.VOOE2BQV.js} +1 -1
  88. package/dist/chunks/{chunk.OMS37ACU.js → chunk.VT3IWNRD.js} +1 -1
  89. package/dist/chunks/{chunk.SG6IR57O.js → chunk.W635ZS25.js} +1 -1
  90. package/dist/chunks/{chunk.3KCZS7CR.js → chunk.WFXH625U.js} +1 -1
  91. package/dist/chunks/chunk.WOZTYBTC.js +38 -0
  92. package/dist/chunks/{chunk.CPXD6UYZ.js → chunk.WQQM4ALY.js} +5 -1
  93. package/dist/chunks/{chunk.5DAITYVK.js → chunk.XCRMRJG6.js} +3 -2
  94. package/dist/chunks/{chunk.OEYZ3CTB.js → chunk.XTFOV6IO.js} +10 -4
  95. package/dist/chunks/{chunk.7YZDEXJY.js → chunk.Y4AZARNM.js} +13 -5
  96. package/dist/chunks/{chunk.FN3YT4DB.js → chunk.Y7CSNRKE.js} +1 -1
  97. package/dist/chunks/{chunk.DA6UU6UL.js → chunk.YIY5RM53.js} +0 -17
  98. package/dist/chunks/{chunk.IE34DJRP.js → chunk.YPDQVYQD.js} +1 -1
  99. package/dist/chunks/{chunk.POBERW54.js → chunk.ZJSZJA26.js} +2 -1
  100. package/dist/components/accordion/accordion.js +6 -6
  101. package/dist/components/alert/alert.js +7 -7
  102. package/dist/components/avatar/avatar.js +5 -5
  103. package/dist/components/badge/badge.js +2 -2
  104. package/dist/components/breadcrumb/breadcrumb.js +6 -6
  105. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  106. package/dist/components/button/button.d.ts +5 -0
  107. package/dist/components/button/button.js +9 -9
  108. package/dist/components/button/button.styles.js +1 -1
  109. package/dist/components/calendar/calendar.js +2 -2
  110. package/dist/components/callout/callout.js +5 -5
  111. package/dist/components/card/card.js +2 -2
  112. package/dist/components/checkbox/checkbox.js +10 -10
  113. package/dist/components/checkbox/checkbox.styles.js +2 -2
  114. package/dist/components/checkbox-button/checkbox-button.d.ts +4 -34
  115. package/dist/components/checkbox-button/checkbox-button.js +7 -8
  116. package/dist/components/checkbox-group/checkbox-group.js +6 -6
  117. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  118. package/dist/components/combobox/combobox.d.ts +3 -36
  119. package/dist/components/combobox/combobox.js +15 -14
  120. package/dist/components/combobox/combobox.styles.js +2 -2
  121. package/dist/components/dialog/dialog.js +8 -8
  122. package/dist/components/download-card/download-card.d.ts +2 -0
  123. package/dist/components/download-card/download-card.js +5 -5
  124. package/dist/components/download-link/download-link.d.ts +2 -0
  125. package/dist/components/download-link/download-link.js +5 -5
  126. package/dist/components/drawer/drawer.js +8 -8
  127. package/dist/components/dropdown/dropdown.js +2 -2
  128. package/dist/components/error-message-panel/error-message-panel.js +3 -3
  129. package/dist/components/error-text/error-text.js +1 -1
  130. package/dist/components/error-text/error-text.utils.js +1 -1
  131. package/dist/components/file-upload/file-upload.d.ts +3 -1
  132. package/dist/components/file-upload/file-upload.js +6 -6
  133. package/dist/components/file-upload/file-upload.styles.js +2 -2
  134. package/dist/components/file-upload-item/file-upload-item.js +3 -3
  135. package/dist/components/filter/filter-base/filter-base.js +3 -3
  136. package/dist/components/filter/filter-button/filter-button.js +8 -8
  137. package/dist/components/filter/filter-counter/filter-counter.js +4 -4
  138. package/dist/components/filter/filter-date/filter-date.js +12 -12
  139. package/dist/components/filter/filter-range/filter-range.js +21 -20
  140. package/dist/components/filter/filter-select/filter-select.js +19 -18
  141. package/dist/components/footer/footer.js +3 -3
  142. package/dist/components/footer-content-block/footer-content-block.js +2 -2
  143. package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
  144. package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
  145. package/dist/components/format-bytes/format-bytes.js +2 -2
  146. package/dist/components/format-date/format-date.js +2 -2
  147. package/dist/components/format-number/format-number.js +2 -2
  148. package/dist/components/header/header.js +4 -4
  149. package/dist/components/header-search/header-search.js +2 -2
  150. package/dist/components/icon/icon.js +4 -4
  151. package/dist/components/icon/library.js +2 -2
  152. package/dist/components/icon/library.system.js +1 -1
  153. package/dist/components/icon-button/icon-button.d.ts +5 -0
  154. package/dist/components/icon-button/icon-button.js +5 -5
  155. package/dist/components/input/input.d.ts +4 -35
  156. package/dist/components/input/input.js +16 -15
  157. package/dist/components/input/input.styles.js +2 -2
  158. package/dist/components/input-date/input-date.d.ts +3 -36
  159. package/dist/components/input-date/input-date.js +15 -14
  160. package/dist/components/input-date/input-date.styles.js +3 -3
  161. package/dist/components/input-mask/input-mask.d.ts +3 -37
  162. package/dist/components/input-mask/input-mask.js +8 -7
  163. package/dist/components/input-mask/input-mask.styles.js +2 -2
  164. package/dist/components/input-phone/input-phone.d.ts +3 -33
  165. package/dist/components/input-phone/input-phone.js +22 -21
  166. package/dist/components/input-phone/input-phone.styles.js +2 -2
  167. package/dist/components/menu-accordion/menu-accordion.js +6 -6
  168. package/dist/components/menu-item/menu-item.js +6 -6
  169. package/dist/components/navbar/navbar-link/navbar-link.js +4 -4
  170. package/dist/components/navbar/navbar-menu/navbar-menu.js +7 -7
  171. package/dist/components/option/option.js +6 -6
  172. package/dist/components/pagination/pagination.js +20 -19
  173. package/dist/components/pagination-button/pagination-button.js +4 -4
  174. package/dist/components/pagination-button/pagination-button.styles.js +2 -2
  175. package/dist/components/profile-button/profile-button.js +9 -9
  176. package/dist/components/progress-bar/progress-bar.js +2 -2
  177. package/dist/components/quote/quote.js +5 -5
  178. package/dist/components/radio/radio.js +6 -6
  179. package/dist/components/radio/radio.styles.js +1 -1
  180. package/dist/components/radio-button/radio-button.d.ts +4 -32
  181. package/dist/components/radio-button/radio-button.js +17 -9
  182. package/dist/components/radio-group/radio-group.js +6 -6
  183. package/dist/components/radio-group/radio-group.styles.js +2 -2
  184. package/dist/components/relative-time/relative-time.js +2 -2
  185. package/dist/components/select/select.d.ts +3 -35
  186. package/dist/components/select/select.js +14 -13
  187. package/dist/components/select/select.styles.js +2 -2
  188. package/dist/components/skip-links/skip-links.js +2 -2
  189. package/dist/components/spinner/spinner.js +2 -2
  190. package/dist/components/split-panel/split-panel.js +6 -6
  191. package/dist/components/step/step.d.ts +1 -0
  192. package/dist/components/step/step.js +7 -7
  193. package/dist/components/tab/tab.d.ts +0 -6
  194. package/dist/components/tab/tab.js +3 -4
  195. package/dist/components/tab/tab.styles.js +1 -1
  196. package/dist/components/tab-group/tab-group.js +2 -2
  197. package/dist/components/table/table-action/table-action.js +2 -2
  198. package/dist/components/table/table-caption/table-caption.js +3 -3
  199. package/dist/components/table/table-header-cell/table-header-cell.js +2 -2
  200. package/dist/components/table/table-header-row/table-header-row.js +3 -3
  201. package/dist/components/table/table-row/table-row.js +2 -2
  202. package/dist/components/table-container/table-container.js +2 -2
  203. package/dist/components/table-of-contents/table-of-contents.js +1 -1
  204. package/dist/components/tag/tag.js +7 -7
  205. package/dist/components/textarea/textarea.d.ts +6 -37
  206. package/dist/components/textarea/textarea.js +7 -6
  207. package/dist/components/textarea/textarea.styles.js +2 -2
  208. package/dist/components/tooltip/tooltip.js +2 -2
  209. package/dist/components/tree/tree.js +14 -14
  210. package/dist/components/tree-item/tree-item.js +13 -13
  211. package/dist/custom-elements.json +259 -2206
  212. package/dist/design-system.js +145 -145
  213. package/dist/internal/components/form-control/form-control-layout.d.ts +41 -0
  214. package/dist/internal/components/form-control/form-control-layout.js +166 -0
  215. package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +86 -0
  216. package/dist/internal/components/form-toggle-button/form-toggle-button-stories.js +62 -0
  217. package/dist/internal/components/form-toggle-button/form-toggle-button.d.ts +32 -0
  218. package/dist/internal/components/form-toggle-button/form-toggle-button.js +129 -0
  219. package/dist/{chunks/chunk.LP7HSAS3.js → internal/components/form-toggle-button/form-toggle-button.styles.js} +30 -24
  220. package/dist/styles/form-control.styles.js +4 -11
  221. package/dist/themes/dsa-wc-theme.css +8 -4
  222. package/dist/themes/dsa-wc-theme.min.css +1 -1
  223. package/dist/themes/dsa-wc-theme.styles.js +8 -4
  224. package/dist/translations/en-gb.js +1 -1
  225. package/dist/translations/en.js +1 -1
  226. package/dist/translations/fr.js +1 -1
  227. package/dist/utilities/icon-library.js +2 -2
  228. package/dist/utilities/localize.d.ts +1 -1
  229. package/dist/utilities/localize.js +1 -1
  230. package/dist/vscode.html-custom-data.json +43 -537
  231. package/dist/web-types.json +212 -1578
  232. package/package.json +1 -1
  233. package/dist/chunks/chunk.EJ4VOCOO.js +0 -150
  234. package/dist/chunks/chunk.M4JDLOFR.js +0 -167
  235. package/dist/chunks/chunk.PCO6EOKB.js +0 -156
  236. package/dist/chunks/chunk.RB6TMBWW.js +0 -127
  237. package/dist/components/checkbox-button/checkbox-button.styles.js +0 -9
  238. package/dist/components/radio-button/radio-button.styles.d.ts +0 -2
  239. package/dist/components/radio-button/radio-button.styles.js +0 -9
  240. /package/dist/{components/checkbox-button/checkbox-button.styles.d.ts → internal/components/form-toggle-button/form-toggle-button.styles.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
+ import {
2
+ radio_group_styles_default
3
+ } from "./chunk.3XIJ443Y.js";
1
4
  import {
2
5
  wrapIndex
3
6
  } from "./chunk.HV63L5BF.js";
4
- import {
5
- radio_group_styles_default
6
- } from "./chunk.PQR2GAOE.js";
7
7
  import {
8
8
  renderFormElementErrors
9
- } from "./chunk.E3B2D5KE.js";
9
+ } from "./chunk.IZBHR7GP.js";
10
10
  import {
11
11
  FormControlController,
12
12
  customErrorValidityState,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.KIFBWPW5.js";
16
16
  import {
17
17
  HasSlotController
18
- } from "./chunk.DA6UU6UL.js";
18
+ } from "./chunk.YIY5RM53.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -2,7 +2,7 @@ import {
2
2
  getIconLibrary,
3
3
  unwatchIcon,
4
4
  watchIcon
5
- } from "./chunk.O2PIWM25.js";
5
+ } from "./chunk.UCR5H4HY.js";
6
6
  import {
7
7
  requestIcon
8
8
  } from "./chunk.23TOS4ZE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.5MBTOZ4X.js";
3
+ } from "./chunk.4ZYXTXB5.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.DX25IW4S.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.5MBTOZ4X.js";
6
+ } from "./chunk.4ZYXTXB5.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.5MBTOZ4X.js";
18
+ } from "./chunk.4ZYXTXB5.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HasSlotController
3
- } from "./chunk.DA6UU6UL.js";
3
+ } from "./chunk.YIY5RM53.js";
4
4
  import {
5
5
  badge_styles_default
6
6
  } from "./chunk.BVRGK5ZO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  checkbox_group_styles_default
3
- } from "./chunk.KVWD6T4L.js";
3
+ } from "./chunk.VOOE2BQV.js";
4
4
  import {
5
5
  renderFormElementErrors
6
- } from "./chunk.E3B2D5KE.js";
6
+ } from "./chunk.IZBHR7GP.js";
7
7
  import {
8
8
  FormControlController,
9
9
  customErrorValidityState,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.KIFBWPW5.js";
13
13
  import {
14
14
  HasSlotController
15
- } from "./chunk.DA6UU6UL.js";
15
+ } from "./chunk.YIY5RM53.js";
16
16
  import {
17
17
  watch
18
18
  } from "./chunk.6IH66JBY.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.PUPPORXG.js";
4
4
  import {
5
5
  DSATableRow
6
- } from "./chunk.POBERW54.js";
6
+ } from "./chunk.ZJSZJA26.js";
7
7
  import {
8
8
  __decorateClass
9
9
  } from "./chunk.6M63UXML.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.IX2S32IE.js";
4
4
  import {
5
5
  FilterBase
6
- } from "./chunk.YGFOBU5R.js";
6
+ } from "./chunk.BLOOH4O7.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.6IH66JBY.js";
@@ -225,7 +225,11 @@ var DSAFilterRange = class extends FilterBase {
225
225
  @click=${this.handleReset}
226
226
  ?disabled=${this.currentStartValue === this.defaultStart && this.currentEndValue === this.defaultEnd}
227
227
  >
228
- <dsa-icon name="restart_alt" slot="prefix"></dsa-icon>
228
+ <dsa-icon
229
+ name="restart_alt"
230
+ slot="prefix"
231
+ library="system"
232
+ ></dsa-icon>
229
233
  ${this.localize.term("filterReset")}
230
234
  </dsa-button>
231
235
 
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk.BJAMGNY4.js";
7
7
  import {
8
8
  HasSlotController
9
- } from "./chunk.DA6UU6UL.js";
9
+ } from "./chunk.YIY5RM53.js";
10
10
  import {
11
11
  LocalizeController
12
- } from "./chunk.5MBTOZ4X.js";
12
+ } from "./chunk.4ZYXTXB5.js";
13
13
  import {
14
14
  watch
15
15
  } from "./chunk.6IH66JBY.js";
@@ -195,7 +195,11 @@ var DSAPagination = class extends LoadingStateElement {
195
195
  class="pagination__navigation__button--mobile previous-button"
196
196
  @click=${this.handlePageButtonClick}
197
197
  >
198
- <dsa-icon name="chevron_left" slot="prefix"></dsa-icon>
198
+ <dsa-icon
199
+ name="chevron_left"
200
+ slot="prefix"
201
+ library="system"
202
+ ></dsa-icon>
199
203
  ${this.localize.term("previousPage")}
200
204
  </dsa-pagination-button>
201
205
  <div class="pagination__navigation__page-input">
@@ -222,7 +226,11 @@ var DSAPagination = class extends LoadingStateElement {
222
226
  @click=${this.handlePageButtonClick}
223
227
  >
224
228
  ${this.localize.term("nextPage")}
225
- <dsa-icon name="chevron_right" slot="suffix"></dsa-icon>
229
+ <dsa-icon
230
+ name="chevron_right"
231
+ slot="suffix"
232
+ library="system"
233
+ ></dsa-icon>
226
234
  </dsa-pagination-button>
227
235
  ` : html`
228
236
  <ul class="button-list">
@@ -235,7 +243,11 @@ var DSAPagination = class extends LoadingStateElement {
235
243
  class="first-button previous-button"
236
244
  @click=${this.handlePageButtonClick}
237
245
  >
238
- <dsa-icon name="chevron_left" slot="prefix"></dsa-icon>
246
+ <dsa-icon
247
+ name="chevron_left"
248
+ slot="prefix"
249
+ library="system"
250
+ ></dsa-icon>
239
251
  ${this.compact ? html`
240
252
  <dsa-visually-hidden
241
253
  >${this.localize.term(
@@ -259,7 +271,11 @@ var DSAPagination = class extends LoadingStateElement {
259
271
  "nextPage"
260
272
  )}</dsa-visually-hidden
261
273
  >` : this.localize.term("nextPage")}
262
- <dsa-icon name="chevron_right" slot="suffix"></dsa-icon>
274
+ <dsa-icon
275
+ name="chevron_right"
276
+ slot="suffix"
277
+ library="system"
278
+ ></dsa-icon>
263
279
  </dsa-pagination-button>
264
280
  </ul>
265
281
  `}
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.R426GAXO.js";
11
11
  import {
12
12
  HasSlotController
13
- } from "./chunk.DA6UU6UL.js";
13
+ } from "./chunk.YIY5RM53.js";
14
14
  import {
15
15
  waitForEvent
16
16
  } from "./chunk.B4BZKR24.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk.V7RJROLH.js";
25
25
  import {
26
26
  LocalizeController
27
- } from "./chunk.5MBTOZ4X.js";
27
+ } from "./chunk.4ZYXTXB5.js";
28
28
  import {
29
29
  watch
30
30
  } from "./chunk.6IH66JBY.js";
@@ -251,6 +251,7 @@ var DSADialog = class extends ShoelaceElement {
251
251
  name="close"
252
252
  label=${this.localize.term("close")}
253
253
  @click="${() => this.requestClose("close-button")}"
254
+ library="system"
254
255
  ></dsa-icon-button>
255
256
  </div>
256
257
  </header>
@@ -1,43 +1,37 @@
1
1
  import {
2
2
  DSASelect
3
- } from "./chunk.46QRHHLQ.js";
4
- import {
5
- maskedValueToRawValue,
6
- rawValueToMaskedValue,
7
- stripSpecialChars
8
- } from "./chunk.7OLEA3GQ.js";
3
+ } from "./chunk.ELSWDQF7.js";
9
4
  import {
10
5
  getPhoneConfig
11
6
  } from "./chunk.65HTBW2L.js";
12
7
  import {
13
8
  input_phone_styles_default
14
- } from "./chunk.5KFYZRQZ.js";
9
+ } from "./chunk.TB3WT3D4.js";
15
10
  import {
16
11
  frenchFlagOption,
17
12
  frenchNumberPrefix,
18
13
  phonePrefixOptions
19
14
  } from "./chunk.ESYJVRG3.js";
15
+ import {
16
+ maskedValueToRawValue,
17
+ rawValueToMaskedValue,
18
+ stripSpecialChars
19
+ } from "./chunk.7OLEA3GQ.js";
20
+ import {
21
+ FormControlLayout
22
+ } from "./chunk.FJI3P5RX.js";
20
23
  import {
21
24
  defaultValue
22
25
  } from "./chunk.CMJ2SRTL.js";
23
- import {
24
- renderFormElementErrors
25
- } from "./chunk.E3B2D5KE.js";
26
26
  import {
27
27
  FormControlController
28
28
  } from "./chunk.KIFBWPW5.js";
29
- import {
30
- HasSlotController
31
- } from "./chunk.DA6UU6UL.js";
32
29
  import {
33
30
  watch
34
31
  } from "./chunk.6IH66JBY.js";
35
32
  import {
36
33
  ifDefinedAndNotEmpty
37
34
  } from "./chunk.ZQJVCRB2.js";
38
- import {
39
- ShoelaceElement
40
- } from "./chunk.YCXTCVAZ.js";
41
35
  import {
42
36
  __decorateClass
43
37
  } from "./chunk.6M63UXML.js";
@@ -49,41 +43,24 @@ import { classMap } from "lit/directives/class-map.js";
49
43
  import { ifDefined } from "lit/directives/if-defined.js";
50
44
  import { live } from "lit/directives/live.js";
51
45
  import { LocalizeController } from "@shoelace-style/localize";
52
- var DSAInputPhone = class extends ShoelaceElement {
46
+ var DSAInputPhone = class extends FormControlLayout {
53
47
  constructor() {
54
48
  super(...arguments);
55
49
  this.formControlController = new FormControlController(this, {
56
50
  assumeInteractionOn: ["dsa-blur", "dsa-input"]
57
51
  });
58
- this.hasSlotController = new HasSlotController(
59
- this,
60
- "help-text",
61
- "label"
62
- );
63
52
  this.localize = new LocalizeController(this);
64
53
  this.hasFocus = false;
65
54
  this.maskedNumber = "";
66
55
  this.phoneConfig = getPhoneConfig("+33");
67
56
  this.placeholder = this.phoneConfig.placeholder;
68
57
  this.pattern = this.phoneConfig.pattern;
69
- this.title = "";
70
- this.name = "";
71
58
  this.value = "";
72
59
  this.phonePrefix = "+33";
73
60
  this.phoneNumber = "";
74
61
  this.defaultValue = "";
75
- this.size = "medium";
76
- this.variant = "base";
77
- this.label = "";
78
- this.helpText = "";
79
62
  this.clearable = false;
80
- this.disabled = false;
81
63
  this.inputPrefix = "";
82
- this.readonly = false;
83
- this.error = false;
84
- this.errorMessage = "";
85
- this.form = "";
86
- this.required = false;
87
64
  this.placement = "bottom-start";
88
65
  }
89
66
  /** Gets the validity state object */
@@ -134,6 +111,7 @@ var DSAInputPhone = class extends ShoelaceElement {
134
111
  this.phoneNumber = newValue;
135
112
  this.maskedNumber = maskedValue;
136
113
  this.inputEl.value = maskedValue;
114
+ this.updateValue();
137
115
  this.formControlController.updateValidity();
138
116
  this.emit("dsa-input");
139
117
  }
@@ -300,75 +278,48 @@ var DSAInputPhone = class extends ShoelaceElement {
300
278
  this.inputEl.setCustomValidity(message);
301
279
  this.formControlController.updateValidity();
302
280
  }
303
- render() {
281
+ renderInput() {
304
282
  var _a;
305
283
  const hasLabelSlot = this.hasSlotController.test("label");
306
- const hasHelpTextSlot = this.hasSlotController.test("help-text");
307
284
  const hasLabel = this.label ? true : !!hasLabelSlot;
308
- const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
309
285
  const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.phoneNumber === "number" || ((_a = this.phoneNumber) == null ? void 0 : _a.length) > 0);
310
286
  const placeholder = this.placeholder.substring(
311
287
  this.maskedNumber.length || 0
312
288
  );
313
289
  return html`
314
- <div
315
- part="form-control"
316
- class=${classMap({
317
- "form-control": true,
318
- "form-control--error": this.error,
319
- "form-control--readonly": this.readonly,
320
- "form-control--disabled": this.disabled,
321
- "form-control--small": this.size === "small",
322
- "form-control--medium": this.size === "medium",
323
- "form-control--large": this.size === "large",
324
- "form-control--has-label": hasLabel,
325
- "form-control--has-help-text": hasHelpText
326
- })}
327
- >
328
- <label
329
- part="form-control-label"
330
- class='form-control__label'
331
- for="input-phone"
332
- aria-hidden=${hasLabel ? "false" : "true"}
333
- >
334
- ${this.required ? html`<span class="form-control__label-required">*</span>` : ""}
335
- <slot name="label">${this.label}</slot>
336
- </label>
337
- <slot name="tooltip" class="form-control__tooltip"></slot>
338
-
339
- <div part="base" class="input-phone__input form-control__field" >
340
-
341
- <dsa-select
342
- id="prefix"
343
- part="select"
344
- class=${classMap({
290
+ <div part="base" class="input-phone__input form-control__field">
291
+ <dsa-select
292
+ id="prefix"
293
+ part="select"
294
+ class=${classMap({
345
295
  "input-phone__select": true,
346
296
  "input-phone__select-error": this.error
347
297
  })}
348
- .variant=${live(this.variant)}
349
- .value=${this.phonePrefix}
350
- ?disabled=${this.disabled || this.readonly}
351
- title=${this.localize.term("countryCallingCode")}
352
- .placement=${this.placement}
353
- hoist
354
- .size=${this.size}
355
- @dsa-change=${this.handlePhonePrefixChange}
356
- enterkeyhint="enter"
357
- display-value
358
- no-sync-width
359
- >
360
- ${phonePrefixOptions.map((option, index) => {
298
+ .variant=${live(this.variant)}
299
+ .value=${this.phonePrefix}
300
+ ?disabled=${this.disabled}
301
+ ?readonly=${this.readonly}
302
+ title=${this.localize.term("countryCallingCode")}
303
+ .placement=${this.placement}
304
+ hoist
305
+ .size=${this.size}
306
+ @dsa-change=${this.handlePhonePrefixChange}
307
+ enterkeyhint="enter"
308
+ display-value
309
+ no-sync-width
310
+ >
311
+ ${phonePrefixOptions.map((option, index) => {
361
312
  return html`
362
- <dsa-option value=${option.value} .size=${this.size}>
363
- ${frenchFlagOption(`option_${index}`)}
364
- ${this.localize.term(option.label)} (${option.value})
365
- </dsa-option>
366
- `;
313
+ <dsa-option value=${option.value} .size=${this.size}>
314
+ ${frenchFlagOption(`option_${index}`)}
315
+ ${this.localize.term(option.label)} (${option.value})
316
+ </dsa-option>
317
+ `;
367
318
  })}
368
- </dsa-select>
319
+ </dsa-select>
369
320
 
370
- <div
371
- class=${classMap({
321
+ <div
322
+ class=${classMap({
372
323
  "input-phone": true,
373
324
  // States
374
325
  "input-phone--error": this.error,
@@ -379,83 +330,71 @@ var DSAInputPhone = class extends ShoelaceElement {
379
330
  "input-phone--focused": this.hasFocus,
380
331
  "input-phone--empty": this.phoneNumber === ""
381
332
  })}
382
- >
383
- <span>${this.inputPrefix}</span>
333
+ >
334
+ <span>${this.inputPrefix}</span>
384
335
 
385
- <div class="input-phone__mask">
386
- <div
387
- class=${classMap({
336
+ <div class="input-phone__mask">
337
+ <div
338
+ class=${classMap({
388
339
  "input-phone__placeholder": true
389
- })}
390
- aria-placeholder=${placeholder} aria-hidden="true"
391
- >
392
- <span class="input-phone__value" aria-hidden="true">
393
- ${this.maskedNumber}</span>
394
- ${placeholder}
395
- </div>
396
-
340
+ })}
341
+ aria-placeholder=${placeholder}
342
+ aria-hidden="true"
343
+ >
344
+ <span class="input-phone__value" aria-hidden="true">
345
+ ${this.maskedNumber}</span
346
+ >
347
+ ${placeholder}
348
+ </div>
397
349
 
398
- <input
399
- part="input"
400
- id="input-phone"
401
- class=${classMap({
350
+ <input
351
+ part="input"
352
+ id="input"
353
+ class=${classMap({
402
354
  "input-phone__control": true
403
355
  })}
404
- type="text"
405
- title=${ifDefinedAndNotEmpty(this.title)}
406
- name=${ifDefinedAndNotEmpty(this.name)}
407
- ?disabled=${this.disabled}
408
- ?readonly=${this.readonly}
409
- ?required=${this.required}
410
- minlength=${ifDefined(this.placeholder.length)}
411
- maxlength=${ifDefined(this.placeholder.length)}
412
- size=${ifDefined(this.placeholder.length)}
413
- placeholder=${ifDefined(this.placeholder)}
414
- .value=${live(this.maskedNumber)}
415
- autocomplete='tel-national'
416
- ?autofocus=${this.autofocus}
417
- enterkeyhint=${ifDefined(this.enterkeyhint)}
418
- inputmode='tel'
419
- aria-label=${ifDefinedAndNotEmpty(
356
+ type="text"
357
+ title=${ifDefinedAndNotEmpty(this.title)}
358
+ name=${ifDefinedAndNotEmpty(this.name)}
359
+ ?disabled=${this.disabled}
360
+ ?readonly=${this.readonly}
361
+ ?required=${this.required}
362
+ minlength=${ifDefined(this.placeholder.length)}
363
+ maxlength=${ifDefined(this.placeholder.length)}
364
+ size=${ifDefined(this.placeholder.length)}
365
+ placeholder=${ifDefined(this.placeholder)}
366
+ .value=${live(this.maskedNumber)}
367
+ autocomplete="tel-national"
368
+ ?autofocus=${this.autofocus}
369
+ enterkeyhint=${ifDefined(this.enterkeyhint)}
370
+ inputmode="tel"
371
+ aria-label=${ifDefinedAndNotEmpty(
420
372
  hasLabel ? void 0 : this.title
421
373
  )}
422
- aria-describedby=${this.error ? "input-phone error-text help-text" : "input-phone help-text"}
423
- aria-invalid=${ifDefined(this.error ? "true" : void 0)}
424
- @change=${this.handleChange}
425
- @keyup=${this.handleDocumentKeyUp}
426
- @keydown=${this.handleKeyDown}
427
- @focus=${this.handleFocus}
428
- @blur=${this.handleBlur}
429
- @invalid=${this.handleInvalid}
430
- />
431
-
432
- </div>
433
- ${hasClearIcon ? html`
374
+ aria-describedby=${this.error ? "input-phone error-text help-text" : "input-phone help-text"}
375
+ aria-invalid=${ifDefined(this.error ? "true" : void 0)}
376
+ @change=${this.handleChange}
377
+ @keyup=${this.handleDocumentKeyUp}
378
+ @keydown=${this.handleKeyDown}
379
+ @focus=${this.handleFocus}
380
+ @blur=${this.handleBlur}
381
+ @invalid=${this.handleInvalid}
382
+ />
383
+ </div>
384
+ ${hasClearIcon ? html`
434
385
  <dsa-icon-button
435
386
  part="clear-button"
436
387
  class="input-phone__clear"
437
388
  label=${this.localize.term("clearEntry")}
438
389
  @click=${this.handleClearIconClick}
439
390
  name="close"
391
+ library="system"
440
392
  >
441
393
  </dsa-icon-button>
442
394
  ` : ""}
395
+ </div>
443
396
  </div>
444
- </div>
445
-
446
- <slot
447
- name="help-text"
448
- part="form-control-help-text"
449
- id="help-text"
450
- class="form-control__help-text"
451
- aria-hidden=${hasHelpText ? "false" : "true"}
452
- >
453
- ${this.helpText}
454
- </slot>
455
-
456
- ${this.error && !this.disabled && this.errorMessage !== "" ? renderFormElementErrors(this.errorMessage) : ""}
457
- </div>
458
- </div>`;
397
+ `;
459
398
  }
460
399
  };
461
400
  DSAInputPhone.styles = input_phone_styles_default;
@@ -480,12 +419,6 @@ __decorateClass([
480
419
  __decorateClass([
481
420
  state()
482
421
  ], DSAInputPhone.prototype, "pattern", 2);
483
- __decorateClass([
484
- property()
485
- ], DSAInputPhone.prototype, "title", 2);
486
- __decorateClass([
487
- property()
488
- ], DSAInputPhone.prototype, "name", 2);
489
422
  __decorateClass([
490
423
  property()
491
424
  ], DSAInputPhone.prototype, "value", 2);
@@ -498,54 +431,12 @@ __decorateClass([
498
431
  __decorateClass([
499
432
  defaultValue()
500
433
  ], DSAInputPhone.prototype, "defaultValue", 2);
501
- __decorateClass([
502
- property({ reflect: true })
503
- ], DSAInputPhone.prototype, "size", 2);
504
- __decorateClass([
505
- property({ reflect: true })
506
- ], DSAInputPhone.prototype, "variant", 2);
507
- __decorateClass([
508
- property()
509
- ], DSAInputPhone.prototype, "label", 2);
510
- __decorateClass([
511
- property({ attribute: "help-text" })
512
- ], DSAInputPhone.prototype, "helpText", 2);
513
434
  __decorateClass([
514
435
  property({ type: Boolean })
515
436
  ], DSAInputPhone.prototype, "clearable", 2);
516
- __decorateClass([
517
- property({ type: Boolean, reflect: true })
518
- ], DSAInputPhone.prototype, "disabled", 2);
519
437
  __decorateClass([
520
438
  property({ attribute: "input-prefix" })
521
439
  ], DSAInputPhone.prototype, "inputPrefix", 2);
522
- __decorateClass([
523
- property({ type: Boolean, reflect: true })
524
- ], DSAInputPhone.prototype, "readonly", 2);
525
- __decorateClass([
526
- property({ type: Boolean })
527
- ], DSAInputPhone.prototype, "error", 2);
528
- __decorateClass([
529
- property({
530
- attribute: "error-message",
531
- converter: {
532
- fromAttribute: (value) => value ? value.split("|") : "",
533
- toAttribute: (value) => {
534
- if (typeof value === "string") {
535
- return value;
536
- } else {
537
- return value.join("|");
538
- }
539
- }
540
- }
541
- })
542
- ], DSAInputPhone.prototype, "errorMessage", 2);
543
- __decorateClass([
544
- property({ reflect: true })
545
- ], DSAInputPhone.prototype, "form", 2);
546
- __decorateClass([
547
- property({ type: Boolean, reflect: true })
548
- ], DSAInputPhone.prototype, "required", 2);
549
440
  __decorateClass([
550
441
  property({ type: Boolean })
551
442
  ], DSAInputPhone.prototype, "autofocus", 2);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderFormElementErrors
3
- } from "./chunk.E3B2D5KE.js";
3
+ } from "./chunk.IZBHR7GP.js";
4
4
  import {
5
5
  waitForEvent
6
6
  } from "./chunk.B4BZKR24.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.5MBTOZ4X.js";
18
+ } from "./chunk.4ZYXTXB5.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk.V7RJROLH.js";
15
15
  import {
16
16
  LocalizeController
17
- } from "./chunk.5MBTOZ4X.js";
17
+ } from "./chunk.4ZYXTXB5.js";
18
18
  import {
19
19
  watch
20
20
  } from "./chunk.6IH66JBY.js";