@ds-autonomie/web-components 2.11.1 → 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 (164) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cdn/chunks/{chunk.TZ4Q6BAB.js → chunk.3K2PJ2XE.js} +3 -23
  3. package/cdn/chunks/{chunk.JFUUWE3Y.js → chunk.5BXI46NB.js} +11 -9
  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.NDZZP23O.js → chunk.ANY4UVWZ.js} +1 -3
  7. package/cdn/chunks/{chunk.HCI7PRQV.js → chunk.AWWSQ5SC.js} +1 -1
  8. package/cdn/chunks/{chunk.2WKNTHTE.js → chunk.C2XIPTU3.js} +1 -1
  9. package/cdn/chunks/{chunk.WZMY5NAQ.js → chunk.CK3OZQKX.js} +0 -4
  10. package/cdn/chunks/{chunk.SC3NB3OV.js → chunk.E3W7YEA4.js} +0 -2
  11. package/cdn/chunks/{chunk.OONJ4BAJ.js → chunk.F2AI7O4R.js} +5 -1
  12. package/cdn/chunks/{chunk.E7LCBTT5.js → chunk.FMMA36UF.js} +1 -1
  13. package/cdn/chunks/{chunk.T7LIPTCL.js → chunk.H4JTQC7T.js} +15 -19
  14. package/cdn/chunks/{chunk.VSZMOH4N.js → chunk.J7IAZRFK.js} +1 -1
  15. package/cdn/chunks/{chunk.34HTLNHP.js → chunk.KM4KITZK.js} +13 -0
  16. package/cdn/chunks/{chunk.Z5BYMFSD.js → chunk.OHT2CDR3.js} +2 -3
  17. package/cdn/chunks/{chunk.COPSPY7Y.js → chunk.PLMZNC5Q.js} +3 -4
  18. package/cdn/chunks/{chunk.XO5NWJKS.js → chunk.QHK23HRN.js} +34 -15
  19. package/cdn/chunks/{chunk.OJYQEB5J.js → chunk.R76IUUIR.js} +1 -1
  20. package/cdn/chunks/{chunk.F6UW3MQK.js → chunk.T7UYS7W3.js} +1 -1
  21. package/cdn/chunks/{chunk.REWGAX6A.js → chunk.XI4SZBXQ.js} +1 -1
  22. package/cdn/chunks/{chunk.GZM7EYZQ.js → chunk.XUMSOEU7.js} +2 -0
  23. package/cdn/chunks/{chunk.7ATQ4MIY.js → chunk.ZE5OBVSN.js} +0 -6
  24. package/cdn/components/accordion-group/accordion-group.js +1 -1
  25. package/cdn/components/alert/alert.js +1 -1
  26. package/cdn/components/button/button.js +1 -1
  27. package/cdn/components/callout/callout.js +1 -1
  28. package/cdn/components/checkbox/checkbox.d.ts +2 -0
  29. package/cdn/components/checkbox/checkbox.js +2 -2
  30. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  31. package/cdn/components/checkbox-button/checkbox-button.js +2 -2
  32. package/cdn/components/checkbox-card/checkbox-card.js +2 -2
  33. package/cdn/components/combobox/combobox.js +2 -2
  34. package/cdn/components/dialog/dialog.js +1 -1
  35. package/cdn/components/drawer/drawer.js +1 -1
  36. package/cdn/components/file-upload/file-upload.d.ts +0 -1
  37. package/cdn/components/file-upload/file-upload.js +1 -1
  38. package/cdn/components/filter-counter/filter-counter.js +3 -3
  39. package/cdn/components/filter-date/filter-date.js +3 -3
  40. package/cdn/components/filter-range/filter-range.js +4 -4
  41. package/cdn/components/filter-select/filter-select.js +3 -3
  42. package/cdn/components/header-search/header-search.js +2 -2
  43. package/cdn/components/icon-button/icon-button.js +1 -1
  44. package/cdn/components/input/input.js +2 -2
  45. package/cdn/components/input-amount/input-amount.js +1 -1
  46. package/cdn/components/input-date/input-date.js +2 -2
  47. package/cdn/components/input-native/input-native.js +1 -1
  48. package/cdn/components/input-otp/input-otp.js +1 -1
  49. package/cdn/components/input-phone/input-phone.js +3 -3
  50. package/cdn/components/input-time/input-time.js +1 -1
  51. package/cdn/components/menu-accordion/menu-accordion.d.ts +2 -1
  52. package/cdn/components/menu-accordion/menu-accordion.js +1 -1
  53. package/cdn/components/menu-navigation/menu-navigation.d.ts +5 -0
  54. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  55. package/cdn/components/navbar-link/navbar-link.js +1 -1
  56. package/cdn/components/navbar-menu/navbar-menu.js +1 -1
  57. package/cdn/components/pagination/pagination.js +2 -2
  58. package/cdn/components/quote/quote.js +1 -1
  59. package/cdn/components/radio-button/radio-button.js +2 -2
  60. package/cdn/components/radio-card/radio-card.js +2 -2
  61. package/cdn/components/range-slider/range-slider.js +1 -1
  62. package/cdn/components/search/search.js +1 -1
  63. package/cdn/components/select/select.js +2 -2
  64. package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
  65. package/cdn/components/switch/switch.js +1 -1
  66. package/cdn/components/tab/tab.js +1 -1
  67. package/cdn/components/tab-group/tab-group.js +1 -1
  68. package/cdn/components/table-action/table-action.d.ts +2 -0
  69. package/cdn/components/table-action/table-action.js +1 -1
  70. package/cdn/components/table-container/table-container.js +1 -1
  71. package/cdn/components/table-header-row/table-header-row.js +3 -3
  72. package/cdn/components/table-row/table-row.js +3 -3
  73. package/cdn/components/tag/tag.js +1 -1
  74. package/cdn/components/tree/tree.js +2 -2
  75. package/cdn/components/tree-item/tree-item.js +2 -2
  76. package/cdn/custom-elements.json +150 -108
  77. package/cdn/design-system.js +22 -22
  78. package/cdn/internal/components/date-field/date-field.js +2 -0
  79. package/cdn/internal/components/form-selectable-card/form-selectable-card.js +3 -7
  80. package/cdn/internal/components/form-toggle-button/form-toggle-button.js +2 -6
  81. package/cdn/vscode.html-custom-data.json +18 -7
  82. package/cdn/web-types.json +84 -39
  83. package/dist/chunks/{chunk.FE77T4YV.js → chunk.2NY5MPRL.js} +2 -3
  84. package/dist/chunks/{chunk.L6UOW2AY.js → chunk.6KJSL5LS.js} +13 -0
  85. package/dist/chunks/{chunk.4ZTY4RLW.js → chunk.7TG3DZTW.js} +1 -1
  86. package/dist/chunks/{chunk.TXDB6HM4.js → chunk.AXRKD7DS.js} +2 -0
  87. package/dist/chunks/{chunk.SBO2HJFC.js → chunk.CHUBPDIO.js} +3 -4
  88. package/dist/chunks/{chunk.3332LWML.js → chunk.DFNCZLQM.js} +1 -1
  89. package/dist/chunks/{chunk.5NAZU6VJ.js → chunk.HFNQK43R.js} +0 -4
  90. package/dist/chunks/{chunk.P7IPRHLL.js → chunk.HH6M5ISS.js} +1 -3
  91. package/dist/chunks/{chunk.IG7F6FJH.js → chunk.I26LWXXM.js} +3 -23
  92. package/dist/chunks/{chunk.SQJRLNS2.js → chunk.IUD6WB66.js} +1 -1
  93. package/dist/chunks/{chunk.62K7FKPD.js → chunk.JHQA2R5B.js} +0 -2
  94. package/dist/chunks/{chunk.QQOPMOYX.js → chunk.KQCEZOVH.js} +1 -1
  95. package/dist/chunks/{chunk.BVJYG2SX.js → chunk.MO2DF64H.js} +0 -6
  96. package/dist/chunks/{chunk.OMIL5X3X.js → chunk.N36MBM2Q.js} +15 -19
  97. package/dist/chunks/{chunk.OK2SQY2K.js → chunk.NEUS25YN.js} +1 -1
  98. package/dist/chunks/{chunk.C2GI7AW5.js → chunk.OBK2DHZB.js} +1 -1
  99. package/dist/chunks/{chunk.DTRA3OZD.js → chunk.PL7FGR6O.js} +11 -9
  100. package/dist/chunks/{chunk.MONMQF4P.js → chunk.QOTRG3SW.js} +1 -1
  101. package/dist/chunks/{chunk.AD6Q7RQZ.js → chunk.S4KNUHFV.js} +1 -1
  102. package/dist/chunks/{chunk.6CMGI6X2.js → chunk.VC7GDGXF.js} +1 -1
  103. package/dist/chunks/{chunk.7OU2KJ5C.js → chunk.WNBLXX3K.js} +34 -16
  104. package/dist/chunks/{chunk.RUSQQASU.js → chunk.ZK6Y3PH5.js} +5 -1
  105. package/dist/components/accordion-group/accordion-group.js +1 -1
  106. package/dist/components/alert/alert.js +1 -1
  107. package/dist/components/button/button.js +1 -1
  108. package/dist/components/callout/callout.js +1 -1
  109. package/dist/components/checkbox/checkbox.d.ts +2 -0
  110. package/dist/components/checkbox/checkbox.js +2 -2
  111. package/dist/components/checkbox/checkbox.styles.js +1 -1
  112. package/dist/components/checkbox-button/checkbox-button.js +2 -2
  113. package/dist/components/checkbox-card/checkbox-card.js +2 -2
  114. package/dist/components/combobox/combobox.js +2 -2
  115. package/dist/components/dialog/dialog.js +1 -1
  116. package/dist/components/drawer/drawer.js +1 -1
  117. package/dist/components/file-upload/file-upload.d.ts +0 -1
  118. package/dist/components/file-upload/file-upload.js +1 -1
  119. package/dist/components/filter-counter/filter-counter.js +3 -3
  120. package/dist/components/filter-date/filter-date.js +3 -3
  121. package/dist/components/filter-range/filter-range.js +4 -4
  122. package/dist/components/filter-select/filter-select.js +3 -3
  123. package/dist/components/header-search/header-search.js +2 -2
  124. package/dist/components/icon-button/icon-button.js +1 -1
  125. package/dist/components/input/input.js +2 -2
  126. package/dist/components/input-amount/input-amount.js +1 -1
  127. package/dist/components/input-date/input-date.js +2 -2
  128. package/dist/components/input-native/input-native.js +1 -1
  129. package/dist/components/input-otp/input-otp.js +1 -1
  130. package/dist/components/input-phone/input-phone.js +3 -3
  131. package/dist/components/input-time/input-time.js +1 -1
  132. package/dist/components/menu-accordion/menu-accordion.d.ts +2 -1
  133. package/dist/components/menu-accordion/menu-accordion.js +1 -1
  134. package/dist/components/menu-navigation/menu-navigation.d.ts +5 -0
  135. package/dist/components/menu-navigation/menu-navigation.js +1 -1
  136. package/dist/components/navbar-link/navbar-link.js +1 -1
  137. package/dist/components/navbar-menu/navbar-menu.js +1 -1
  138. package/dist/components/pagination/pagination.js +2 -2
  139. package/dist/components/quote/quote.js +1 -1
  140. package/dist/components/radio-button/radio-button.js +2 -2
  141. package/dist/components/radio-card/radio-card.js +2 -2
  142. package/dist/components/range-slider/range-slider.js +1 -1
  143. package/dist/components/search/search.js +1 -1
  144. package/dist/components/select/select.js +2 -2
  145. package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
  146. package/dist/components/switch/switch.js +1 -1
  147. package/dist/components/tab/tab.js +1 -1
  148. package/dist/components/tab-group/tab-group.js +1 -1
  149. package/dist/components/table-action/table-action.d.ts +2 -0
  150. package/dist/components/table-action/table-action.js +1 -1
  151. package/dist/components/table-container/table-container.js +1 -1
  152. package/dist/components/table-header-row/table-header-row.js +3 -3
  153. package/dist/components/table-row/table-row.js +3 -3
  154. package/dist/components/tag/tag.js +1 -1
  155. package/dist/components/tree/tree.js +2 -2
  156. package/dist/components/tree-item/tree-item.js +2 -2
  157. package/dist/custom-elements.json +150 -108
  158. package/dist/design-system.js +22 -22
  159. package/dist/internal/components/date-field/date-field.js +2 -0
  160. package/dist/internal/components/form-selectable-card/form-selectable-card.js +3 -7
  161. package/dist/internal/components/form-toggle-button/form-toggle-button.js +2 -6
  162. package/dist/vscode.html-custom-data.json +18 -7
  163. package/dist/web-types.json +84 -39
  164. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@ds-autonomie/web-components",
