@ds-autonomie/web-components 1.0.1 → 1.2.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 (164) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/chunks/{chunk.HH63FIEF.js → chunk.2DGAEK66.js} +12 -3
  3. package/dist/chunks/{chunk.O73OYTYJ.js → chunk.2HV2U4RQ.js} +2 -4
  4. package/dist/chunks/{chunk.EHVJT7BH.js → chunk.2R6P5TGQ.js} +1 -1
  5. package/dist/chunks/chunk.2WSMYCPC.js +24 -0
  6. package/dist/chunks/{chunk.LT7JMZ3T.js → chunk.3HI3T5R2.js} +2 -2
  7. package/dist/chunks/chunk.3I2KXA35.js +126 -0
  8. package/dist/chunks/{chunk.7NWAYDYI.js → chunk.4DWONP4W.js} +3 -3
  9. package/dist/chunks/{chunk.BLPP3Q5H.js → chunk.5324JGM4.js} +11 -4
  10. package/dist/chunks/{chunk.BEB47LM2.js → chunk.5BTJP6HC.js} +2 -2
  11. package/dist/chunks/{chunk.D7CATJYB.js → chunk.6IH66JBY.js} +1 -1
  12. package/dist/chunks/chunk.7HGZSZJK.js +409 -0
  13. package/dist/chunks/{chunk.QKNNLZ2M.js → chunk.AFAQWHMU.js} +3 -3
  14. package/dist/chunks/{chunk.ODSCDJDO.js → chunk.ARVWTY56.js} +5 -4
  15. package/dist/chunks/{chunk.KOH5V4C6.js → chunk.B4O7IAPL.js} +21 -17
  16. package/dist/chunks/chunk.CCTWXABH.js +13 -0
  17. package/dist/chunks/chunk.CMJ2SRTL.js +26 -0
  18. package/dist/chunks/{chunk.DURVPB6M.js → chunk.D6DEGG4H.js} +25 -6
  19. package/dist/chunks/{chunk.UV53JTE3.js → chunk.DOMRNQHQ.js} +1 -1
  20. package/dist/chunks/{chunk.NDEZEB3Z.js → chunk.EDRQ2QWB.js} +10 -5
  21. package/dist/chunks/{chunk.XSCX6TC5.js → chunk.EXIGM5NV.js} +4 -1
  22. package/dist/chunks/{chunk.4A3WMGMZ.js → chunk.FHDPJN6L.js} +1 -1
  23. package/dist/chunks/{chunk.YS7MY5CH.js → chunk.FHGXKQDW.js} +18 -24
  24. package/dist/chunks/{chunk.KDAK2GXX.js → chunk.FKIKQX6B.js} +1 -1
  25. package/dist/chunks/{chunk.ABGBXXKA.js → chunk.FTWZNCEH.js} +1 -1
  26. package/dist/chunks/{chunk.6FAUBLR3.js → chunk.G3ESG6Q5.js} +1 -1
  27. package/dist/chunks/{chunk.WHK7EFIM.js → chunk.GP5Z27QB.js} +7 -4
  28. package/dist/chunks/{chunk.2HUORR44.js → chunk.GRV3MK3D.js} +1 -1
  29. package/dist/chunks/{chunk.JETXIC4F.js → chunk.HPK6C7NJ.js} +1 -1
  30. package/dist/chunks/{chunk.UZLQVFDR.js → chunk.IJL7YMFL.js} +2 -2
  31. package/dist/chunks/{chunk.GYTA2LJC.js → chunk.J6XP4AFN.js} +1 -1
  32. package/dist/chunks/{chunk.PWWER3ZK.js → chunk.JJ3GF7YP.js} +48 -24
  33. package/dist/chunks/{chunk.OVK7QCA7.js → chunk.JLMY5OVR.js} +13 -9
  34. package/dist/chunks/{chunk.N6VVY6XD.js → chunk.K6YLMID4.js} +6 -3
  35. package/dist/chunks/{chunk.5XUV3SRW.js → chunk.KOZIER6A.js} +11 -6
  36. package/dist/chunks/{chunk.A2PAK6VF.js → chunk.LUHEO6AS.js} +2 -2
  37. package/dist/chunks/{chunk.7ZCCXTFG.js → chunk.MDFIMRCC.js} +2 -2
  38. package/dist/chunks/{chunk.WNHQYL5W.js → chunk.MTZZV3NB.js} +4 -20
  39. package/dist/chunks/{chunk.5XL2LZLC.js → chunk.NBPVVWJU.js} +14 -0
  40. package/dist/chunks/{chunk.HC5BO5YV.js → chunk.NHYFVEGM.js} +5 -16
  41. package/dist/chunks/{chunk.MOWTZFON.js → chunk.NKVYNBAI.js} +1 -1
  42. package/dist/chunks/{chunk.IRQOFNJE.js → chunk.NQU3YD5L.js} +8 -3
  43. package/dist/chunks/{chunk.WIEJJS3W.js → chunk.OGQBKAFT.js} +1 -1
  44. package/dist/chunks/{chunk.WSVP75MH.js → chunk.ORSUTGLR.js} +1 -1
  45. package/dist/chunks/chunk.OXSDZ5LQ.js +865 -0
  46. package/dist/chunks/{chunk.MY434P47.js → chunk.P2AJBSND.js} +2 -2
  47. package/dist/chunks/chunk.QSNJ4FV6.js +54 -0
  48. package/dist/chunks/{chunk.4XT2OJD2.js → chunk.RDVFMQLV.js} +8 -4
  49. package/dist/chunks/{chunk.INCGVIAQ.js → chunk.TINRLVWL.js} +1 -1
  50. package/dist/chunks/{chunk.5LT3B7MI.js → chunk.UQYPPFBJ.js} +1 -1
  51. package/dist/chunks/{chunk.42W4S2HN.js → chunk.VM355VAS.js} +1 -1
  52. package/dist/chunks/{chunk.G7AELPSO.js → chunk.VRU3XH45.js} +4 -4
  53. package/dist/chunks/{chunk.UA32LJYW.js → chunk.WG5VRMQG.js} +2 -2
  54. package/dist/chunks/{chunk.AR5HJD7F.js → chunk.X6RQ2SQC.js} +1 -1
  55. package/dist/chunks/{chunk.HLYGKGDG.js → chunk.XJPCULMC.js} +8 -5
  56. package/dist/chunks/chunk.YRBTSDUN.js +134 -0
  57. package/dist/chunks/chunk.ZQJVCRB2.js +10 -0
  58. package/dist/chunks/{chunk.RIJQGADY.js → chunk.ZW4JE66G.js} +11 -4
  59. package/dist/chunks/{chunk.K6WCEYZI.js → chunk.ZXVIEHXI.js} +1 -1
  60. package/dist/components/accordion/accordion.js +7 -7
  61. package/dist/components/alert/alert.js +9 -8
  62. package/dist/components/animation/animation.js +2 -2
  63. package/dist/components/avatar/avatar.d.ts +1 -1
  64. package/dist/components/avatar/avatar.js +7 -6
  65. package/dist/components/avatar-group/avatar-group.d.ts +1 -1
  66. package/dist/components/badge/badge.d.ts +1 -1
  67. package/dist/components/breadcrumb/breadcrumb.js +7 -7
  68. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  69. package/dist/components/button/button.js +9 -8
  70. package/dist/components/checkbox/checkbox.js +8 -7
  71. package/dist/components/checkbox-button/checkbox-button.js +6 -6
  72. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -0
  73. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  74. package/dist/components/combobox/combobox.d.ts +175 -0
  75. package/dist/components/combobox/combobox.js +37 -0
  76. package/dist/components/combobox/combobox.styles.d.ts +2 -0
  77. package/dist/components/combobox/combobox.styles.js +9 -0
  78. package/dist/components/dialog/dialog.js +9 -8
  79. package/dist/components/divider/divider.d.ts +1 -1
  80. package/dist/components/drawer/drawer.js +10 -9
  81. package/dist/components/dropdown/dropdown.js +3 -3
  82. package/dist/components/format-bytes/format-bytes.js +2 -2
  83. package/dist/components/format-date/format-date.js +2 -2
  84. package/dist/components/format-number/format-number.js +2 -2
  85. package/dist/components/icon/icon.js +5 -5
  86. package/dist/components/icon-button/icon-button.d.ts +1 -1
  87. package/dist/components/icon-button/icon-button.js +7 -6
  88. package/dist/components/include/include.js +2 -2
  89. package/dist/components/input/input.d.ts +1 -1
  90. package/dist/components/input/input.js +10 -9
  91. package/dist/components/input/input.styles.js +1 -1
  92. package/dist/components/input-mask/input-mask.d.ts +1 -0
  93. package/dist/components/input-mask/input-mask.js +6 -5
  94. package/dist/components/input-mask/input-mask.styles.js +1 -1
  95. package/dist/components/input-phone/input-phone.d.ts +1 -1
  96. package/dist/components/input-phone/input-phone.js +24 -23
  97. package/dist/components/input-phone/input-phone.styles.js +1 -1
  98. package/dist/components/menu/menu.d.ts +1 -1
  99. package/dist/components/menu-item/menu-item.d.ts +1 -1
  100. package/dist/components/menu-item/menu-item.js +6 -6
  101. package/dist/components/menu-label/menu-label.d.ts +1 -1
  102. package/dist/components/mutation-observer/mutation-observer.js +2 -2
  103. package/dist/components/option/option.js +8 -8
  104. package/dist/components/option/option.styles.js +1 -1
  105. package/dist/components/progress-bar/progress-bar.d.ts +1 -1
  106. package/dist/components/progress-bar/progress-bar.js +3 -2
  107. package/dist/components/progress-ring/progress-ring.d.ts +1 -2
  108. package/dist/components/progress-ring/progress-ring.js +2 -2
  109. package/dist/components/radio/radio.js +6 -6
  110. package/dist/components/radio-button/radio-button.js +2 -2
  111. package/dist/components/radio-group/radio-group.js +2 -2
  112. package/dist/components/relative-time/relative-time.js +2 -2
  113. package/dist/components/resize-observer/resize-observer.js +2 -2
  114. package/dist/components/select/select.d.ts +4 -0
  115. package/dist/components/select/select.js +13 -12
  116. package/dist/components/select/select.styles.js +1 -1
  117. package/dist/components/skeleton/skeleton.d.ts +1 -1
  118. package/dist/components/spinner/spinner.js +2 -2
  119. package/dist/components/step/step.d.ts +39 -0
  120. package/dist/components/step/step.js +24 -0
  121. package/dist/components/step/step.styles.d.ts +2 -0
  122. package/dist/components/step/step.styles.js +8 -0
  123. package/dist/components/step/step.utils.d.ts +3 -0
  124. package/dist/components/step/step.utils.js +7 -0
  125. package/dist/components/stepper/stepper.d.ts +23 -0
  126. package/dist/components/stepper/stepper.js +10 -0
  127. package/dist/components/stepper/stepper.styles.d.ts +2 -0
  128. package/dist/components/stepper/stepper.styles.js +8 -0
  129. package/dist/components/tab/tab.d.ts +1 -1
  130. package/dist/components/tab/tab.js +3 -3
  131. package/dist/components/tab-group/tab-group.d.ts +1 -1
  132. package/dist/components/tab-group/tab-group.js +3 -3
  133. package/dist/components/tab-panel/tab-panel.d.ts +1 -1
  134. package/dist/components/tab-panel/tab-panel.js +2 -2
  135. package/dist/components/tag/tag.js +9 -8
  136. package/dist/components/textarea/textarea.d.ts +1 -0
  137. package/dist/components/textarea/textarea.js +4 -3
  138. package/dist/components/tooltip/tooltip.js +3 -3
  139. package/dist/components/tree/tree.d.ts +2 -1
  140. package/dist/components/tree/tree.js +12 -11
  141. package/dist/components/tree-item/tree-item.d.ts +1 -1
  142. package/dist/components/tree-item/tree-item.js +11 -10
  143. package/dist/custom-elements.json +1325 -41
  144. package/dist/design-system.d.ts +3 -0
  145. package/dist/design-system.js +112 -95
  146. package/dist/internal/debounce.d.ts +1 -1
  147. package/dist/internal/debounce.js +3 -3
  148. package/dist/internal/default-value.d.ts +1 -1
  149. package/dist/internal/default-value.js +24 -21
  150. package/dist/internal/watch.js +1 -1
  151. package/dist/themes/dsa-wc-theme.css +79 -6
  152. package/dist/themes/dsa-wc-theme.min.css +1 -1
  153. package/dist/themes/dsa-wc-theme.styles.js +85 -6
  154. package/dist/translations/en-gb.js +1 -1
  155. package/dist/translations/en.js +1 -1
  156. package/dist/translations/fr.js +1 -1
  157. package/dist/utilities/directives.d.ts +1 -0
  158. package/dist/utilities/directives.js +7 -0
  159. package/dist/utilities/localize.d.ts +7 -0
  160. package/dist/utilities/localize.js +1 -1
  161. package/dist/vscode.html-custom-data.json +169 -6
  162. package/dist/web-types.json +737 -9
  163. package/package.json +2 -2
  164. package/dist/chunks/chunk.GI7VDIWX.js +0 -24
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @ds-autonomie/web-components
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b63aa59: `stepper`, `step`: implémentation des composants stepper et step
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b63aa59]
12
+ - @ds-autonomie/assets@1.1.1
13
+
14
+ ## 1.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 8ee2a50: `combobox`: implementation du composant combobox avec selection simple
19
+ - 8ee2a50: `combobox`: ajout de la selection multiple pour le composant combobox
20
+ - 8ee2a50: `combobox`: ajout du support clavier pour le composant combobox
21
+ - 1454ca4: `tag`: ajustement accessibilité
22
+ - 8e1f790: `option`: Mise à jour graphique du composant option
23
+
24
+ ### Patch Changes
25
+
26
+ - e8223e1: `icon-button`: documentation
27
+ - d0e871e: `checkbox-group`,`textarea`,`input`,`input-mask`,`input-phone`,`select`: documentation du slot tooltip
28
+ - 46e7f52: `tests`: ajout d'un alias pour les fichiers statique dans les tests
29
+ - 98c11b1: `spinner`: documentation
30
+ - 9f8f02c: `input`: le type date utilise maintenant l'icône natif
31
+ - 060a3a5: `input-phone`: mise en conformité d'accessibilité
32
+ - a5079b4: `divider`: documentation
33
+ - e0b265a: `input-mask`: retour d'accessibilité
34
+ - ff81d71: `avatar`: retour d'accessibilité pour le composant avatar
35
+ - 6c2b585: `tokens`: ajustement des tokens interne pour l'état read-only
36
+ - f7926ce: `avatar`,`avatar-group`: documentation
37
+ - 0ec1b1b: `button`, `input`, `checkbox`, `progress-bar`, `textarea`: correction des attributs laissés à vide
38
+ - 9d06b7f: `input`: les icônes héritent la taille
39
+ - 88c6359: `skeleton`: documentation
40
+ - 99239a0: `progress-ring`: documentation
41
+ - 6c2b585: `select`: implémentation de l'état read-only
42
+ - ce2e57f: `card`: ajustement du header dans la story du composant card
43
+ - 9d9d8e6: `progress-ring`,`progress-bar`: mise en conformité d'accessibilité
44
+ - 5c676ec: `select`: retour d'accessibilité
45
+ - 061867c: `progress-bar`: documentation
46
+ - ff6b2e1: `radio-group`: mise en conformité d'accessibilité
47
+ - a5c8c68: `tab`,`tab-group`,`tab-panel`: documentation
48
+ - f1d87fd: `tree`,`tree-item`: documentation
49
+ - 9e87e96: `menu`,`menu-label`,`menu-item`: documentation
50
+ - 5cbf567: `badge`: documentation
51
+
3
52
  ## 1.0.1
