@ds-autonomie/web-components 2.11.0 → 2.12.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 (188) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/cdn/chunks/{chunk.TZ4Q6BAB.js → chunk.3K2PJ2XE.js} +3 -23
  3. package/cdn/chunks/{chunk.H2VYMPUG.js → chunk.5BXI46NB.js} +14 -10
  4. package/cdn/chunks/{chunk.QNIK7LHK.js → chunk.6SX2PVBZ.js} +1 -1
  5. package/cdn/chunks/{chunk.7YRH4W4Z.js → chunk.7X3L3UKI.js} +1 -1
  6. package/cdn/chunks/{chunk.26AMHY6M.js → chunk.A36W5FG6.js} +1 -1
  7. package/cdn/chunks/{chunk.3RUPWW4M.js → chunk.ALIVM5IK.js} +8 -0
  8. package/cdn/chunks/{chunk.NDZZP23O.js → chunk.ANY4UVWZ.js} +1 -3
  9. package/cdn/chunks/{chunk.HCI7PRQV.js → chunk.AWWSQ5SC.js} +1 -1
  10. package/cdn/chunks/{chunk.2WKNTHTE.js → chunk.C2XIPTU3.js} +1 -1
  11. package/cdn/chunks/{chunk.WZMY5NAQ.js → chunk.CK3OZQKX.js} +0 -4
  12. package/cdn/chunks/{chunk.SC3NB3OV.js → chunk.E3W7YEA4.js} +0 -2
  13. package/cdn/chunks/{chunk.OONJ4BAJ.js → chunk.F2AI7O4R.js} +5 -1
  14. package/cdn/chunks/{chunk.E7LCBTT5.js → chunk.FMMA36UF.js} +1 -1
  15. package/cdn/chunks/{chunk.T7LIPTCL.js → chunk.H4JTQC7T.js} +15 -19
  16. package/cdn/chunks/{chunk.VSZMOH4N.js → chunk.J7IAZRFK.js} +1 -1
  17. package/cdn/chunks/{chunk.34HTLNHP.js → chunk.KM4KITZK.js} +13 -0
  18. package/cdn/chunks/{chunk.Z5BYMFSD.js → chunk.OHT2CDR3.js} +2 -3
  19. package/cdn/chunks/{chunk.COPSPY7Y.js → chunk.PLMZNC5Q.js} +3 -4
  20. package/cdn/chunks/{chunk.XO5NWJKS.js → chunk.QHK23HRN.js} +34 -15
  21. package/cdn/chunks/{chunk.OJYQEB5J.js → chunk.R76IUUIR.js} +1 -1
  22. package/cdn/chunks/{chunk.F6UW3MQK.js → chunk.T7UYS7W3.js} +1 -1
  23. package/cdn/chunks/{chunk.S7UT2YD7.js → chunk.TAYXGYQL.js} +0 -1
  24. package/cdn/chunks/{chunk.H6FFNEL2.js → chunk.XHR7MVV6.js} +1 -1
  25. package/cdn/chunks/{chunk.REWGAX6A.js → chunk.XI4SZBXQ.js} +1 -1
  26. package/cdn/chunks/{chunk.GZM7EYZQ.js → chunk.XUMSOEU7.js} +2 -0
  27. package/cdn/chunks/{chunk.7ATQ4MIY.js → chunk.ZE5OBVSN.js} +0 -6
  28. package/cdn/components/accordion-group/accordion-group.js +1 -1
  29. package/cdn/components/alert/alert.js +1 -1
  30. package/cdn/components/button/button.js +1 -1
  31. package/cdn/components/callout/callout.js +1 -1
  32. package/cdn/components/checkbox/checkbox.d.ts +2 -0
  33. package/cdn/components/checkbox/checkbox.js +2 -2
  34. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  35. package/cdn/components/checkbox-button/checkbox-button.js +2 -2
  36. package/cdn/components/checkbox-card/checkbox-card.js +2 -2
  37. package/cdn/components/combobox/combobox.js +2 -2
  38. package/cdn/components/copy-button/copy-button.js +3 -2
  39. package/cdn/components/dialog/dialog.js +1 -1
  40. package/cdn/components/drawer/drawer.js +1 -1
  41. package/cdn/components/file-upload/file-upload.d.ts +0 -1
  42. package/cdn/components/file-upload/file-upload.js +1 -1
  43. package/cdn/components/filter-counter/filter-counter.js +3 -3
  44. package/cdn/components/filter-date/filter-date.js +3 -3
  45. package/cdn/components/filter-range/filter-range.js +4 -4
  46. package/cdn/components/filter-select/filter-select.js +3 -3
  47. package/cdn/components/header-search/header-search.js +2 -2
  48. package/cdn/components/icon-button/icon-button.js +1 -1
  49. package/cdn/components/input/input.js +2 -2
  50. package/cdn/components/input-amount/input-amount.js +1 -1
  51. package/cdn/components/input-date/input-date.js +2 -2
  52. package/cdn/components/input-native/input-native.js +1 -1
  53. package/cdn/components/input-otp/input-otp.js +1 -1
  54. package/cdn/components/input-phone/input-phone.js +3 -3
  55. package/cdn/components/input-time/input-time.js +1 -1
  56. package/cdn/components/menu-accordion/menu-accordion.d.ts +2 -1
  57. package/cdn/components/menu-accordion/menu-accordion.js +2 -2
  58. package/cdn/components/menu-item/menu-item.js +2 -1
  59. package/cdn/components/menu-navigation/menu-navigation.d.ts +5 -0
  60. package/cdn/components/menu-navigation/menu-navigation.js +3 -2
  61. package/cdn/components/navbar-link/navbar-link.js +3 -2
  62. package/cdn/components/navbar-menu/navbar-menu.js +2 -2
  63. package/cdn/components/pagination/pagination.js +2 -2
  64. package/cdn/components/profile-button/profile-button.js +2 -1
  65. package/cdn/components/quote/quote.js +1 -1
  66. package/cdn/components/radio-button/radio-button.js +2 -2
  67. package/cdn/components/radio-card/radio-card.js +2 -2
  68. package/cdn/components/range-slider/range-slider.js +1 -1
  69. package/cdn/components/search/search.js +1 -1
  70. package/cdn/components/select/select.js +2 -2
  71. package/cdn/components/sidenav/sidenav.js +2 -1
  72. package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +2 -2
  73. package/cdn/components/step/step.js +2 -2
  74. package/cdn/components/step/step.styles.js +1 -1
  75. package/cdn/components/switch/switch.js +1 -1
  76. package/cdn/components/tab/tab.js +1 -1
  77. package/cdn/components/tab-group/tab-group.js +1 -1
  78. package/cdn/components/table-action/table-action.d.ts +2 -0
  79. package/cdn/components/table-action/table-action.js +1 -1
  80. package/cdn/components/table-container/table-container.js +1 -1
  81. package/cdn/components/table-header-row/table-header-row.js +3 -3
  82. package/cdn/components/table-row/table-row.js +3 -3
  83. package/cdn/components/tag/tag.js +1 -1
  84. package/cdn/components/tooltip/tooltip.js +2 -1
  85. package/cdn/components/tree/tree.js +2 -2
  86. package/cdn/components/tree-item/tree-item.js +2 -2
  87. package/cdn/custom-elements.json +240 -198
  88. package/cdn/design-system.js +26 -26
  89. package/cdn/internal/components/date-field/date-field.js +2 -0
  90. package/cdn/internal/components/form-selectable-card/form-selectable-card.js +3 -7
  91. package/cdn/internal/components/form-toggle-button/form-toggle-button.js +2 -6
  92. package/cdn/utilities/storybook.js +2 -1
  93. package/cdn/vscode.html-custom-data.json +26 -15
  94. package/cdn/web-types.json +125 -80
  95. package/dist/chunks/{chunk.FE77T4YV.js → chunk.2NY5MPRL.js} +2 -3
  96. package/dist/chunks/{chunk.L6UOW2AY.js → chunk.6KJSL5LS.js} +13 -0
  97. package/dist/chunks/{chunk.Q35Y6PN4.js → chunk.6RDA3XLH.js} +0 -1
  98. package/dist/chunks/{chunk.4ZTY4RLW.js → chunk.7TG3DZTW.js} +1 -1
  99. package/dist/chunks/{chunk.TXDB6HM4.js → chunk.AXRKD7DS.js} +2 -0
  100. package/dist/chunks/{chunk.SBO2HJFC.js → chunk.CHUBPDIO.js} +3 -4
  101. package/dist/chunks/{chunk.3332LWML.js → chunk.DFNCZLQM.js} +1 -1
  102. package/dist/chunks/{chunk.PT44AIJN.js → chunk.EOBDJFKX.js} +1 -1
  103. package/dist/chunks/{chunk.5NAZU6VJ.js → chunk.HFNQK43R.js} +0 -4
  104. package/dist/chunks/{chunk.P7IPRHLL.js → chunk.HH6M5ISS.js} +1 -3
  105. package/dist/chunks/{chunk.IG7F6FJH.js → chunk.I26LWXXM.js} +3 -23
  106. package/dist/chunks/{chunk.SQJRLNS2.js → chunk.IUD6WB66.js} +1 -1
  107. package/dist/chunks/{chunk.62K7FKPD.js → chunk.JHQA2R5B.js} +0 -2
  108. package/dist/chunks/{chunk.QQOPMOYX.js → chunk.KQCEZOVH.js} +1 -1
  109. package/dist/chunks/{chunk.NSAJTBR4.js → chunk.KYZD4HDJ.js} +8 -0
  110. package/dist/chunks/{chunk.BVJYG2SX.js → chunk.MO2DF64H.js} +0 -6
  111. package/dist/chunks/{chunk.OMIL5X3X.js → chunk.N36MBM2Q.js} +15 -19
  112. package/dist/chunks/{chunk.OK2SQY2K.js → chunk.NEUS25YN.js} +1 -1
  113. package/dist/chunks/{chunk.Y5BMTMOP.js → chunk.OBIOX2QK.js} +1 -1
  114. package/dist/chunks/{chunk.C2GI7AW5.js → chunk.OBK2DHZB.js} +1 -1
  115. package/dist/chunks/{chunk.4FTWYPW3.js → chunk.PL7FGR6O.js} +14 -10
  116. package/dist/chunks/{chunk.MONMQF4P.js → chunk.QOTRG3SW.js} +1 -1
  117. package/dist/chunks/{chunk.AD6Q7RQZ.js → chunk.S4KNUHFV.js} +1 -1
  118. package/dist/chunks/{chunk.6CMGI6X2.js → chunk.VC7GDGXF.js} +1 -1
  119. package/dist/chunks/{chunk.7OU2KJ5C.js → chunk.WNBLXX3K.js} +34 -16
  120. package/dist/chunks/{chunk.RUSQQASU.js → chunk.ZK6Y3PH5.js} +5 -1
  121. package/dist/components/accordion-group/accordion-group.js +1 -1
  122. package/dist/components/alert/alert.js +1 -1
  123. package/dist/components/button/button.js +1 -1
  124. package/dist/components/callout/callout.js +1 -1
  125. package/dist/components/checkbox/checkbox.d.ts +2 -0
  126. package/dist/components/checkbox/checkbox.js +2 -2
  127. package/dist/components/checkbox/checkbox.styles.js +1 -1
  128. package/dist/components/checkbox-button/checkbox-button.js +2 -2
  129. package/dist/components/checkbox-card/checkbox-card.js +2 -2
  130. package/dist/components/combobox/combobox.js +2 -2
  131. package/dist/components/copy-button/copy-button.js +3 -2
  132. package/dist/components/dialog/dialog.js +1 -1
  133. package/dist/components/drawer/drawer.js +1 -1
  134. package/dist/components/file-upload/file-upload.d.ts +0 -1
  135. package/dist/components/file-upload/file-upload.js +1 -1
  136. package/dist/components/filter-counter/filter-counter.js +3 -3
  137. package/dist/components/filter-date/filter-date.js +3 -3
  138. package/dist/components/filter-range/filter-range.js +4 -4
  139. package/dist/components/filter-select/filter-select.js +3 -3
  140. package/dist/components/header-search/header-search.js +2 -2
  141. package/dist/components/icon-button/icon-button.js +1 -1
  142. package/dist/components/input/input.js +2 -2
  143. package/dist/components/input-amount/input-amount.js +1 -1
  144. package/dist/components/input-date/input-date.js +2 -2
  145. package/dist/components/input-native/input-native.js +1 -1
  146. package/dist/components/input-otp/input-otp.js +1 -1
  147. package/dist/components/input-phone/input-phone.js +3 -3
  148. package/dist/components/input-time/input-time.js +1 -1
  149. package/dist/components/menu-accordion/menu-accordion.d.ts +2 -1
  150. package/dist/components/menu-accordion/menu-accordion.js +2 -2
  151. package/dist/components/menu-item/menu-item.js +2 -1
  152. package/dist/components/menu-navigation/menu-navigation.d.ts +5 -0
  153. package/dist/components/menu-navigation/menu-navigation.js +3 -2
  154. package/dist/components/navbar-link/navbar-link.js +3 -2
  155. package/dist/components/navbar-menu/navbar-menu.js +2 -2
  156. package/dist/components/pagination/pagination.js +2 -2
  157. package/dist/components/profile-button/profile-button.js +2 -1
  158. package/dist/components/quote/quote.js +1 -1
  159. package/dist/components/radio-button/radio-button.js +2 -2
  160. package/dist/components/radio-card/radio-card.js +2 -2
  161. package/dist/components/range-slider/range-slider.js +1 -1
  162. package/dist/components/search/search.js +1 -1
  163. package/dist/components/select/select.js +2 -2
  164. package/dist/components/sidenav/sidenav.js +2 -1
  165. package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +2 -2
  166. package/dist/components/step/step.js +2 -2
  167. package/dist/components/step/step.styles.js +1 -1
  168. package/dist/components/switch/switch.js +1 -1
  169. package/dist/components/tab/tab.js +1 -1
  170. package/dist/components/tab-group/tab-group.js +1 -1
  171. package/dist/components/table-action/table-action.d.ts +2 -0
  172. package/dist/components/table-action/table-action.js +1 -1
  173. package/dist/components/table-container/table-container.js +1 -1
  174. package/dist/components/table-header-row/table-header-row.js +3 -3
  175. package/dist/components/table-row/table-row.js +3 -3
  176. package/dist/components/tag/tag.js +1 -1
  177. package/dist/components/tooltip/tooltip.js +2 -1
  178. package/dist/components/tree/tree.js +2 -2
  179. package/dist/components/tree-item/tree-item.js +2 -2
  180. package/dist/custom-elements.json +240 -198
  181. package/dist/design-system.js +26 -26
  182. package/dist/internal/components/date-field/date-field.js +2 -0
  183. package/dist/internal/components/form-selectable-card/form-selectable-card.js +3 -7
  184. package/dist/internal/components/form-toggle-button/form-toggle-button.js +2 -6
  185. package/dist/utilities/storybook.js +2 -1
  186. package/dist/vscode.html-custom-data.json +26 -15
  187. package/dist/web-types.json +125 -80
  188. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @ds-autonomie/web-components
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 36eadd8: `table-action` : ajout de l'attribut `deselect-all-on-close` afin de déselectionner toutes les lignes du tableau à la fermeture de la barre d'action
8
+
9
+ ### Patch Changes
10
+
11
+ - c5b74c6: Modèle de page Contact : ajout d'attributs autocomplete;
12
+ `checkbox`: Amélioration de l'accessibilité;
13
+ - c77b7b9: `button`, `checkbox`, `checkbox-button`, `checkbox-card`, `combobox`, `file-upload`, `filter-date`, `icon-button`, `range-slider`, `select`, `switch`, `radio-button`, `radio-card` : suppression d'attributs aria-disabled en doublon
14
+ - af1397a: `file-upload`: l'attribut `accept` peut être utilisé avec de la même manière que son équivalent natif.
15
+ - 82d5a6c: `menu-accordion`, `menu-navigation` : prise en charge du contenu dynamique
16
+
17
+ ## 2.11.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 0a352fa: `tooltip` : ajout d'un message d'avertissement si le tooltip est utilisé sans dsa-button ou dsa-icon-button
22
+ - 442a053: `step` : suppression de la propriété z-index sur les lignes reliant les étapes
23
+ - 8f0809a: Ajout du modèle de page Mentions Légales
24
+ - 603c1f4: `checkbox`, `copy-button` : amélioration de l'accessibilité
25
+ - 187a8f8: Ajout du modèle de page Contact
26
+
3
27
  ## 2.11.0