4
- "version": "2.11.1",
4
+ "version": "2.12.0",
5
5
  "description-markup": "markdown",
6
6
  "framework-config": {
7
7
  "enable-when": {
@@ -2644,39 +2644,6 @@
2644
2644
  },
2645
2645
  "attributes": []
2646
2646
  },
2647
- {
2648
- "name": "dsa-checkbox-card",
2649
- "description": "",
2650
- "js": {
2651
- "properties": [
2652
- {
2653
- "name": "type",
2654
- "value": {
2655
- "type": "'checkbox'"
2656
- }
2657
- },
2658
- {
2659
- "name": "handleClick",
2660
- "value": {}
2661
- },
2662
- {
2663
- "name": "handleErrorChange",
2664
- "value": {}
2665
- }
2666
- ],
2667
- "events": [
2668
- {
2669
- "name": "dsa-blur",
2670
- "description": "Emitted when the card loses focus."
2671
- },
2672
- {
2673
- "name": "dsa-focus",
2674
- "description": "Emitted when the card gains focus."
2675
- }
2676
- ]
2677
- },
2678
- "attributes": []
2679
- },
2680
2647
  {
2681
2648
  "name": "dsa-checkbox-group",
2682
2649
  "description": "",
@@ -3003,6 +2970,39 @@
3003
2970
  }