4
53
 
5
54
  ### Patch Changes
@@ -55,7 +55,7 @@ var option_styles_default = css`
55
55
  font-size: var(--dsa-wc-option-large-icon-size);
56
56
  }
57
57
 
58
- .option--hover:not(.option--current):not(.option--disabled) {
58
+ .option--hover:not(.option--selected):not(.option--disabled) {
59
59
  background-color: var(--dsa-wc-option-hover-color);
60
60
  }
61
61
 
@@ -64,8 +64,12 @@ var option_styles_default = css`
64
64
  }
65
65
  .option--current,
66
66
  .option--current.option--disabled {
67
- background-color: var(--dsa-wc-option-active-background-color);
68
- color: var(--dsa-wc-option-active-color);
67
+ background-color: var(--dsa-wc-option-hover-color);
68
+ }
69
+
70
+ .option--selected.option--current,
71
+ .option--selected.option--hover {
72
+ background-color: var(--dsa-wc-option-active-hover-background-color);
69
73
  opacity: 1;
70
74
  }
71
75
 
@@ -93,6 +97,11 @@ var option_styles_default = css`
93
97
  visibility: visible;
94
98
  }
95
99
 
100
+ .option--selected {
101
+ background-color: var(--dsa-wc-option-active-background-color);
102
+ color: var(--dsa-wc-option-active-color);
103
+ }
104
+
96
105
  .option__prefix,
97
106
  .option__suffix {
98
107
  flex: 0 0 auto;
@@ -121,8 +121,8 @@ var input_mask_styles_default = css`
121
121
  cursor: not-allowed;
