@ds-autonomie/web-components 1.7.0 → 1.8.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 (198) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/chunks/{chunk.ADVUEL4K.js → chunk.22WSILHD.js} +1 -1
  3. package/dist/chunks/{chunk.AQC66RY2.js → chunk.2AEUQXKH.js} +18 -1
  4. package/dist/chunks/chunk.2AHY5V6G.js +25 -0
  5. package/dist/chunks/{chunk.RBJL56T2.js → chunk.43PVVN7Q.js} +1 -1
  6. package/dist/chunks/chunk.5L7UO75X.js +17 -0
  7. package/dist/chunks/chunk.65JZEQ4F.js +33 -0
  8. package/dist/chunks/{chunk.7PKGNYXP.js → chunk.6A2LWKQY.js} +22 -1
  9. package/dist/chunks/chunk.6OP6GCU4.js +89 -0
  10. package/dist/chunks/{chunk.HXH4JLAN.js → chunk.6RX5APL3.js} +1 -1
  11. package/dist/chunks/{chunk.XVDH3KHQ.js → chunk.7KYHO6CO.js} +4 -2
  12. package/dist/chunks/{chunk.ZCKAXIC4.js → chunk.7UXBTLEE.js} +2 -2
  13. package/dist/chunks/{chunk.7FSWPNRP.js → chunk.7XNMTM6N.js} +1 -1
  14. package/dist/chunks/{chunk.X6ZGA6WS.js → chunk.A5II52AY.js} +20 -6
  15. package/dist/chunks/{chunk.AJ4QV4YB.js → chunk.ADG7SYDH.js} +2 -2
  16. package/dist/chunks/chunk.AFFFEIW7.js +154 -0
  17. package/dist/chunks/chunk.AHPXKIVU.js +24 -0
  18. package/dist/chunks/{chunk.MCMUWBT5.js → chunk.AXJZDS4O.js} +6 -1
  19. package/dist/chunks/{chunk.D5MIBH2P.js → chunk.B3VBH7AS.js} +44 -178
  20. package/dist/chunks/{chunk.K2ICEURU.js → chunk.B5DEC3ZW.js} +15 -2
  21. package/dist/chunks/{chunk.YDCBGMSA.js → chunk.BEGWFCAR.js} +28 -0
  22. package/dist/chunks/chunk.C33YMWL6.js +33 -0
  23. package/dist/chunks/{chunk.PCJUYERL.js → chunk.C7BQI7NH.js} +1 -1
  24. package/dist/chunks/chunk.CHKVYEHB.js +53 -0
  25. package/dist/chunks/{chunk.R5PR2MDK.js → chunk.CW4YJC4U.js} +1 -1
  26. package/dist/chunks/{chunk.GXQ7CTJX.js → chunk.D2VOYAK5.js} +9 -3
  27. package/dist/chunks/{chunk.5T654YBW.js → chunk.DFH66YHJ.js} +1 -1
  28. package/dist/chunks/{chunk.R4PCVUXB.js → chunk.DIC5NUF5.js} +32 -10
  29. package/dist/chunks/{chunk.B6CXFMFM.js → chunk.DJDCH3MP.js} +1 -1
  30. package/dist/chunks/{chunk.QBPZ6I5Q.js → chunk.DMP5NRB3.js} +2 -2
  31. package/dist/chunks/{chunk.GENB7E6Z.js → chunk.DNSF5O4C.js} +1 -1
  32. package/dist/chunks/{chunk.5LSEWF5M.js → chunk.F4KJFS2T.js} +1 -1
  33. package/dist/chunks/{chunk.L5HKY6WB.js → chunk.F6EDQPCA.js} +4 -4
  34. package/dist/chunks/chunk.FWOMF5BY.js +23 -0
  35. package/dist/chunks/{chunk.PZTXAAW2.js → chunk.H7OOLAC7.js} +1 -1
  36. package/dist/chunks/chunk.HB7A2UQ7.js +16 -0
  37. package/dist/chunks/chunk.HL632DKM.js +86 -0
  38. package/dist/chunks/{chunk.GS7HSU6O.js → chunk.HWR5JOYI.js} +1 -1
  39. package/dist/chunks/{chunk.CWMR6PEK.js → chunk.HXWTBL6A.js} +1 -1
  40. package/dist/chunks/{chunk.Z2QW2HUR.js → chunk.ICD5HBUY.js} +5 -2
  41. package/dist/chunks/{chunk.LSECPSSR.js → chunk.IDMVVAVX.js} +1 -1
  42. package/dist/chunks/{chunk.Z6TBD2AC.js → chunk.INLQD4SQ.js} +1 -2
  43. package/dist/chunks/{chunk.PQD7VKIK.js → chunk.JGWZGEQY.js} +1 -1
  44. package/dist/chunks/chunk.K55HKFUM.js +55 -0
  45. package/dist/chunks/{chunk.KG6MIENB.js → chunk.KY6SFO3D.js} +1 -1
  46. package/dist/chunks/{chunk.Y5M7ZKHX.js → chunk.KZIAHLAV.js} +38 -0
  47. package/dist/chunks/{chunk.TFMB54OO.js → chunk.L5YSEAAK.js} +1 -1
  48. package/dist/chunks/chunk.M2SPGS54.js +31 -0
  49. package/dist/chunks/{chunk.4ABNA6LY.js → chunk.MIO6K4QD.js} +1 -1
  50. package/dist/chunks/{chunk.ZR7AGQFC.js → chunk.MUBB5GXY.js} +1 -1
  51. package/dist/chunks/chunk.MVKY65HC.js +33 -0
  52. package/dist/chunks/{chunk.UTAUMIPE.js → chunk.MZMKGGW2.js} +1 -1
  53. package/dist/chunks/chunk.N6EX6BDJ.js +128 -0
  54. package/dist/chunks/chunk.NEIICCKM.js +211 -0
  55. package/dist/chunks/{chunk.AXG2LFB3.js → chunk.O3TGEE3I.js} +2 -1
  56. package/dist/chunks/chunk.OBTE6PY7.js +41 -0
  57. package/dist/chunks/chunk.OIWFTO2A.js +156 -0
  58. package/dist/chunks/{chunk.YZ66DKLU.js → chunk.OQ2AY2BC.js} +1 -1
  59. package/dist/chunks/chunk.OSR4H2UW.js +17 -0
  60. package/dist/chunks/chunk.PO3AZ63O.js +18 -0
  61. package/dist/chunks/{chunk.XRHDURFE.js → chunk.Q255SJAB.js} +1 -1
  62. package/dist/chunks/chunk.RB5YRDTE.js +77 -0
  63. package/dist/chunks/{chunk.EBCLOXNV.js → chunk.SEH7BBNZ.js} +1 -1
  64. package/dist/chunks/chunk.TB6DCJYX.js +57 -0
  65. package/dist/chunks/{chunk.FKKOUYXE.js → chunk.TFXRULTL.js} +2 -2
  66. package/dist/chunks/{chunk.SL4M42DS.js → chunk.TRMEXXU2.js} +4 -4
  67. package/dist/chunks/{chunk.RC2LGXYT.js → chunk.VN7U4QIC.js} +1 -1
  68. package/dist/chunks/{chunk.WGN7OZLZ.js → chunk.VZIVZSLP.js} +3 -2
  69. package/dist/chunks/{chunk.NIYQMA5Y.js → chunk.WMEXYRBL.js} +1 -1
  70. package/dist/chunks/{chunk.IAKOROM4.js → chunk.WTGBJNXJ.js} +1 -1
  71. package/dist/chunks/{chunk.ZQQCFKOX.js → chunk.XEZX466O.js} +1 -1
  72. package/dist/chunks/{chunk.7RMRIPUN.js → chunk.YF45VJOV.js} +1 -1
  73. package/dist/chunks/chunk.Z4V2DJQS.js +44 -0
  74. package/dist/chunks/chunk.ZBTNUV7V.js +26 -0
  75. package/dist/chunks/{chunk.2PVIV5ZH.js → chunk.ZCNXAXKX.js} +9 -4
  76. package/dist/components/accordion/accordion.js +3 -2
  77. package/dist/components/alert/alert.js +6 -5
  78. package/dist/components/alert/alert.styles.js +1 -1
  79. package/dist/components/breadcrumb/breadcrumb.js +3 -2
  80. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -2
  81. package/dist/components/button/button.d.ts +2 -0
  82. package/dist/components/button/button.js +4 -3
  83. package/dist/components/checkbox/checkbox.d.ts +2 -0
  84. package/dist/components/checkbox/checkbox.js +3 -3
  85. package/dist/components/checkbox/checkbox.styles.js +2 -2
  86. package/dist/components/checkbox-group/checkbox-group.d.ts +4 -0
  87. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  88. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  89. package/dist/components/combobox/combobox.js +9 -8
  90. package/dist/components/combobox/combobox.styles.js +2 -2
  91. package/dist/components/dialog/dialog.js +5 -4
  92. package/dist/components/drawer/drawer.js +5 -4
  93. package/dist/components/dropdown/dropdown.js +3 -2
  94. package/dist/components/error-message-panel/error-message-panel.js +3 -2
  95. package/dist/components/file-upload/file-upload.js +3 -3
  96. package/dist/components/file-upload/file-upload.styles.js +2 -2
  97. package/dist/components/format-bytes/format-bytes.js +3 -2
  98. package/dist/components/format-date/format-date.js +3 -2
  99. package/dist/components/format-number/format-number.js +3 -2
  100. package/dist/components/icon-button/icon-button.d.ts +2 -0
  101. package/dist/components/icon-button/icon-button.js +2 -2
  102. package/dist/components/icon-button/icon-button.styles.js +1 -1
  103. package/dist/components/input/input.js +5 -4
  104. package/dist/components/input/input.styles.js +2 -2
  105. package/dist/components/input-mask/input-mask.js +5 -4
  106. package/dist/components/input-mask/input-mask.styles.js +2 -2
  107. package/dist/components/input-phone/input-phone.js +13 -12
  108. package/dist/components/input-phone/input-phone.styles.js +2 -2
  109. package/dist/components/option/option.js +3 -2
  110. package/dist/components/pagination/pagination.d.ts +33 -0
  111. package/dist/components/pagination/pagination.js +37 -0
  112. package/dist/components/pagination/pagination.styles.d.ts +2 -0
  113. package/dist/components/pagination/pagination.styles.js +8 -0
  114. package/dist/components/pagination-button/pagination-button.d.ts +27 -0
  115. package/dist/components/pagination-button/pagination-button.js +12 -0
  116. package/dist/components/pagination-button/pagination-button.styles.d.ts +2 -0
  117. package/dist/components/pagination-button/pagination-button.styles.js +9 -0
  118. package/dist/components/progress-bar/progress-bar.js +3 -2
  119. package/dist/components/radio/radio.js +2 -2
  120. package/dist/components/radio/radio.styles.js +1 -1
  121. package/dist/components/radio-group/radio-group.d.ts +4 -0
  122. package/dist/components/radio-group/radio-group.js +4 -3
  123. package/dist/components/radio-group/radio-group.styles.js +2 -2
  124. package/dist/components/relative-time/relative-time.js +3 -2
  125. package/dist/components/select/select.js +8 -7
  126. package/dist/components/select/select.styles.js +2 -2
  127. package/dist/components/spinner/spinner.js +3 -2
  128. package/dist/components/step/step.js +3 -2
  129. package/dist/components/tab/tab.js +3 -2
  130. package/dist/components/tab-group/tab-group.js +3 -2
  131. package/dist/components/table/defs.d.ts +6 -0
  132. package/dist/components/table/defs.js +9 -0
  133. package/dist/components/table/table-body/table-body.d.ts +19 -0
  134. package/dist/components/table/table-body/table-body.js +10 -0
  135. package/dist/components/table/table-body/table-body.styles.d.ts +2 -0
  136. package/dist/components/table/table-body/table-body.styles.js +8 -0
  137. package/dist/components/table/table-caption/table-caption.d.ts +21 -0
  138. package/dist/components/table/table-caption/table-caption.js +13 -0
  139. package/dist/components/table/table-caption/table-caption.styles.d.ts +2 -0
  140. package/dist/components/table/table-caption/table-caption.styles.js +8 -0
  141. package/dist/components/table/table-cell/table-cell.d.ts +19 -0
  142. package/dist/components/table/table-cell/table-cell.js +10 -0
  143. package/dist/components/table/table-cell/table-cell.styles.d.ts +2 -0
  144. package/dist/components/table/table-cell/table-cell.styles.js +8 -0
  145. package/dist/components/table/table-head/table-head.d.ts +19 -0
  146. package/dist/components/table/table-head/table-head.js +10 -0
  147. package/dist/components/table/table-head/table-head.styles.d.ts +2 -0
  148. package/dist/components/table/table-head/table-head.styles.js +8 -0
  149. package/dist/components/table/table-header-cell/table-header-cell.d.ts +44 -0
  150. package/dist/components/table/table-header-cell/table-header-cell.js +15 -0
  151. package/dist/components/table/table-header-cell/table-header-cell.styles.d.ts +2 -0
  152. package/dist/components/table/table-header-cell/table-header-cell.styles.js +8 -0
  153. package/dist/components/table/table-header-row/table-header-row.d.ts +17 -0
  154. package/dist/components/table/table-header-row/table-header-row.js +12 -0
  155. package/dist/components/table/table-header-row/table-header-row.styles.d.ts +2 -0
  156. package/dist/components/table/table-header-row/table-header-row.styles.js +8 -0
  157. package/dist/components/table/table-row/table-row.d.ts +23 -0
  158. package/dist/components/table/table-row/table-row.js +10 -0
  159. package/dist/components/table/table-row/table-row.styles.d.ts +2 -0
  160. package/dist/components/table/table-row/table-row.styles.js +8 -0
  161. package/dist/components/table/table.d.ts +30 -0
  162. package/dist/components/table/table.js +11 -0
  163. package/dist/components/table/table.styles.d.ts +2 -0
  164. package/dist/components/table/table.styles.js +8 -0
  165. package/dist/components/table/types.d.ts +5 -0
  166. package/dist/components/table/types.js +12 -0
  167. package/dist/components/table-container/table-container.d.ts +17 -0
  168. package/dist/components/table-container/table-container.js +10 -0
  169. package/dist/components/table-container/table-container.styles.d.ts +2 -0
  170. package/dist/components/table-container/table-container.styles.js +8 -0
  171. package/dist/components/tag/tag.d.ts +2 -0
  172. package/dist/components/tag/tag.js +5 -4
  173. package/dist/components/textarea/textarea.js +3 -3
  174. package/dist/components/textarea/textarea.styles.js +2 -2
  175. package/dist/components/tooltip/tooltip.js +3 -2
  176. package/dist/components/tree/tree.js +8 -7
  177. package/dist/components/tree-item/tree-item.js +7 -6
  178. package/dist/custom-elements.json +5302 -3882
  179. package/dist/design-system.d.ts +11 -0
  180. package/dist/design-system.js +145 -88
  181. package/dist/events/dsa-page-change.d.ts +9 -0
  182. package/dist/events/dsa-page-change.js +1 -0
  183. package/dist/events/dsa-table-header-cell-sort.d.ts +11 -0
  184. package/dist/events/dsa-table-header-cell-sort.js +1 -0
  185. package/dist/events/events.d.ts +2 -0
  186. package/dist/internal/components/button-group/button-group.js +1 -1
  187. package/dist/styles/form-control.styles.js +2 -1
  188. package/dist/themes/dsa-wc-theme.css +63 -0
  189. package/dist/themes/dsa-wc-theme.min.css +1 -1
  190. package/dist/themes/dsa-wc-theme.styles.js +68 -0
  191. package/dist/translations/en-gb.js +2 -1
  192. package/dist/translations/en.js +2 -1
  193. package/dist/translations/fr.js +2 -1
  194. package/dist/utilities/localize.d.ts +11 -0
  195. package/dist/utilities/localize.js +2 -1
  196. package/dist/vscode.html-custom-data.json +484 -262
  197. package/dist/web-types.json +1896 -1189
  198. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ds-autonomie/web-components
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 528b8e9: `button`: ajout de l'attribut `aria-label` au composant button
8
+ - 30065d7: `table-caption`: implémentation du composant titre d'un tableau
9
+ - 72bf5d4: `icon-button` : ajout d'un attribut `size`
10
+ - 964b78a: `radio`, `checkbox`, `radio-group`, `checkbox-group` : ajout d'un attribut readonly
11
+ - 2e3fbdb: `table`, `table-header-cell`: ajout de la fonctionnalité de tri sur les composants `table` et `table-header-cell`
12
+ - d60a66a: `pagination` : ajout du composant pagination
13
+ - f2db84c: `table-container`: implémentation du composant table-container
14
+ - 5ceccb1: `table`, `table-row`, `table-cell`, `table-head`, `table-body`, `table-header-cell`, `table-header-row`: implémentation du composant `table` et de ses sous-composants
15
+
3
16
  ## 1.7.0