4
28
 
5
29
  ### Minor Changes
@@ -116,32 +116,13 @@ var DSAFileUpload = class extends ShoelaceElement {
116
116
  handleClick() {
117
117
  this.fileUploadInput.click();
118
118
  }
119
- handleChange(event) {
120
- const addedFiles = this.handleFileSelectedChange(event);
119
+ handleChange() {
120
+ var _a;
121
+ const addedFiles = Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
121
122
  this.emit("dsa-file-upload", { detail: { files: addedFiles } });
122
123
  this.value = this.fileUploadInput.value;
123
124
  this.formControlController.updateValidity();
124
125
  }
125
- handleFileSelectedChange(event) {
126
- var _a, _b;
127
- if (!this.accept || !/^(change|drop)$/.test(event.type)) {
128
- return Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
129
- }
130
- if (((_b = this.fileUploadInput) == null ? void 0 : _b.files) === null) {
131
- return [];
132
- }
133
- const acceptedTypes = new Set(this.accept.split(", "));
134
- return Array.prototype.filter.call(
135
- this.fileUploadInput.files,
136
- (file) => {
137
- var _a2;
138
- const fileExtensionRegExp = /\.[^.]+$/;
139
- const hasFileExtension = fileExtensionRegExp.test(file.name);
140
- const [fileExtension] = !hasFileExtension ? [void 0] : (_a2 = fileExtensionRegExp.exec(file.name)) != null ? _a2 : [];
141
- return acceptedTypes.has(file.type) || fileExtension && acceptedTypes.has(fileExtension);
142
- }
143
- );
144
- }
145
126
  handleInvalid(event) {
146
127
  this.formControlController.setValidity(false);
147
128
  this.formControlController.emitInvalidEvent(event);
@@ -247,7 +228,6 @@ var DSAFileUpload = class extends ShoelaceElement {
247
228
  "button--disabled": this.disabled
248
229
  })}
249
230
  ?disabled=${this.disabled}
250
- aria-disabled=${this.disabled ? "true" : "false"}
251
231
  aria-required=${o(this.required ? "true" : void 0)}
252
232
  aria-invalid=${o(this.error ? "true" : void 0)}
253
233
  tabindex=${this.disabled ? "-1" : "0"}
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.PZK4ARTY.js";
13
13
  import {
14
14
  checkbox_styles_default
15
- } from "./chunk.WZMY5NAQ.js";
15
+ } from "./chunk.CK3OZQKX.js";
16
16
  import {
17
17
  FormControlController
18
18
  } from "./chunk.LLQW6MLS.js";