3004
2971
  ]
3005
2972
  },
2973
+ {
2974
+ "name": "dsa-checkbox-card",
2975
+ "description": "",
2976
+ "js": {
2977
+ "properties": [
2978
+ {
2979
+ "name": "type",
2980
+ "value": {
2981
+ "type": "'checkbox'"
2982
+ }
2983
+ },
2984
+ {
2985
+ "name": "handleClick",
2986
+ "value": {}
2987
+ },
2988
+ {
2989
+ "name": "handleErrorChange",
2990
+ "value": {}
2991
+ }
2992
+ ],
2993
+ "events": [
2994
+ {
2995
+ "name": "dsa-blur",
2996
+ "description": "Emitted when the card loses focus."
2997
+ },
2998
+ {
2999
+ "name": "dsa-focus",
3000
+ "description": "Emitted when the card gains focus."
3001
+ }
3002
+ ]
3003
+ },
3004
+ "attributes": []
3005
+ },
3006
3006
  {
3007
3007
  "name": "dsa-combobox",
3008
3008
  "description": "",
@@ -4956,10 +4956,6 @@
4956
4956
  "name": "handleChange",
4957
4957
  "value": {}
4958
4958
  },
4959
- {
4960
- "name": "handleFileSelectedChange",
4961
- "value": {}
4962
- },
4963
4959
  {
4964
4960
  "name": "handleInvalid",
4965
4961
  "value": {}
@@ -9108,6 +9104,14 @@
9108
9104
  "name": "handleSummaryKeyDown",
9109
9105
  "value": {}
9110
9106
  },