4
17
 
5
18
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.Y5M7ZKHX.js";
3
+ } from "./chunk.KZIAHLAV.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  form_control_styles_default
3
- } from "./chunk.AXG2LFB3.js";
3
+ } from "./chunk.O3TGEE3I.js";
4
4
  import {
5
5
  component_styles_default
6
6
  } from "./chunk.TUVJKY7S.js";
@@ -275,6 +275,23 @@ var input_styles_default = css`
275
275
  ::-ms-reveal {
276
276
  display: none;
277
277
  }
278
+
279
+ /* Pagination page number input */
280
+ :host(.pagination__input) input {
281
+ padding-inline: var(--dsa-spacing-4);
282
+ text-align: center;
283
+ }
284
+ /* Hide the browser's up and down arrow in input number for the pagination on mobile */
285
+ @media screen and (max-width: 420px) {
286
+ :host(.pagination__input) input::-webkit-outer-spin-button,
287
+ input::-webkit-inner-spin-button {
288
+ -webkit-appearance: none;
289
+ margin: 0;
290
+ }
291
+ input[type='number'] {
292
+ -moz-appearance: textfield;
293
+ }
294
+ }
278
295
  `;
279
296
 
280
297
  export {
@@ -0,0 +1,25 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/table/table-header-row/table-header-row.styles.ts
6
+ import { css } from "lit";
7
+ var table_header_row_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host {
11
+ display: table-row;
12
+ outline: none;
13
+ font: var(--dsa-wc-table-header-row-font);
14
+ background: var(--dsa-wc-table-header-row-background);
15
+ color: var(--dsa-wc-table-header-row-color);
16
+ }
17
+
18
+ ::slotted(dsa-table-header-cell) {
19
+ block-size: var(--dsa-wc-table-header-row-height);
20
+ }
21
+ `;
22
+
23
+ export {
24
+ table_header_row_styles_default
25
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.Y5M7ZKHX.js";
3
+ } from "./chunk.KZIAHLAV.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -0,0 +1,17 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/table/table-head/table-head.styles.ts
6
+ import { css } from "lit";
7
+ var table_head_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host {
11
+ display: table-header-group;
12
+ }
13
+ `;
14
+
15
+ export {
16
+ table_head_styles_default
17
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ table_head_styles_default
3
+ } from "./chunk.5L7UO75X.js";
4
+ import {
5
+ ShoelaceElement
6
+ } from "./chunk.YCXTCVAZ.js";
7
+ import {
8
+ __decorateClass
9
+ } from "./chunk.6M63UXML.js";
10
+
11
+ // src/components/table/table-head/table-head.ts
12
+ import { html } from "lit";
13
+ import { customElement, property } from "lit/decorators.js";
14
+ var DSATableHead = class extends ShoelaceElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.role = "rowgroup";
18
+ }
19
+ render() {
20
+ return html` <slot></slot> `;
21
+ }
22
+ };
23
+ DSATableHead.styles = table_head_styles_default;
24
+ __decorateClass([
25
+ property({ reflect: true })
26
+ ], DSATableHead.prototype, "role", 2);
27
+ DSATableHead = __decorateClass([
28
+ customElement("dsa-table-head")
29
+ ], DSATableHead);
30
+
31
+ export {
32
+ DSATableHead
33
+ };
@@ -3,7 +3,10 @@ import {
3
3
  } from "./chunk.WFHOSUOX.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.Y5M7ZKHX.js";