122
122
  }
123
123
  .input-mask--on-base.input-mask--readonly {
124
- background-color: var(--dsa-wc-input-on-base-locked-background-color);
125
- border-color: var(--dsa-wc-input-on-base-locked-border-color);
124
+ background-color: var(--dsa-wc-input-on-base-read-only-background-color);
125
+ border-color: var(--dsa-wc-input-on-base-read-only-border-color);
126
126
  }
127
127
 
128
128
  .input-mask--on-base .input-mask__placeholder {
@@ -266,7 +266,6 @@ var input_mask_styles_default = css`
266
266
  display: inline-flex;
267
267
  align-items: center;
268
268
  justify-content: center;
269
- font-size: 1.25rem;
270
269
  color: var(--dsa-color-input-icon-on-base-enabled);
271
270
  border: none;
272
271
  background: none;
@@ -291,7 +290,6 @@ var input_mask_styles_default = css`
291
290
  .input-mask__prefix {
292
291
  color: var(--dsa-wc-input-icon-color);
293
292
  cursor: pointer;
294
- font-size: 1.25rem;
295
293
  }
296
294
 
297
295
  .input-mask--empty .input-mask__clear {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.TJOP7HQP.js";
4
4
  import {
5
5
  watch
6
- } from "./chunk.D7CATJYB.js";
6
+ } from "./chunk.6IH66JBY.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -0,0 +1,24 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/stepper/stepper.styles.ts
6
+ import { css } from "lit";
7
+ var stepper_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ .stepper {
11
+ display: grid;
12
+ grid-auto-flow: column;
13
+ grid-auto-columns: 1fr;
14
+ list-style-type: none;
15
+ }
16
+
17
+ .slot_steps {
18
+ display: none;
19
+ }
20
+ `;
21
+
22
+ export {
23
+ stepper_styles_default
24
+ };
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk.V7RJROLH.js";
15
15
  import {
16
16
  LocalizeController
17
- } from "./chunk.5XL2LZLC.js";
17
+ } from "./chunk.NBPVVWJU.js";
18
18
  import {
19
19
  watch
20
- } from "./chunk.D7CATJYB.js";
20
+ } from "./chunk.6IH66JBY.js";
21
21
  import {
22
22
  ShoelaceElement
23
23
  } from "./chunk.YCXTCVAZ.js";
@@ -0,0 +1,126 @@
1
+ import {
2
+ step_styles_default
3
+ } from "./chunk.YRBTSDUN.js";
4
+ import {
5
+ getStepIcon
6
+ } from "./chunk.CCTWXABH.js";
7
+ import {
8
+ HasSlotController
9
+ } from "./chunk.YIY5RM53.js";
10
+ import {
11
+ LocalizeController
12
+ } from "./chunk.NBPVVWJU.js";
13
+ import {
14
+ ShoelaceElement
15
+ } from "./chunk.YCXTCVAZ.js";
16
+ import {
17
+ __decorateClass
18
+ } from "./chunk.6M63UXML.js";
19
+
20
+ // src/components/step/step.ts
21
+ import { html } from "lit";
22
+ import { customElement, property } from "lit/decorators.js";
23
+ import { classMap } from "lit/directives/class-map.js";
24
+ var DSAStep = class extends ShoelaceElement {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.hasSlotController = new HasSlotController(
28
+ this,
29
+ "title",
30
+ "content"
31
+ );
32
+ this.localize = new LocalizeController(this);
33
+ this.status = "default";
34
+ this.title = "";
35
+ this.content = "";
36
+ }
37
+ getStepLabel() {
38
+ switch (this.status) {
39
+ case "default":
40
+ return this.localize.term("step");
41
+ case "complete":
42
+ return this.localize.term("stepCompleted");
43
+ case "in-progress":
44
+ return this.localize.term("stepInProgress");
45
+ case "active":
46
+ return this.localize.term("stepActive");
47
+ case "error":
48
+ return this.localize.term("stepError");
49
+ }
50
+ return this.localize.term("step");
51
+ }
52
+ render() {
53
+ const hasTitleSlot = this.hasSlotController.test("title");
54
+ const hasContentSlot = this.hasSlotController.test("content");
55
+ const hasTitle = this.title ? true : !!hasTitleSlot;
56
+ const hasContent = this.content ? true : !!hasContentSlot;
57
+ const stepIconName = this.status !== "in-progress" && this.status !== "active" ? getStepIcon(this.status) : void 0;
58
+ const stepLabel = this.getStepLabel();
59
+ return html`
60
+ <div
61
+ role="listitem"
62
+ part="step"
63
+ class=${classMap({
64
+ "step-container": true,
65
+ "step-container--has-title": hasTitle,
66
+ "step-container--has-content": hasContent
67
+ })}
68
+ >
69
+ <div
70
+ class=${classMap({
71
+ step: true,
72
+ "step--default": this.status === "default",
73
+ "step--complete": this.status === "complete",
74
+ "step--in-progress": this.status === "in-progress" || this.status === "active",
75
+ "step--error": this.status === "error"
76
+ })}
77
+ >
78
+ ${this.status === "in-progress" || this.status === "active" ? html`<span class="step-icon--in-progress"
79
+ ><dsa-visually-hidden>${stepLabel}</dsa-visually-hidden></span
80
+ >` : html`<dsa-icon
81
+ class="step-icon"
82
+ name="${stepIconName}"
83
+ label=${stepLabel}
84
+ ></dsa-icon>`}
85
+ </div>
86
+
87
+ ${this.index !== void 0 ? html`
88
+ <p class="step-index">
89
+ ${this.localize.term("step")} ${this.index + 1}
90
+ </p>
91
+ ` : html``}
92
+
93
+ <div class="step-title-container">
94
+ <slot
95
+ name="title"
96
+ class="step-title"
97
+ aria-hidden=${hasTitle ? "false" : "true"}
98
+ >${this.title}</slot
99
+ >
100
+ <slot name="tooltip" class="step-tooltip"></slot>
101
+ </div>
102
+ <slot name="content" class="step-content">${this.content}</slot>
103
+ </div>
104
+ `;
105
+ }
106
+ };
107
+ DSAStep.styles = step_styles_default;
108
+ __decorateClass([
109
+ property()
110
+ ], DSAStep.prototype, "status", 2);
111
+ __decorateClass([
112
+ property()
113
+ ], DSAStep.prototype, "title", 2);
114
+ __decorateClass([
115
+ property()
116
+ ], DSAStep.prototype, "content", 2);
117
+ __decorateClass([
118
+ property()
119
+ ], DSAStep.prototype, "index", 2);
120
+ DSAStep = __decorateClass([
121
+ customElement("dsa-step")
122
+ ], DSAStep);
123
+
124
+ export {
125
+ DSAStep
126
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  option_styles_default
3
- } from "./chunk.HH63FIEF.js";
3
+ } from "./chunk.2DGAEK66.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.5XL2LZLC.js";
6
+ } from "./chunk.NBPVVWJU.js";
7
7
  import {
8
8
  watch
9
- } from "./chunk.D7CATJYB.js";
9
+ } from "./chunk.6IH66JBY.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.YCXTCVAZ.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.YIY5RM53.js";
13
13
  import {
14
14
  watch
15
- } from "./chunk.D7CATJYB.js";
15
+ } from "./chunk.6IH66JBY.js";
16
16
  import {
17
17
  ShoelaceElement
18
18
  } from "./chunk.YCXTCVAZ.js";
@@ -340,14 +340,21 @@ var DSARadioGroup = class extends ShoelaceElement {
340
340
  }
341
341
  updateCheckedRadio() {
342
342
  const radios = this.getAllRadios();
343
- radios.forEach((radio) => {
343
+ radios.forEach((radio, index) => {
344
344
  radio.checked = radio.value === this.value;
345
+ const shouldFocus = this.value === "" && index === 0;
345
346
  if (this.hasRadioButtons) {
346
347
  const radioButton = radio;
347
- radioButton.button.tabIndex = radio.checked ? 0 : -1;
348
+ radioButton.button.tabIndex = shouldFocus || radio.checked ? 0 : -1;
348
349
  radio.disabled = this.readonlyRadioButtonValue.get(this.value) || radioButton.readonly;
350
+ if (shouldFocus) {
351
+ radioButton.button.focus();
352
+ }
349
353
  } else {
350
- radio.tabIndex = radio.checked ? 0 : -1;
354
+ radio.tabIndex = shouldFocus || radio.checked ? 0 : -1;
355
+ if (shouldFocus) {
356
+ radio.focus();
357
+ }
351
358
  }
352
359
  });
353
360
  this.formControlController.setValidity(this.validity.valid);
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.5XL2LZLC.js";
18
+ } from "./chunk.NBPVVWJU.js";
19
19
  import {
20
20
  watch
21
- } from "./chunk.D7CATJYB.js";
21
+ } from "./chunk.6IH66JBY.js";
22
22
  import {
23
23
  ShoelaceElement
24
24
  } from "./chunk.YCXTCVAZ.js";
@@ -10,7 +10,7 @@ function watch(propertyName, options) {
10
10
  return (proto, decoratedFnName) => {
11
11
  const { update } = proto;
12
12
  const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
13
- proto.update = function(changedProps) {
13
+ proto.update = function updateFn(changedProps) {
14
14
  watchedProperties.forEach((property) => {
15
15
  const key = property;
16
16
  if (changedProps.has(key)) {