9107
+ {
9108
+ "name": "updateChildrenClassName",
9109
+ "value": {}
9110
+ },
9111
+ {
9112
+ "name": "handleDefaultSlotChange",
9113
+ "value": {}
9114
+ },
9111
9115
  {
9112
9116
  "name": "getTextSummary",
9113
9117
  "description": "Returns a text label based on the contents of the summary slot.",
@@ -9404,14 +9408,41 @@
9404
9408
  "type": "HTMLSlotElement"
9405
9409
  }
9406
9410
  },
9411
+ {
9412
+ "name": "level",
9413
+ "description": "(internal) The level of the parent menu accordion",
9414
+ "value": {
9415
+ "type": "1 | 2"
9416
+ }
9417
+ },
9418
+ {
9419
+ "name": "updateChildrenClassName",
9420
+ "value": {}
9421
+ },
9422
+ {
9423
+ "name": "handleSlotChange",
9424
+ "value": {}
9425
+ },
9407
9426
  {
9408
9427
  "name": "handleKeyDown",
9409
9428
  "value": {}
9429
+ },
9430
+ {
9431
+ "name": "handleLevelChange",
9432
+ "value": {}
9410
9433
  }
9411
9434
  ],
9412
9435
  "events": []
9413
9436
  },
9414
- "attributes": []
9437
+ "attributes": [
9438
+ {
9439
+ "name": "level",
9440
+ "description": "(internal) The level of the parent menu accordion",
9441
+ "value": {
9442
+ "type": "1 | 2"
9443
+ }
9444
+ }
9445
+ ]
9415
9446
  },
9416
9447
  {
9417
9448
  "name": "dsa-mutation-observer",
@@ -14389,6 +14420,13 @@
14389
14420
  "type": "boolean"
14390
14421
  }
14391
14422
  },
14423
+ {
14424
+ "name": "deselectAllOnClose",
14425
+ "description": "Should deselect all rows on close",
14426
+ "value": {
14427
+ "type": "boolean"
14428
+ }
14429
+ },
14392
14430
  {
14393
14431
  "name": "handleClose",
14394
14432
  "value": {}
@@ -14408,6 +14446,13 @@
14408
14446
  "value": {
14409
14447
  "type": "boolean"
14410
14448
  }
14449
+ },
14450
+ {
14451
+ "name": "deselect-all-on-close",
14452
+ "description": "Should deselect all rows on close",
14453
+ "value": {
14454
+ "type": "boolean"
14455
+ }
14411
14456
  }
14412
14457
  ]
14413
14458
  },
@@ -192,7 +192,7 @@ var FormToggleButton = class extends ShoelaceElement {
192
192
  this.emit("dsa-focus");
193
193
  }