6
+ } from "./chunk.KZIAHLAV.js";
7
+ import {
8
+ watch
9
+ } from "./chunk.6IH66JBY.js";
7
10
  import {
8
11
  ifDefinedAndNotEmpty
9
12
  } from "./chunk.ZQJVCRB2.js";
@@ -22,6 +25,7 @@ var DSATag = class extends ShoelaceElement {
22
25
  constructor() {
23
26
  super(...arguments);
24
27
  this.localize = new LocalizeController(this);
28
+ this.iconButtonSize = "small";
25
29
  this.disableRemovableFocus = false;
26
30
  this.variant = "purple-100";
27
31
  this.size = "medium";
@@ -31,6 +35,19 @@ var DSATag = class extends ShoelaceElement {
31
35
  handleRemoveClick() {
32
36
  this.emit("dsa-remove");
33
37
  }
38
+ updateIconButtonSize() {
39
+ switch (this.size) {
40
+ case "small":
41
+ this.iconButtonSize = "xsmall";
42
+ break;
43
+ case "medium":
44
+ this.iconButtonSize = "small";
45
+ break;
46
+ case "large":
47
+ this.iconButtonSize = "medium";
48
+ break;
49
+ }
50
+ }
34
51
  render() {
35
52
  return html`
36
53
  <span
@@ -61,6 +78,7 @@ var DSATag = class extends ShoelaceElement {
61
78
  name="close"
62
79
  label=${`${this.localize.term("remove")} ${this.label}`}
63
80
  class="tag__remove"
81
+ size=${this.iconButtonSize}
64
82
  @click=${this.handleRemoveClick}
65
83
  ?disable-tab-index=${this.disableRemovableFocus}
66
84
  ></dsa-icon-button>
@@ -85,6 +103,9 @@ __decorateClass([
85
103
  __decorateClass([
86
104
  property()
87
105
  ], DSATag.prototype, "label", 2);
106
+ __decorateClass([
107
+ watch("size")
108
+ ], DSATag.prototype, "updateIconButtonSize", 1);
88
109
  DSATag = __decorateClass([
89
110
  customElement("dsa-tag")
90
111
  ], DSATag);
@@ -0,0 +1,89 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/table/table-header-cell/table-header-cell.styles.ts
6
+ import { css } from "lit";
7
+ var table_header_cell_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host {
11
+ display: table-cell;
12
+ padding: var(--dsa-wc-table-header-cell-padding-y)
13
+ var(--dsa-wc-table-header-cell-padding-x);
14
+ vertical-align: middle;
15
+ text-align: start;
16
+ }
17
+
18
+ :host(:hover) {
19
+ background: var(--dsa-wc-table-header-cell-background-hover);
20
+ }
21
+
22
+ :host([sortable]) {
23
+ padding: 0px;
24
+ }
25
+
26
+ :host([alignment='left']) {
27
+ text-align: start;
28
+ }
29
+
30
+ :host([alignment='right']) {
31
+ text-align: end;
32
+ }
33
+
34
+ [part~='sort-button'] {
35
+ appearance: none;
36
+ padding: var(--dsa-wc-table-header-cell-padding-y)
37
+ var(--dsa-wc-table-header-cell-padding-x);
38
+ cursor: pointer;
39
+ background: inherit;
40
+ font: inherit;
41
+ border: none;
42
+ display: flex;
43
+ align-items: center;
44
+ gap: var(--dsa-spacing-8);
45
+ min-block-size: 100%;
46
+ width: 100%;
47
+ }
48
+
49
+ [part~='sort-button']:active {
50
+ background: var(--dsa-wc-table-header-cell-background-active);
51
+ }
52
+
53
+ [part~='sort-button']:focus-visible {
54
+ outline: var(--dsa-wc-focus-ring);
55
+ outline-offset: var(--dsa-wc-table-header-cell-sort-button-outline-offset);
56
+ }
57
+
58
+ .sort-button--align-right {
59
+ flex-direction: row-reverse;
60
+ justify-content: flex-start;
61
+ }
62
+
63
+ .sort-button--align-left {
64
+ justify-content: flex-start;
65
+ }
66
+
67
+ .sort-button-icon {
68
+ height: var(--dsa-wc-table-header-cell-sort-icon-size);
69
+ width: var(--dsa-wc-table-header-cell-sort-icon-size);
70
+ color: transparent;
71
+ }
72
+
73
+ .sort-button--icon--ascending,
74
+ .sort-button--icon--descending {
75
+ color: inherit;
76
+ }
77
+
78
+ .sort-button--icon--ascending {
79
+ transform: rotate(0);
80
+ }
81
+
82
+ .sort-button--icon--descending {
83
+ transform: rotate(-180deg);
84
+ }
85
+ `;
86
+
87
+ export {
88
+ table_header_cell_styles_default
89
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  form_control_styles_default
3
- } from "./chunk.AXG2LFB3.js";
3
+ } from "./chunk.O3TGEE3I.js";
4
4
  import {
5
5
  component_styles_default
6
6
  } from "./chunk.TUVJKY7S.js";
@@ -85,8 +85,10 @@ var radio_styles_default = css`
85
85
  }
86
86
 
87
87
  /* Hover */
88
- .radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover,
89
- .radio:hover:not(.radio--checked):not(.radio--disabled) .radio__control {
88
+ .radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly)
89
+ .radio__control:hover,
90
+ .radio:hover:not(.radio--checked):not(.radio--disabled):not(.radio--readonly)
91
+ .radio__control {
90
92
  border-color: var(--dsa-wc-radio-color-hover);
91
93
  }
92
94
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DSATreeItem
3
- } from "./chunk.EBCLOXNV.js";
3
+ } from "./chunk.SEH7BBNZ.js";
4
4
  import {
5
5
  tree_styles_default
6
6
  } from "./chunk.73T7TU6S.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.Y5M7ZKHX.js";
9
+ } from "./chunk.KZIAHLAV.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk.6IH66JBY.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk.V7RJROLH.js";
25
25
  import {
26
26
  LocalizeController
27
- } from "./chunk.Y5M7ZKHX.js";
27
+ } from "./chunk.KZIAHLAV.js";
28
28
  import {
29
29
  watch
30
30
  } from "./chunk.6IH66JBY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkbox_group_styles_default
3
- } from "./chunk.HXH4JLAN.js";
3
+ } from "./chunk.6RX5APL3.js";
4
4
  import {
5
5
  FormControlController,
6
6
  customErrorValidityState,
@@ -42,6 +42,8 @@ var DSACheckboxGroup = class extends ShoelaceElement {
42
42
  this.value = [];
43
43
  this.form = "";
44
44
  this.required = false;
45
+ this.disabled = false;
46
+ this.readonly = false;
45
47
  this.horizontal = false;
46
48
  this.error = false;
47
49
  this.errorMessage = "";
@@ -89,7 +91,7 @@ var DSACheckboxGroup = class extends ShoelaceElement {
89
91
  if (!target) {
90
92
  return;
91
93
  }
92
- if (target.disabled || "readonly" in target && target.readonly) {
94
+ if (target.disabled || target.readonly) {
93
95
  return;
94
96
  }
95
97
  const oldValue = this.value;
@@ -111,7 +113,7 @@ var DSACheckboxGroup = class extends ShoelaceElement {
111
113
  const target = event.target;
112
114
  if (event.key === " ") {
113
115
  event.preventDefault();
114
- if (target.disabled || "readonly" in target && target.readonly) {
116
+ if (target.disabled || target.readonly) {
115
117
  return;
116
118
  }
117
119
  target.checked = !target.checked;
@@ -135,9 +137,15 @@ var DSACheckboxGroup = class extends ShoelaceElement {
135
137
  var _a;
136
138
  if (customElements.get("dsa-checkbox") || customElements.get("dsa-checkbox-button")) {
137
139
  const checkboxes = this.getAllCheckboxes();
138
- checkboxes.forEach(
139
- (checkbox) => checkbox.checked = this.value.includes(checkbox.value)
140
- );
140
+ checkboxes.forEach((checkbox) => {
141
+ if (this.disabled) {
142
+ checkbox.disabled = true;
143
+ }
144
+ if (this.readonly) {
145
+ checkbox.readonly = true;
146
+ }
147
+ checkbox.checked = this.value.includes(checkbox.value);
148
+ });
141
149
  this.hasCheckboxButtons = checkboxes.some(
142
150
  (checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-button"
143
151
  );
@@ -349,6 +357,12 @@ __decorateClass([
349
357
  __decorateClass([
350
358
  property({ type: Boolean, reflect: true })
351
359
  ], DSACheckboxGroup.prototype, "required", 2);
360
+ __decorateClass([
361
+ property({ type: Boolean, reflect: true })
362
+ ], DSACheckboxGroup.prototype, "disabled", 2);
363
+ __decorateClass([
364
+ property({ type: Boolean, reflect: true })
365
+ ], DSACheckboxGroup.prototype, "readonly", 2);
352
366
  __decorateClass([
353
367
  property({ type: Boolean })
354
368
  ], DSACheckboxGroup.prototype, "horizontal", 2);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  select_styles_default
3
- } from "./chunk.Z2QW2HUR.js";
3
+ } from "./chunk.ICD5HBUY.js";
4
4
  import {
5
5
  scrollIntoView
6
6
  } from "./chunk.EMIT7S33.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk.V7RJROLH.js";
27
27
  import {
28
28
  LocalizeController
29
- } from "./chunk.Y5M7ZKHX.js";
29
+ } from "./chunk.KZIAHLAV.js";
30
30
  import {
31
31
  watch
32
32
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,154 @@
1
+ import {
2
+ ShoelaceElement
3
+ } from "./chunk.YCXTCVAZ.js";
4
+ import {
5
+ component_styles_default
6
+ } from "./chunk.TUVJKY7S.js";
7
+ import {
8
+ __decorateClass
9
+ } from "./chunk.6M63UXML.js";
10
+
11
+ // src/internal/components/button-group/button-group.ts
12
+ import { html } from "lit";
13
+ import { customElement, property, query, state } from "lit/decorators.js";
14
+ import { classMap } from "lit/directives/class-map.js";
15
+
16
+ // src/internal/components/button-group/button-group.styles.ts
17
+ import { css } from "lit";
18
+ var button_group_styles_default = css`
19
+ ${component_styles_default}
20
+
21
+ :host {
22
+ display: inline-block;
23
+ }
24
+
25
+ .button-group {
26
+ display: flex;
27
+ flex-wrap: wrap;
28
+ gap: var(--dsa-spacing-8);
29
+ }
30
+
31
+ .button-group--squeezed {
32
+ gap: 0;
33
+ }
34
+
35
+ .button-group--vertical {
36
+ flex-direction: column;
37
+ min-width: 120px;
38
+ max-width: 400px;
39
+ }
40
+
41
+ .button-group--horizontal {
42
+ flex-direction: row;
43
+ }
44
+ `;
45
+
46
+ // src/internal/components/button-group/button-group.ts
47
+ var DSAInternalButtonGroup = class extends ShoelaceElement {
48
+ constructor() {
49
+ super(...arguments);
50
+ this.disableRole = false;
51
+ this.label = "";
52
+ this.squeezed = false;
53
+ this.horizontal = false;
54
+ }
55
+ handleFocus(event) {
56
+ const button = findButton(event.target);
57
+ button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
58
+ }
59
+ handleBlur(event) {
60
+ const button = findButton(event.target);
61
+ button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
62
+ }
63
+ handleMouseOver(event) {
64
+ const button = findButton(event.target);
65
+ button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
66
+ }
67
+ handleMouseOut(event) {
68
+ const button = findButton(event.target);
69
+ button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
70
+ }
71
+ handleSlotChange() {
72
+ const slottedElements = [
73
+ ...this.defaultSlot.assignedElements({ flatten: true })
74
+ ];
75
+ slottedElements.forEach((el) => {
76
+ const index = slottedElements.indexOf(el);
77
+ const button = findButton(el);
78
+ if (button !== null) {
79
+ button.classList.add("dsa-button-group__button");
80
+ if (this.squeezed) {
81
+ button.classList.toggle(
82
+ "dsa-button-group__button--first",
83
+ index === 0
84
+ );
85
+ button.classList.toggle(
86
+ "dsa-button-group__button--inner",
87
+ index > 0 && index < slottedElements.length - 1
88
+ );
89
+ button.classList.toggle(
90
+ "dsa-button-group__button--last",
91
+ index === slottedElements.length - 1
92
+ );
93
+ }
94
+ button.classList.toggle(
95
+ "dsa-button-group__button--radio",
96
+ button.tagName.toLowerCase() === "dsa-radio-button"
97
+ );
98
+ button.classList.toggle(
99
+ "dsa-button-group__button--checkbox",
100
+ button.tagName.toLowerCase() === "dsa-checkbox-button"
101
+ );
102
+ button.classList.toggle(
103
+ "dsa-button-group__button--vertical",
104
+ !this.horizontal
105
+ );
106
+ }
107
+ });
108
+ }
109
+ render() {
110
+ return html`
111
+ <div
112
+ part="base"
113
+ class=${classMap({
114
+ "button-group": true,
115
+ "button-group--squeezed": this.squeezed,
116
+ "button-group--vertical": !this.horizontal,
117
+ "button-group--horizontal": this.horizontal
118
+ })}
119
+ role="${this.disableRole ? "presentation" : "group"}"
120
+ aria-label=${this.label}
121
+ @focusout=${this.handleBlur}
122
+ @focusin=${this.handleFocus}
123
+ @mouseover=${this.handleMouseOver}
124
+ @mouseout=${this.handleMouseOut}
125
+ >
126
+ <slot @slotchange=${this.handleSlotChange}></slot>
127
+ </div>
128
+ `;
129
+ }
130
+ };
131
+ DSAInternalButtonGroup.styles = button_group_styles_default;
132
+ __decorateClass([
133
+ query("slot")
134
+ ], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
135
+ __decorateClass([
136
+ state()
137
+ ], DSAInternalButtonGroup.prototype, "disableRole", 2);
138
+ __decorateClass([
139
+ property()
140
+ ], DSAInternalButtonGroup.prototype, "label", 2);
141
+ __decorateClass([
142
+ property({ type: Boolean })
143
+ ], DSAInternalButtonGroup.prototype, "squeezed", 2);
144
+ __decorateClass([
145
+ property({ type: Boolean })
146
+ ], DSAInternalButtonGroup.prototype, "horizontal", 2);
147
+ DSAInternalButtonGroup = __decorateClass([
148
+ customElement("dsa-internal-button-group")
149
+ ], DSAInternalButtonGroup);
150
+ function findButton(el) {
151
+ var _a;
152
+ const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button, dsa-pagination-button";
153
+ return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
154
+ }
@@ -0,0 +1,24 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/table/table-cell/table-cell.styles.ts
6
+ import { css } from "lit";
7
+ var table_cell_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host {
11
+ position: relative;
12
+ display: table-cell;
13
+ padding: var(--dsa-wc-table-cell-padding-y)
14
+ var(--dsa-wc-table-cell-padding-x);
15
+ border-block-end: var(--dsa-wc-table-cell-border-size) solid
16
+ var(--dsa-wc-table-cell-border-color);
17
+ vertical-align: middle;
18
+ text-align: start;
19
+ }
20
+ `;
21
+
22
+ export {
23
+ table_cell_styles_default
24
+ };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.DXQY7NLW.js";
11
11
  import {
12
12
  LocalizeController
13
- } from "./chunk.Y5M7ZKHX.js";
13
+ } from "./chunk.KZIAHLAV.js";
14
14
  import {
15
15
  watch
16
16
  } from "./chunk.6IH66JBY.js";
@@ -64,6 +64,7 @@ var DSAButton = class extends ShoelaceElement {
64
64
  this.value = "";
65
65
  this.href = "";
66
66
  this.rel = "noreferrer noopener";
67
+ this.ariaLabel = "";
67
68
  }
68
69
  /** Gets the validity state object */
69
70
  get validity() {
@@ -205,6 +206,7 @@ var DSAButton = class extends ShoelaceElement {
205
206
  download=${ifDefined(isLink ? this.download : void 0)}
206
207
  rel=${ifDefined(isLink ? this.rel : void 0)}
207
208
  role=${ifDefined(isLink ? void 0 : "button")}
209
+ aria-label=${ifDefinedAndNotEmpty(this.ariaLabel)}
208
210
  aria-disabled=${this.disabled ? "true" : "false"}
209
211
  tabindex=${this.disabled ? "-1" : "0"}
210
212
  @blur=${this.handleBlur}
@@ -299,6 +301,9 @@ __decorateClass([
299
301
  __decorateClass([
300
302
  property({ attribute: "formtarget" })
301
303
  ], DSAButton.prototype, "formTarget", 2);
304
+ __decorateClass([
305
+ property({ attribute: "aria-label" })
306
+ ], DSAButton.prototype, "ariaLabel", 2);
302
307
  __decorateClass([
303
308
  watch("disabled", { waitUntilFirstUpdate: true })
304
309
  ], DSAButton.prototype, "handleDisabledChange", 1);