@@ -118,7 +118,7 @@ var DSACheckbox = class extends ShoelaceElement {
118
118
  this.emit("dsa-focus");
119
119
  }
120
120
  handleDeactivatedChange() {
121
- if (this.disabled || this.readonly || this.parentDisabled || this.parentReadonly) {
121
+ if (this.readonly || this.parentReadonly) {
122
122
  this.input.setAttribute("aria-disabled", "true");
123
123
  } else {
124
124
  this.input.removeAttribute("aria-disabled");
@@ -171,7 +171,7 @@ var DSACheckbox = class extends ShoelaceElement {
171
171
  this.formControlController.updateValidity();
172
172
  }
173
173
  render() {
174
- var _a, _b;
174
+ var _a, _b, _c, _d;
175
175
  const hasLabelSlot = this.hasSlotController.test("[default]");
176
176
  const isDisabled = this.disabled || this.parentDisabled;
177
177
  const isReadonly = this.readonly || this.parentReadonly;
@@ -198,7 +198,6 @@ var DSACheckbox = class extends ShoelaceElement {
198
198
  })}
199
199
  >
200
200
  <label
201
- for="input"
202
201
  class=${e2({
203
202
  checkbox: true,
204
203
  "checkbox--checked": this.checked,
@@ -217,19 +216,18 @@ var DSACheckbox = class extends ShoelaceElement {
217
216
  id="input"
218
217
  class="checkbox__input"
219
218
  type="checkbox"
220
- title=${(_a = this.accessibleName) != null ? _a : this.title}
219
+ title=${ifDefinedAndNotEmpty((_a = this.accessibleName) != null ? _a : this.title)}
221
220
  name=${ifDefinedAndNotEmpty(this.name)}
222
221
  value=${o(this.value)}
223
222
  .indeterminate=${l(this.indeterminate)}
224
223
  .checked=${l(this.checked)}
225
224
  .disabled=${isDisabled}
226
225
  .required=${this.required}
227
- aria-label=${ifDefinedAndNotEmpty(
228
- (_b = this.accessibleName) != null ? _b : this.ariaLabel
226
+ aria-label=${o(
227
+ !hasLabelSlot ? (_b = this.accessibleName) != null ? _b : this.title : void 0
229
228
  )}
230
- aria-checked=${this.checked ? "true" : "false"}
231
229
  aria-describedby=${o(this.error ? "error-text" : void 0)}
232
- aria-disabled="${o(isDeactivated ? "true" : void 0)}"
230
+ aria-disabled="${o(isReadonly ? "true" : void 0)}"
233
231
  aria-invalid=${o(this.error ? "true" : void 0)}
234
232
  @click=${this.handleClick}
235
233
  @input=${this.handleInput}
@@ -244,11 +242,17 @@ var DSACheckbox = class extends ShoelaceElement {
244
242
  ?disabled=${isDisabled}
245
243
  ?readonly=${isReadonly}
246
244
  ?error=${this.error}
245
+ title=${ifDefinedAndNotEmpty((_c = this.accessibleName) != null ? _c : this.title)}
246
+ aria-hidden="true"
247
247
  ></dsa-internal-checkbox-box>
248
248
 
249
249
  <div part="label" class="checkbox__label">
250
250
  ${this.required ? x`<span class="checkbox__label-required">*</span>` : ""}
251
- <slot></slot>
251
+ <slot
252
+ ><dsa-visually-hidden
253
+ >${(_d = this.accessibleName) != null ? _d : this.title}</dsa-visually-hidden
254
+ ></slot
255
+ >
252
256
  </div>
253
257
  </label>
254
258
  ${this.error && !isDeactivated && this.errorMessage ? renderFormElementErrors(this.errorMessage) : ""}
@@ -704,7 +704,7 @@ var DSACombobox = class extends FormControlLayout {
704
704
  aria-label=${ifDefinedAndNotEmpty(
705
705
  hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
706
706
  )}
707
- aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
707
+ aria-disabled=${o(this.readonly ? "true" : void 0)}
708
708
  aria-describedby=${this.getDescriptionIds()}
709
709
  aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
710
710
  aria-invalid=${o(this.error ? "true" : void 0)}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.ZRTVJE3I.js";
4
4
  import {
5
5
  FormSelectableCard
6
- } from "./chunk.COPSPY7Y.js";
6
+ } from "./chunk.PLMZNC5Q.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.TKTCYZRK.js";
@@ -139,6 +139,7 @@ var DSACopyButton = class extends ShoelaceElement {
139
139
  placement=${this.tooltipPlacement}
140
140
  ?disabled=${this.disabled}
141
141
  ?hoist=${this.hoist}
142
+ @mouseleave=${this.resetStatus}
142
143
  >
143
144
  <button
144
145
  class="copy-button__button"
@@ -147,7 +148,6 @@ var DSACopyButton = class extends ShoelaceElement {
147
148
  ?disabled=${this.disabled}
148
149
  @click=${this.handleCopy}
149
150
  aria-label=${copyLabel}
150
- @mouseleave=${this.resetStatus}
151
151
  @focusout=${this.resetStatus}
152
152
  >
153
153
  <dsa-icon
@@ -13,6 +13,9 @@ import {
13
13
  getAnimation,
14
14
  setDefaultAnimation
15
15
  } from "./chunk.CCDITBCR.js";
16
+ import {
17
+ a11yWarning
18
+ } from "./chunk.PWL7QCVG.js";
16
19
  import {
17
20
  LocalizeController
18
21
  } from "./chunk.IUTJLFMA.js";
@@ -190,6 +193,11 @@ var DSATooltip = class extends ShoelaceElement {
190
193
  "dsa-button, dsa-icon-button"
191
194
  );
192
195
  target == null ? void 0 : target.setAttribute("description", this.content);
196
+ if (!target) {
197
+ a11yWarning(
198
+ "The target element of the tooltip (in its default slot) must be a dsa-button or dsa-icon-button."
199
+ );
200
+ }
193
201
  }
194
202
  render() {
195
203
  return x`
@@ -194,9 +194,7 @@ var DSASwitch = class extends ShoelaceElement {
194
194
  .required=${this.required}
195
195
  role="switch"
196
196
  aria-checked=${this.checked ? "true" : "false"}
197
- aria-disabled=${o(
198
- this.disabled || this.readonly ? "true" : void 0
199
- )}
197
+ aria-disabled=${o(this.readonly ? "true" : void 0)}
200
198
  @click=${this.handleClick}
201
199
  @input=${this.handleInput}
202
200
  @invalid=${this.handleInvalid}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FormToggleButton
3
- } from "./chunk.Z5BYMFSD.js";
3
+ } from "./chunk.OHT2CDR3.js";
4
4
  import {
5
5
  DSACheckboxGroup
6
6
  } from "./chunk.FZ5GX4LB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FormSelectableCard
3
- } from "./chunk.COPSPY7Y.js";
3
+ } from "./chunk.PLMZNC5Q.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TKTCYZRK.js";
@@ -61,10 +61,6 @@ var checkbox_styles_default = i`
61
61
  outline-offset: var(--dsa-wc-focus-ring-offset);
62
62
  }
63
63
 
64
- .checkbox__label:not(.checkbox--disabled) {
65
- display: none;
66
- }
67
-
68
64
  .checkbox--has-label .checkbox__label:not(.checkbox--disabled) {
69
65
  display: inline-block;
70
66
  color: var(--dsa-wc-checkbox-color);
@@ -160,7 +160,6 @@ var DSARangeSlider = class extends ShoelaceElement {
160
160
  max=${o(this.max)}
161
161
  ?disabled=${this.disabled}
162
162
  aria-label=${ifDefinedAndNotEmpty(this.labelFrom)}
163
- aria-disabled=${this.disabled}
164
163
  @input=${this.onFromSliderInputChange}
165
164
  @focus=${this.handleFromSliderFocus}
166
165
  @blur=${this.handleFromSliderBlur}
@@ -178,7 +177,6 @@ var DSARangeSlider = class extends ShoelaceElement {
178
177
  max=${o(this.max)}
179
178
  ?disabled=${this.disabled}
180
179
  aria-label=${ifDefinedAndNotEmpty(this.labelTo)}
181
- aria-disabled=${this.disabled}
182
180
  @input=${this.onToSliderInputChange}
183
181
  @focus=${this.handleToSliderFocus}
184
182
  @blur=${this.handleToSliderBlur}
@@ -23,6 +23,7 @@ var DSATableAction = class extends ShoelaceElement {
23
23
  super(...arguments);
24
24
  this.localize = new LocalizeController(this);
25
25
  this.show = false;
26
+ this.deselectAllOnClose = false;
26
27
  }
27
28
  handleClose() {
28
29
  this.emit("dsa-table-actions-close");
@@ -40,7 +41,7 @@ var DSATableAction = class extends ShoelaceElement {
40
41
  @click=${this.handleClose}
41
42
  >
42
43
  <dsa-icon slot="prefix" name="close" library="system"></dsa-icon>
43
- ${this.localize.term("close")}
44
+ ${this.deselectAllOnClose ? this.localize.term("deselectAll") : this.localize.term("close")}
44
45
  </dsa-button>
45
46
  `;
46
47
  }
@@ -52,6 +53,9 @@ __decorateClass([
52
53
  __decorateClass([
53
54
  n({ type: Boolean, reflect: true })
54
55
  ], DSATableAction.prototype, "show", 2);
56
+ __decorateClass([
57
+ n({ type: Boolean, attribute: "deselect-all-on-close" })
58
+ ], DSATableAction.prototype, "deselectAllOnClose", 2);
55
59
  DSATableAction = __decorateClass([
56
60
  t("dsa-table-action")
57
61
  ], DSATableAction);
@@ -541,7 +541,7 @@ var DSASelect = class extends FormControlLayout {
541
541
  aria-label=${ifDefinedAndNotEmpty(
542
542
  hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
543
543
  )}
544
- aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
544
+ aria-disabled=${o(this.readonly ? "true" : void 0)}
545
545
  aria-describedby=${this.getDescriptionIds()}
546
546
  aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
547
547
  aria-invalid=${o(this.error ? "true" : void 0)}
@@ -60,15 +60,6 @@ var DSAMenuAccordion = class extends ShoelaceElement {
60
60
  this.collapsed = false;
61
61
  this.sidenavInfo = false;
62
62
  }
63
- connectedCallback() {
64
- super.connectedCallback();
65
- const menuNavigation = this.querySelector(
66
- "dsa-menu-navigation"
67
- );
68
- if (menuNavigation !== null) {
69
- menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
70
- }
71
- }
72
63
  firstUpdated() {
73
64
  this.body.hidden = !this.open;
74
65
  this.body.style.height = this.open ? "auto" : "0";
@@ -99,6 +90,19 @@ var DSAMenuAccordion = class extends ShoelaceElement {
99
90
  this.show();
100
91
  }
101
92
  }
93
+ updateChildrenClassName() {
94
+ const menuNavigation = this.querySelector(
95
+ "dsa-menu-navigation"
96
+ );
97
+ if (menuNavigation !== null) {
98
+ menuNavigation.level = this.level;
99
+ menuNavigation == null ? void 0 : menuNavigation.classList.remove("level-1", "level-2");
100
+ menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
101
+ }
102
+ }
103
+ handleDefaultSlotChange() {
104
+ this.updateChildrenClassName();
105
+ }
102
106
  /** Returns a text label based on the contents of the summary slot. */
103
107
  getTextSummary(widthBadge = false) {
104
108
  var _a, _b, _c, _d;
@@ -160,16 +164,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
160
164
  }
161
165
  }
162
166
  handleLevelChange() {
163
- const menuNavigation = this.querySelector(
164
- "dsa-menu-navigation"
165
- );
166
- if (menuNavigation !== null) {
167
- if (this.level === 2) {
168
- menuNavigation.classList.add("level-2");
169
- } else {
170
- menuNavigation.classList.remove("level-2");
171
- }
172
- }
167
+ this.updateChildrenClassName();
173
168
  }
174
169
  async handleExpandedChange() {
175
170
  await this.updateComplete;
@@ -265,6 +260,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
265
260
  id="content"
266
261
  class="menu-accordion__content"
267
262
  aria-labelledby="header"
263
+ @slotchange=${this.handleDefaultSlotChange}
268
264
  ></slot>
269
265
  </div>
270
266
  </div>
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.ZRTVJE3I.js";
4
4
  import {
5
5
  FormToggleButton
6
- } from "./chunk.Z5BYMFSD.js";
6
+ } from "./chunk.OHT2CDR3.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.TKTCYZRK.js";
@@ -66,6 +66,19 @@ var DSATableContainer = class extends LoadingStateElement {
66
66
  }
67
67
  handleTableActionsClose() {
68
68
  this.showTableActions = false;
69
+ const actionBar = this.querySelector("dsa-table-action");
70
+ const headerRow = this.querySelector(
71
+ "dsa-table-header-row"
72
+ );
73
+ if (actionBar && headerRow && actionBar.deselectAllOnClose) {
74
+ const tableRows = [
75
+ ...this.querySelectorAll("dsa-table-row")
76
+ ];
77
+ tableRows.forEach((row) => row.selected = false);
78
+ headerRow.checkbox.checked = false;
79
+ headerRow.checkbox.indeterminate = false;
80
+ headerRow.selected = false;
81
+ }
69
82
  }
70
83
  handleTableSelection(event) {
71
84
  this.showTableActions = event.detail.selectedRows.length > 0;
@@ -199,7 +199,7 @@ var FormToggleButton = class extends ShoelaceElement {
199
199
  this.emit("dsa-focus");
200
200
  }
201
201
  handleDeactivatedChange() {
202
- if (this.disabled || this.readonly || this.parentDisabled || this.parentReadonly) {
202
+ if (this.readonly || this.parentReadonly) {
203
203
  this.button.setAttribute("aria-disabled", "true");
204
204
  } else {
205
205
  this.button.removeAttribute("aria-disabled");
@@ -216,7 +216,6 @@ var FormToggleButton = class extends ShoelaceElement {
216
216
  render() {
217
217
  const isDisabled = this.disabled || this.parentDisabled;
218
218
  const isReadonly = this.readonly || this.parentReadonly;
219
- const isDeactivated = isDisabled || isReadonly;
220
219
  if (!this.hasSlotController.test("[default]")) {
221
220
  a11yWarning(
222
221
  `<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`
@@ -242,7 +241,7 @@ var FormToggleButton = class extends ShoelaceElement {
242
241
  "button--checkbox": this.type === "checkbox"
243
242
  })}
244
243
  ?disabled=${isDisabled}
245
- aria-disabled=${o(isDeactivated ? "true" : void 0)}
244
+ aria-disabled=${o(isReadonly ? "true" : void 0)}
246
245
  aria-invalid=${o(
247
246
  this.type === "checkbox" && this.error ? "true" : void 0
248
247
  )}
@@ -192,7 +192,7 @@ var FormSelectableCard = class extends ShoelaceElement {
192
192
  this.emit("dsa-focus");
193
193
  }
194
194
  handleDisabledChange() {
195
- if (this.disabled || this.readonly || this.parentDisabled || this.parentReadonly) {
195
+ if (this.readonly || this.parentReadonly) {
196
196
  this.button.setAttribute("aria-disabled", "true");
197
197
  } else {
198
198
  this.button.removeAttribute("aria-disabled");
@@ -209,7 +209,6 @@ var FormSelectableCard = class extends ShoelaceElement {
209
209
  render() {
210
210
  const isDisabled = this.disabled || this.parentDisabled;
211
211
  const isReadonly = this.readonly || this.parentReadonly;
212
- const isDeactivated = isDisabled || isReadonly;
213
212
  return u`
214
213
  <div part="base">
215
214
  <button
@@ -231,7 +230,7 @@ var FormSelectableCard = class extends ShoelaceElement {
231
230
  "selectable-card--contrasted-borders": this.contrastedBorders
232
231
  })}
233
232
  ?disabled=${isDisabled}
234
- aria-disabled=${o(isDeactivated ? "true" : void 0)}
233
+ aria-disabled=${o(isReadonly ? "true" : void 0)}
235
234
  aria-invalid=${o(
236
235
  this.type === "checkbox" && this.error ? "true" : void 0
237
236
  )}
@@ -319,7 +318,7 @@ __decorateClass([
319
318
  n({ type: Boolean, reflect: true, attribute: "contrasted-borders" })
320
319
  ], FormSelectableCard.prototype, "contrastedBorders", 2);
321
320
  __decorateClass([
322
- watch(["disabled", "readonly", "parentDisabled", "parentReadonly"], {
321
+ watch(["readonly", "parentReadonly"], {
323
322
  waitUntilFirstUpdate: true
324
323
  })
325
324
  ], FormSelectableCard.prototype, "handleDisabledChange", 1);
@@ -4,9 +4,13 @@ import {
4
4
  import {
5
5
  menu_navigation_styles_default
6
6
  } from "./chunk.WBTHKBRH.js";
7
+ import {
8
+ watch
9
+ } from "./chunk.TKTCYZRK.js";
7
10
  import {
8
11
  ShoelaceElement,
9
12
  e,
13
+ n,
10
14
  t
11
15
  } from "./chunk.TEKUWOCD.js";
12
16
  import {
@@ -21,39 +25,54 @@ var DSAMenuNavigation = class extends ShoelaceElement {
21
25
  connectedCallback() {
22
26
  super.connectedCallback();
23
27
  this.addEventListener("keydown", this.handleKeyDown);
24
- let level;
25
- if (this.classList.contains("level-1")) {
26
- level = "level-1";
27
- }
28
- if (this.classList.contains("level-2")) {
29
- level = "level-2";
30
- }
31
- if (level) {
32
- const menuItems = this.querySelectorAll("dsa-menu-item");
33
- menuItems.forEach((menuItem) => {
34
- menuItem.classList.add(level);
35
- });
36
- }
37
28
  this.setAttribute("role", "list");
38
29
  }
39
30
  disconnectedCallback() {
40
31
  super.disconnectedCallback();
41
32
  this.removeEventListener("keydown", this.handleKeyDown);
42
33
  }
34
+ updateChildrenClassName() {
35
+ if (this.level) {
36
+ const menuItems = this.querySelectorAll("dsa-menu-item");
37
+ menuItems.forEach((menuItem) => {
38
+ if (this.level === 1) {
39
+ menuItem.classList.remove("level-2");
40
+ menuItem.classList.add("level-1");
41
+ } else {
42
+ menuItem.classList.remove("level-1");
43
+ menuItem.classList.add("level-2");
44
+ }
45
+ });
46
+ }
47
+ }
48
+ handleSlotChange() {
49
+ this.updateChildrenClassName();
50
+ }
43
51
  handleKeyDown(event) {
44
52
  if (event.key === " " && !(event.target instanceof DSAMenuItem && event.target.type === "button")) {
45
53
  event.preventDefault();
46
54
  }
47
55
  }
48
- // A change of attributes on the slotted elements does not trigger the "slotchange" event, so we add an observer
56
+ handleLevelChange() {
57
+ this.updateChildrenClassName();
58
+ }
49
59
  render() {
50
- return x`<slot @keydown=${this.handleKeyDown}></slot>`;
60
+ return x`<slot
61
+ @keydown=${this.handleKeyDown}
62
+ @slotchange=${this.handleSlotChange}
63
+ ></slot>`;
51
64
  }
52
65
  };
53
66
  DSAMenuNavigation.styles = menu_navigation_styles_default;
54
67
  __decorateClass([
55
68
  e("slot")
56
69
  ], DSAMenuNavigation.prototype, "defaultSlot", 2);
70
+ __decorateClass([
71
+ n({ type: Number })
72
+ ], DSAMenuNavigation.prototype, "level", 2);
73
+ __decorateClass([
74
+ watch("level", { waitUntilFirstUpdate: true })
75
+ ], DSAMenuNavigation.prototype, "handleLevelChange", 1);
57
76
  DSAMenuNavigation = __decorateClass([
58
77
  t("dsa-menu-navigation")
59
78
  ], DSAMenuNavigation);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DSASelect
3
- } from "./chunk.E7LCBTT5.js";
3
+ } from "./chunk.FMMA36UF.js";
4
4
  import {
5
5
  input_phone_styles_default
6
6
  } from "./chunk.6PLXHBET.js";
@@ -106,7 +106,7 @@ var DSAIconButton = class extends ShoelaceElement {
106
106
  isLink && this.target ? "noreferrer noopener" : void 0
107
107
  )}
108
108
  role=${o(isLink ? void 0 : "button")}
109
- aria-disabled=${this.disabled ? "true" : "false"}
109
+ aria-disabled=${o(this.disabled && isLink ? "true" : void 0)}
110
110
  aria-pressed=${o(this.toggle ? this.pressed : void 0)}
111
111
  aria-label=${ifDefinedAndNotEmpty(this.label)}
112
112
  aria-describedby="description"
@@ -121,7 +121,6 @@ var step_styles_default = i`
121
121
  content: '';
122
122
  position: absolute;
123
123
  background-color: var(--dsa-wc-stepper-color-progress-default);
124
- z-index: -1;
125
124
  }
126
125
 
127
126
  .step-container__horizontal .step:after {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  step_styles_default
3
- } from "./chunk.S7UT2YD7.js";
3
+ } from "./chunk.TAYXGYQL.js";
4
4
  import {
5
5
  getStepIcon
6
6
  } from "./chunk.CCTWXABH.js";
@@ -241,7 +241,7 @@ var DSAButton = class extends ShoelaceElement {
241
241
  (_a = this.accessibleName) != null ? _a : this.ariaLabel
242
242
  )}
243
243
  aria-describedby="description"
244
- aria-disabled=${o(this.disabled ? "true" : void 0)}
244
+ aria-disabled=${o(this.disabled && isLink ? "true" : void 0)}
245
245
  aria-pressed=${o(this.toggle ? this.pressed : void 0)}
246
246
  tabindex=${o(this.disabled ? "-1" : void 0)}
247
247
  @blur=${this.handleBlur}
@@ -502,6 +502,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
502
502
  class=${className}
503
503
  ?disabled=${this.disabled}
504
504
  ?readonly=${this.readonly}
505
+ aria-disabled=${o(this.readonly ? "true" : void 0)}
505
506
  ?required=${this.required}
506
507
  aria-label=${`${ariaLabel} - ${this.parentName}`}
507
508
  aria-describedby="description"
@@ -539,6 +540,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
539
540
  name=${ifDefinedAndNotEmpty(this.name)}
540
541
  ?disabled=${this.disabled}
541
542
  ?readonly=${this.readonly}
543
+ aria-disabled=${o(this.readonly ? "true" : void 0)}
542
544
  ?required=${this.required}
543
545
  min=${o(this.min)}
544
546
  max=${o(this.max)}
@@ -268,9 +268,6 @@ var DSAFilterDate = class extends FilterBase {
268
268
  )}
269
269
  @dsa-change=${this.handleChange}
270
270
  ?disabled=${this.disabled}
271
- aria-disabled=${o(
272
- this.disabled || this.readonly ? "true" : void 0
273
- )}
274
271
  ?readonly=${this.readonly}
275
272
  parent-name=${this.range ? `${this.label} - ${this.localize.term("startDate")}` : this.label}
276
273
  description=${this.getDescriptionText("start")}
@@ -287,9 +284,6 @@ var DSAFilterDate = class extends FilterBase {
287
284
  .value=${(_a = parseDateRange(this.value)[1]) != null ? _a : ""}
288
285
  @dsa-change=${this.handleChange}
289
286
  ?disabled=${this.disabled}
290
- aria-disabled=${o(
291
- this.disabled || this.readonly ? "true" : void 0
292
- )}
293
287
  ?readonly=${this.readonly}
294
288
  parent-name=${`${this.label} - ${this.localize.term(
295
289
  "endDate"
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DSAAccordionGroup
3
3
  } from "../../chunks/chunk.GCZKQEK3.js";
4
- import "../../chunks/chunk.REWGAX6A.js";
4
+ import "../../chunks/chunk.XI4SZBXQ.js";
5
5
  import "../../chunks/chunk.JJZU37TO.js";
6
6
  import "../../chunks/chunk.KPERDNOW.js";
7
7
  import "../../chunks/chunk.LLQW6MLS.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DSAAlert
3
3
  } from "../../chunks/chunk.CE4QX5GY.js";
4
- import "../../chunks/chunk.F6UW3MQK.js";
4
+ import "../../chunks/chunk.T7UYS7W3.js";
5
5
  import "../../chunks/chunk.NBIZCATT.js";
6
6
  import "../../chunks/chunk.B4BZKR24.js";
7
7
  import "../../chunks/chunk.PMYSGKZB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DSAButton
3
- } from "../../chunks/chunk.REWGAX6A.js";
3
+ } from "../../chunks/chunk.XI4SZBXQ.js";
4
4
  import "../../chunks/chunk.JJZU37TO.js";
5
5
  import "../../chunks/chunk.KPERDNOW.js";
6
6
  import "../../chunks/chunk.LLQW6MLS.js";