194
194
  handleDeactivatedChange() {
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 FormToggleButton = 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
  if (!this.hasSlotController.test("[default]")) {
214
213
  a11yWarning(
215
214
  `<dsa-${this.type}-card> requires an accessible name in the default slot for accessibility`
@@ -235,7 +234,7 @@ var FormToggleButton = class extends ShoelaceElement {
235
234
  "button--checkbox": this.type === "checkbox"
236
235
  })}
237
236
  ?disabled=${isDisabled}
238
- aria-disabled=${ifDefined(isDeactivated ? "true" : void 0)}
237
+ aria-disabled=${ifDefined(isReadonly ? "true" : void 0)}
239
238
  aria-invalid=${ifDefined(
240
239
  this.type === "checkbox" && this.error ? "true" : void 0
241
240
  )}
@@ -59,6 +59,19 @@ var DSATableContainer = class extends LoadingStateElement {
59
59
  }
60
60
  handleTableActionsClose() {
61
61
  this.showTableActions = false;
62
+ const actionBar = this.querySelector("dsa-table-action");
63
+ const headerRow = this.querySelector(
64
+ "dsa-table-header-row"
65
+ );
66
+ if (actionBar && headerRow && actionBar.deselectAllOnClose) {
67
+ const tableRows = [
68
+ ...this.querySelectorAll("dsa-table-row")
69
+ ];
70
+ tableRows.forEach((row) => row.selected = false);
71
+ headerRow.checkbox.checked = false;
72
+ headerRow.checkbox.indeterminate = false;
73
+ headerRow.selected = false;
74
+ }
62
75
  }
63
76
  handleTableSelection(event) {
64
77
  this.showTableActions = event.detail.selectedRows.length > 0;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6SOP54V7.js";
4
4
  import {
5
5
  FormSelectableCard
6
- } from "./chunk.SBO2HJFC.js";
6
+ } from "./chunk.CHUBPDIO.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.7627FYPL.js";
@@ -493,6 +493,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
493
493
  class=${className}
494
494
  ?disabled=${this.disabled}
495
495
  ?readonly=${this.readonly}
496
+ aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
496
497
  ?required=${this.required}
497
498
  aria-label=${`${ariaLabel} - ${this.parentName}`}
498
499
  aria-describedby="description"
@@ -530,6 +531,7 @@ var DSAInternalDateField = class extends ShoelaceElement {
530
531
  name=${ifDefinedAndNotEmpty(this.name)}
531
532
  ?disabled=${this.disabled}
532
533
  ?readonly=${this.readonly}
534
+ aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
533
535
  ?required=${this.required}
534
536
  min=${ifDefined(this.min)}
535
537
  max=${ifDefined(this.max)}
@@ -185,7 +185,7 @@ var FormSelectableCard = class extends ShoelaceElement {
185
185
  this.emit("dsa-focus");
186
186
  }
187
187
  handleDisabledChange() {
188
- if (this.disabled || this.readonly || this.parentDisabled || this.parentReadonly) {
188
+ if (this.readonly || this.parentReadonly) {
189
189
  this.button.setAttribute("aria-disabled", "true");
190
190
  } else {
191
191
  this.button.removeAttribute("aria-disabled");
@@ -202,7 +202,6 @@ var FormSelectableCard = class extends ShoelaceElement {
202
202
  render() {
203
203
  const isDisabled = this.disabled || this.parentDisabled;
204
204
  const isReadonly = this.readonly || this.parentReadonly;
205
- const isDeactivated = isDisabled || isReadonly;
206
205
  return html`
207
206
  <div part="base">
208
207
  <button
@@ -224,7 +223,7 @@ var FormSelectableCard = class extends ShoelaceElement {
224
223
  "selectable-card--contrasted-borders": this.contrastedBorders
225
224
  })}
226
225
  ?disabled=${isDisabled}
227
- aria-disabled=${ifDefined(isDeactivated ? "true" : void 0)}
226
+ aria-disabled=${ifDefined(isReadonly ? "true" : void 0)}
228
227
  aria-invalid=${ifDefined(
229
228
  this.type === "checkbox" && this.error ? "true" : void 0
230
229
  )}
@@ -312,7 +311,7 @@ __decorateClass([
312
311
  property({ type: Boolean, reflect: true, attribute: "contrasted-borders" })
313
312
  ], FormSelectableCard.prototype, "contrastedBorders", 2);
314
313
  __decorateClass([
315
- watch(["disabled", "readonly", "parentDisabled", "parentReadonly"], {
314
+ watch(["readonly", "parentReadonly"], {
316
315
  waitUntilFirstUpdate: true
317
316
  })
318
317
  ], FormSelectableCard.prototype, "handleDisabledChange", 1);
@@ -96,7 +96,7 @@ var DSAIconButton = class extends ShoelaceElement {
96
96
  isLink && this.target ? "noreferrer noopener" : void 0
97
97
  )}
98
98
  role=${ifDefined(isLink ? void 0 : "button")}
99
- aria-disabled=${this.disabled ? "true" : "false"}
99
+ aria-disabled=${ifDefined(this.disabled && isLink ? "true" : void 0)}
100
100
  aria-pressed=${ifDefined(this.toggle ? this.pressed : void 0)}
101
101
  aria-label=${ifDefinedAndNotEmpty(this.label)}
102
102
  aria-describedby="description"
@@ -59,10 +59,6 @@ var checkbox_styles_default = css`
59
59
  outline-offset: var(--dsa-wc-focus-ring-offset);
60
60
  }
61
61
 
62
- .checkbox__label:not(.checkbox--disabled) {
63
- display: none;
64
- }
65
-
66
62
  .checkbox--has-label .checkbox__label:not(.checkbox--disabled) {
67
63
  display: inline-block;
68
64
  color: var(--dsa-wc-checkbox-color);
@@ -183,9 +183,7 @@ var DSASwitch = class extends ShoelaceElement {
183
183
  .required=${this.required}
184
184
  role="switch"
185
185
  aria-checked=${this.checked ? "true" : "false"}
186
- aria-disabled=${ifDefined(
187
- this.disabled || this.readonly ? "true" : void 0
188
- )}
186
+ aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
189
187
  @click=${this.handleClick}
190
188
  @input=${this.handleInput}
191
189
  @invalid=${this.handleInvalid}
@@ -108,32 +108,13 @@ var DSAFileUpload = class extends ShoelaceElement {
108
108
  handleClick() {
109
109
  this.fileUploadInput.click();
110
110
  }
111
- handleChange(event) {
112
- const addedFiles = this.handleFileSelectedChange(event);
111
+ handleChange() {
112
+ var _a;
113
+ const addedFiles = Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
113
114
  this.emit("dsa-file-upload", { detail: { files: addedFiles } });
114
115
  this.value = this.fileUploadInput.value;
115
116
  this.formControlController.updateValidity();
116
117
  }
117
- handleFileSelectedChange(event) {
118
- var _a, _b;
119
- if (!this.accept || !/^(change|drop)$/.test(event.type)) {
120
- return Array.from((_a = this.fileUploadInput.files) != null ? _a : []);
121
- }
122
- if (((_b = this.fileUploadInput) == null ? void 0 : _b.files) === null) {
123
- return [];
124
- }
125
- const acceptedTypes = new Set(this.accept.split(", "));
126
- return Array.prototype.filter.call(
127
- this.fileUploadInput.files,
128
- (file) => {
129
- var _a2;
130
- const fileExtensionRegExp = /\.[^.]+$/;
131
- const hasFileExtension = fileExtensionRegExp.test(file.name);
132
- const [fileExtension] = !hasFileExtension ? [void 0] : (_a2 = fileExtensionRegExp.exec(file.name)) != null ? _a2 : [];
133
- return acceptedTypes.has(file.type) || fileExtension && acceptedTypes.has(fileExtension);
134
- }
135
- );
136
- }
137
118
  handleInvalid(event) {
138
119
  this.formControlController.setValidity(false);
139
120
  this.formControlController.emitInvalidEvent(event);
@@ -239,7 +220,6 @@ var DSAFileUpload = class extends ShoelaceElement {
239
220
  "button--disabled": this.disabled
240
221
  })}
241
222
  ?disabled=${this.disabled}
242
- aria-disabled=${this.disabled ? "true" : "false"}
243
223
  aria-required=${ifDefined(this.required ? "true" : void 0)}
244
224
  aria-invalid=${ifDefined(this.error ? "true" : void 0)}
245
225
  tabindex=${this.disabled ? "-1" : "0"}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DSASelect
3
- } from "./chunk.MONMQF4P.js";
3
+ } from "./chunk.QOTRG3SW.js";
4
4
  import {
5
5
  input_phone_styles_default
6
6
  } from "./chunk.LGIV2ORI.js";
@@ -151,7 +151,6 @@ var DSARangeSlider = class extends ShoelaceElement {
151
151
  max=${ifDefined(this.max)}
152
152
  ?disabled=${this.disabled}
153
153
  aria-label=${ifDefinedAndNotEmpty(this.labelFrom)}
154
- aria-disabled=${this.disabled}
155
154
  @input=${this.onFromSliderInputChange}
156
155
  @focus=${this.handleFromSliderFocus}
157
156
  @blur=${this.handleFromSliderBlur}
@@ -169,7 +168,6 @@ var DSARangeSlider = class extends ShoelaceElement {
169
168
  max=${ifDefined(this.max)}
170
169
  ?disabled=${this.disabled}
171
170
  aria-label=${ifDefinedAndNotEmpty(this.labelTo)}
172
- aria-disabled=${this.disabled}
173
171
  @input=${this.onToSliderInputChange}
174
172
  @focus=${this.handleToSliderFocus}
175
173
  @blur=${this.handleToSliderBlur}
@@ -693,7 +693,7 @@ var DSACombobox = class extends FormControlLayout {
693
693
  aria-label=${ifDefinedAndNotEmpty(
694
694
  hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
695
695
  )}
696
- aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
696
+ aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
697
697
  aria-describedby=${this.getDescriptionIds()}
698
698
  aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
699
699
  aria-invalid=${ifDefined(this.error ? "true" : void 0)}
@@ -255,9 +255,6 @@ var DSAFilterDate = class extends FilterBase {
255
255
  )}
256
256
  @dsa-change=${this.handleChange}
257
257
  ?disabled=${this.disabled}
258
- aria-disabled=${ifDefined(
259
- this.disabled || this.readonly ? "true" : void 0
260
- )}
261
258
  ?readonly=${this.readonly}
262
259
  parent-name=${this.range ? `${this.label} - ${this.localize.term("startDate")}` : this.label}
263
260
  description=${this.getDescriptionText("start")}
@@ -274,9 +271,6 @@ var DSAFilterDate = class extends FilterBase {
274
271
  .value=${(_a = parseDateRange(this.value)[1]) != null ? _a : ""}
275
272
  @dsa-change=${this.handleChange}
276
273
  ?disabled=${this.disabled}
277
- aria-disabled=${ifDefined(
278
- this.disabled || this.readonly ? "true" : void 0
279
- )}
280
274
  ?readonly=${this.readonly}
281
275
  parent-name=${`${this.label} - ${this.localize.term(
282
276
  "endDate"
@@ -52,15 +52,6 @@ var DSAMenuAccordion = class extends ShoelaceElement {
52
52
  this.collapsed = false;
53
53
  this.sidenavInfo = false;
54
54
  }
55
- connectedCallback() {
56
- super.connectedCallback();
57
- const menuNavigation = this.querySelector(
58
- "dsa-menu-navigation"
59
- );
60
- if (menuNavigation !== null) {
61
- menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
62
- }
63
- }
64
55
  firstUpdated() {
65
56
  this.body.hidden = !this.open;
66
57
  this.body.style.height = this.open ? "auto" : "0";
@@ -91,6 +82,19 @@ var DSAMenuAccordion = class extends ShoelaceElement {
91
82
  this.show();
92
83
  }
93
84
  }
85
+ updateChildrenClassName() {
86
+ const menuNavigation = this.querySelector(
87
+ "dsa-menu-navigation"
88
+ );
89
+ if (menuNavigation !== null) {
90
+ menuNavigation.level = this.level;
91
+ menuNavigation == null ? void 0 : menuNavigation.classList.remove("level-1", "level-2");
92
+ menuNavigation == null ? void 0 : menuNavigation.classList.add(this.level === 2 ? "level-2" : "level-1");
93
+ }
94
+ }
95
+ handleDefaultSlotChange() {
96
+ this.updateChildrenClassName();
97
+ }
94
98
  /** Returns a text label based on the contents of the summary slot. */
95
99
  getTextSummary(widthBadge = false) {
96
100
  var _a, _b, _c, _d;
@@ -152,16 +156,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
152
156
  }
153
157
  }
154
158
  handleLevelChange() {
155
- const menuNavigation = this.querySelector(
156
- "dsa-menu-navigation"
157
- );
158
- if (menuNavigation !== null) {
159
- if (this.level === 2) {
160
- menuNavigation.classList.add("level-2");
161
- } else {
162
- menuNavigation.classList.remove("level-2");
163
- }
164
- }
159
+ this.updateChildrenClassName();
165
160
  }
166
161
  async handleExpandedChange() {
167
162
  await this.updateComplete;
@@ -257,6 +252,7 @@ var DSAMenuAccordion = class extends ShoelaceElement {
257
252
  id="content"
258
253
  class="menu-accordion__content"
259
254
  aria-labelledby="header"
255
+ @slotchange=${this.handleDefaultSlotChange}
260
256
  ></slot>
261
257
  </div>
262
258
  </div>
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FormToggleButton
3
- } from "./chunk.FE77T4YV.js";
3
+ } from "./chunk.2NY5MPRL.js";
4
4
  import {
5
5
  DSACheckboxGroup
6
6
  } from "./chunk.UF4PZMAF.js";
@@ -231,7 +231,7 @@ var DSAButton = class extends ShoelaceElement {
231
231
  (_a = this.accessibleName) != null ? _a : this.ariaLabel
232
232
  )}
233
233
  aria-describedby="description"
234
- aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
234
+ aria-disabled=${ifDefined(this.disabled && isLink ? "true" : void 0)}
235
235
  aria-pressed=${ifDefined(this.toggle ? this.pressed : void 0)}
236
236
  tabindex=${ifDefined(this.disabled ? "-1" : void 0)}
237
237
  @blur=${this.handleBlur}
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.6QDM5FUA.js";
10
10
  import {
11
11
  checkbox_styles_default
12
- } from "./chunk.5NAZU6VJ.js";
12
+ } from "./chunk.HFNQK43R.js";
13
13
  import {
14
14
  FormControlController
15
15
  } from "./chunk.APQFQQX5.js";
@@ -107,7 +107,7 @@ var DSACheckbox = class extends ShoelaceElement {
107
107
  this.emit("dsa-focus");
108
108
  }
109
109
  handleDeactivatedChange() {
110
- if (this.disabled || this.readonly || this.parentDisabled || this.parentReadonly) {
110
+ if (this.readonly || this.parentReadonly) {
111
111
  this.input.setAttribute("aria-disabled", "true");
112
112
  } else {
113
113
  this.input.removeAttribute("aria-disabled");
@@ -160,7 +160,7 @@ var DSACheckbox = class extends ShoelaceElement {
160
160
  this.formControlController.updateValidity();
161
161
  }
162
162
  render() {
163
- var _a, _b, _c;
163
+ var _a, _b, _c, _d;
164
164
  const hasLabelSlot = this.hasSlotController.test("[default]");
165
165
  const isDisabled = this.disabled || this.parentDisabled;
166
166
  const isReadonly = this.readonly || this.parentReadonly;
@@ -187,7 +187,6 @@ var DSACheckbox = class extends ShoelaceElement {
187
187
  })}
188
188
  >
189
189
  <label
190
- for="input"
191
190
  class=${classMap({
192
191
  checkbox: true,
193
192
  "checkbox--checked": this.checked,
@@ -213,12 +212,11 @@ var DSACheckbox = class extends ShoelaceElement {
213
212
  .checked=${live(this.checked)}
214
213
  .disabled=${isDisabled}
215
214
  .required=${this.required}
216
- aria-label=${ifDefinedAndNotEmpty(
217
- (_b = this.accessibleName) != null ? _b : this.ariaLabel
215
+ aria-label=${ifDefined(
216
+ !hasLabelSlot ? (_b = this.accessibleName) != null ? _b : this.title : void 0
218
217
  )}
219
- aria-checked=${this.checked ? "true" : "false"}
220
218
  aria-describedby=${ifDefined(this.error ? "error-text" : void 0)}
221
- aria-disabled="${ifDefined(isDeactivated ? "true" : void 0)}"
219
+ aria-disabled="${ifDefined(isReadonly ? "true" : void 0)}"
222
220
  aria-invalid=${ifDefined(this.error ? "true" : void 0)}
223
221
  @click=${this.handleClick}
224
222
  @input=${this.handleInput}
@@ -239,7 +237,11 @@ var DSACheckbox = class extends ShoelaceElement {
239
237
 
240
238
  <div part="label" class="checkbox__label">
241
239
  ${this.required ? html`<span class="checkbox__label-required">*</span>` : ""}
242
- <slot></slot>
240
+ <slot
241
+ ><dsa-visually-hidden
242
+ >${(_d = this.accessibleName) != null ? _d : this.title}</dsa-visually-hidden
243
+ ></slot
244
+ >
243
245
  </div>
244
246
  </label>
245
247
  ${this.error && !isDeactivated && this.errorMessage ? renderFormElementErrors(this.errorMessage) : ""}
@@ -530,7 +530,7 @@ var DSASelect = class extends FormControlLayout {
530
530
  aria-label=${ifDefinedAndNotEmpty(
531
531
  hasLabel ? void 0 : (_b = this.accessibleName) != null ? _b : this.title
532
532
  )}
533
- aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
533
+ aria-disabled=${ifDefined(this.readonly ? "true" : void 0)}
534
534
  aria-describedby=${this.getDescriptionIds()}
535
535
  aria-activedescendant=${(_d = (_c = this.currentOption) == null ? void 0 : _c.id) != null ? _d : ""}
536
536
  aria-invalid=${ifDefined(this.error ? "true" : void 0)}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6SOP54V7.js";
4
4
  import {
5
5
  FormToggleButton
6
- } from "./chunk.FE77T4YV.js";
6
+ } from "./chunk.2NY5MPRL.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.7627FYPL.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FormSelectableCard
3
- } from "./chunk.SBO2HJFC.js";
3
+ } from "./chunk.CHUBPDIO.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.7627FYPL.js";