@ds-autonomie/web-components 1.5.0 → 1.6.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 (119) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/chunks/{chunk.AO3M5GSN.js → chunk.2SUJL5O6.js} +1 -1
  3. package/dist/chunks/{chunk.ZU3MRZA4.js → chunk.5YABZV2L.js} +1 -1
  4. package/dist/chunks/{chunk.XV2S7PIY.js → chunk.6DSM44NV.js} +1 -1
  5. package/dist/chunks/{chunk.5ND4OP7Q.js → chunk.6SWOU4CL.js} +1 -1
  6. package/dist/chunks/{chunk.OVCI74KS.js → chunk.6Y5VNWAK.js} +7 -7
  7. package/dist/chunks/{chunk.E7NM6WTF.js → chunk.7F5X7SQN.js} +1 -1
  8. package/dist/chunks/chunk.ATDDIVPX.js +87 -0
  9. package/dist/chunks/{chunk.5DKPV25M.js → chunk.B5NS5VQR.js} +1 -1
  10. package/dist/chunks/{chunk.HCQNPYQZ.js → chunk.CBFLGIED.js} +1 -1
  11. package/dist/chunks/{chunk.OIS5HMFT.js → chunk.CHM74JXS.js} +21 -2
  12. package/dist/chunks/{chunk.RVUFDCSS.js → chunk.CICCL52W.js} +1 -1
  13. package/dist/chunks/{chunk.7BYKP4SA.js → chunk.CKDL37GT.js} +2 -0
  14. package/dist/chunks/{chunk.TUZ72ZDQ.js → chunk.CSQ2UP6E.js} +4 -4
  15. package/dist/chunks/{chunk.WF42CVOM.js → chunk.DDLGH65N.js} +4 -4
  16. package/dist/chunks/{chunk.DXP3BNWO.js → chunk.DUJFQEVS.js} +1 -1
  17. package/dist/chunks/chunk.EVHNFCQF.js +121 -0
  18. package/dist/chunks/{chunk.FSXPFNBX.js → chunk.FFFHQKNB.js} +1 -1
  19. package/dist/chunks/{chunk.LC54322H.js → chunk.FYTGBKGY.js} +8 -4
  20. package/dist/chunks/{chunk.YZHYOXYA.js → chunk.HCI6BR7B.js} +24 -69
  21. package/dist/chunks/{chunk.P7QMP76I.js → chunk.HDSA2CY2.js} +1 -1
  22. package/dist/chunks/{chunk.BNJQHJKO.js → chunk.KFZV2L7L.js} +1 -1
  23. package/dist/chunks/{chunk.CWD6PMVD.js → chunk.KGPFHLUW.js} +1 -1
  24. package/dist/chunks/chunk.KUXAIXES.js +69 -0
  25. package/dist/chunks/{chunk.VRU3XH45.js → chunk.M3FN3PFT.js} +1 -1
  26. package/dist/chunks/{chunk.SCNCYZ35.js → chunk.M7UZ33WG.js} +1 -1
  27. package/dist/chunks/{chunk.IH3JU5S6.js → chunk.NMOENRSD.js} +1 -1
  28. package/dist/chunks/{chunk.ZI2RZQPZ.js → chunk.NQSQUH4H.js} +4 -4
  29. package/dist/chunks/{chunk.7J7CS3BK.js → chunk.O2PIWM25.js} +1 -1
  30. package/dist/chunks/chunk.Q62BRBYD.js +68 -0
  31. package/dist/chunks/{chunk.I33L3NO6.js → chunk.RB6TMBWW.js} +5 -0
  32. package/dist/chunks/{chunk.D2QVNPSR.js → chunk.RJBMUBMI.js} +4 -4
  33. package/dist/chunks/{chunk.T4H7RAXS.js → chunk.RV652CSU.js} +4 -4
  34. package/dist/chunks/{chunk.5QKVQDMN.js → chunk.RXBDBWWT.js} +12 -1
  35. package/dist/chunks/{chunk.PCT24AYO.js → chunk.VLRL3RJT.js} +1 -1
  36. package/dist/chunks/chunk.WI3DWLXW.js +99 -0
  37. package/dist/chunks/{chunk.BGNHUCCD.js → chunk.WK3IHF2A.js} +1 -1
  38. package/dist/chunks/{chunk.INCMVGXU.js → chunk.WLJH2IWB.js} +1 -1
  39. package/dist/chunks/chunk.X3FXKNLH.js +92 -0
  40. package/dist/chunks/{chunk.4XH7INOL.js → chunk.XQZX6LVO.js} +1 -1
  41. package/dist/chunks/{chunk.BHLKMLHB.js → chunk.YS2LUMKB.js} +33 -23
  42. package/dist/chunks/{chunk.N5ZXUW7H.js → chunk.Z7QPOCQO.js} +1 -1
  43. package/dist/chunks/{chunk.DX25IW4S.js → chunk.ZC74GTBL.js} +4 -0
  44. package/dist/components/accordion/accordion.d.ts +3 -1
  45. package/dist/components/accordion/accordion.js +7 -7
  46. package/dist/components/accordion/accordion.styles.js +1 -1
  47. package/dist/components/alert/alert.js +6 -6
  48. package/dist/components/avatar/avatar.js +5 -5
  49. package/dist/components/breadcrumb/breadcrumb.js +6 -6
  50. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  51. package/dist/components/button/button.js +7 -7
  52. package/dist/components/checkbox/checkbox.js +4 -4
  53. package/dist/components/checkbox-button/checkbox-button.js +4 -4
  54. package/dist/components/combobox/combobox.d.ts +8 -15
  55. package/dist/components/combobox/combobox.js +8 -9
  56. package/dist/components/dialog/dialog.js +7 -7
  57. package/dist/components/download-card/download-card.d.ts +35 -0
  58. package/dist/components/download-card/download-card.js +19 -0
  59. package/dist/components/download-card/download-card.styles.d.ts +2 -0
  60. package/dist/components/download-card/download-card.styles.js +7 -0
  61. package/dist/components/download-link/download-link.d.ts +36 -0
  62. package/dist/components/download-link/download-link.js +19 -0
  63. package/dist/components/download-link/download-link.styles.d.ts +2 -0
  64. package/dist/components/download-link/download-link.styles.js +7 -0
  65. package/dist/components/drawer/drawer.js +7 -7
  66. package/dist/components/dropdown/dropdown.js +2 -2
  67. package/dist/components/error-message-panel/error-message-panel.d.ts +23 -0
  68. package/dist/components/error-message-panel/error-message-panel.js +11 -0
  69. package/dist/components/error-message-panel/error-message-panel.styles.d.ts +2 -0
  70. package/dist/components/error-message-panel/error-message-panel.styles.js +7 -0
  71. package/dist/components/format-bytes/format-bytes.js +2 -2
  72. package/dist/components/format-date/format-date.js +2 -2
  73. package/dist/components/format-number/format-number.js +2 -2
  74. package/dist/components/icon/icon.js +4 -4
  75. package/dist/components/icon/library.js +2 -2
  76. package/dist/components/icon/library.system.js +1 -1
  77. package/dist/components/icon-button/icon-button.js +4 -4
  78. package/dist/components/input/input.js +7 -7
  79. package/dist/components/input-mask/input-mask.js +2 -2
  80. package/dist/components/input-phone/input-phone.js +13 -13
  81. package/dist/components/menu-item/menu-item.js +4 -4
  82. package/dist/components/option/option.js +6 -6
  83. package/dist/components/progress-bar/progress-bar.js +2 -2
  84. package/dist/components/radio/radio.js +4 -4
  85. package/dist/components/relative-time/relative-time.js +2 -2
  86. package/dist/components/select/select.js +7 -7
  87. package/dist/components/skip-link-item/skip-link-item.d.ts +5 -0
  88. package/dist/components/skip-link-item/skip-link-item.js +1 -1
  89. package/dist/components/skip-links/skip-links.d.ts +1 -0
  90. package/dist/components/skip-links/skip-links.js +2 -2
  91. package/dist/components/skip-links/skip-links.styles.js +1 -1
  92. package/dist/components/spinner/spinner.js +2 -2
  93. package/dist/components/step/step.js +7 -7
  94. package/dist/components/tab/tab.js +2 -2
  95. package/dist/components/tab-group/tab-group.js +2 -2
  96. package/dist/components/tag/tag.js +6 -6
  97. package/dist/components/tooltip/tooltip.js +2 -2
  98. package/dist/components/tree/tree.js +9 -9
  99. package/dist/components/tree-item/tree-item.js +7 -7
  100. package/dist/custom-elements.json +475 -60
  101. package/dist/design-system.d.ts +3 -0
  102. package/dist/design-system.js +92 -78
  103. package/dist/themes/dsa-wc-theme.css +127 -18
  104. package/dist/themes/dsa-wc-theme.min.css +1 -1
  105. package/dist/themes/dsa-wc-theme.styles.js +134 -18
  106. package/dist/translations/en-gb.js +1 -1
  107. package/dist/translations/en.js +1 -1
  108. package/dist/translations/fr.js +1 -1
  109. package/dist/utilities/icon-library.js +2 -2
  110. package/dist/utilities/localize.d.ts +1 -0
  111. package/dist/utilities/localize.js +1 -1
  112. package/dist/utilities/storybook.d.ts +1 -0
  113. package/dist/utilities/storybook.js +23 -0
  114. package/dist/vscode.html-custom-data.json +109 -3
  115. package/dist/web-types.json +272 -28
  116. package/package.json +2 -2
  117. package/dist/chunks/chunk.HRBNFVC5.js +0 -16
  118. package/dist/utilities/debounce.d.ts +0 -1
  119. package/dist/utilities/debounce.js +0 -7
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.YIY5RM53.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.7BYKP4SA.js";
9
+ } from "./chunk.CKDL37GT.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.YCXTCVAZ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.2DGAEK66.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.7BYKP4SA.js";
6
+ } from "./chunk.CKDL37GT.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.6IH66JBY.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk.YIY5RM53.js";
18
18
  import {
19
19
  LocalizeController
20
- } from "./chunk.7BYKP4SA.js";
20
+ } from "./chunk.CKDL37GT.js";
21
21
  import {
22
22
  watch
23
23
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,69 @@
1
+ // src/components/error-message-panel/error-message-panel.styles.ts
2
+ import { css } from "lit";
3
+ var error_message_panel_styles_default = css`
4
+ [part~='base'] {
5
+ padding: 0 var(--dsa-wc-error-message-panel-container-x-padding);
6
+ background: var(--dsa-wc-error-message-panel-container-background-color);
7
+ }
8
+
9
+ .error-message-panel {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ padding: var(--dsa-wc-error-message-panel-y-padding) 0;
15
+ text-align: center;
16
+ gap: var(--dsa-spacing-24);
17
+ }
18
+
19
+ .top-left-quarter-circle {
20
+ display: flex;
21
+ justify-content: flex-start;
22
+ }
23
+
24
+ .bottom-right-quarter-circle {
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ }
28
+
29
+ [part~='title'],
30
+ [part~='title']::slotted(*) {
31
+ font: var(--dsa-wc-error-message-panel-title-font);
32
+ color: var(--dsa-wc-error-message-panel-title-color);
33
+ margin: 0 !important;
34
+ }
35
+
36
+ [part~='error-code'] {
37
+ display: none;
38
+ }
39
+
40
+ .error-message-panel--has-error-code [part~='error-code'] {
41
+ display: block;
42
+ font: var(--dsa-wc-error-message-panel-error-code-font);
43
+ color: var(--dsa-wc-error-message-panel-error-code-color);
44
+ margin: 0;
45
+ }
46
+
47
+ [part~='action'] {
48
+ display: none;
49
+ }
50
+
51
+ .error-message-panel--has-action [part~='action'] {
52
+ display: block;
53
+ }
54
+
55
+ [part~='description'] {
56
+ display: none;
57
+ }
58
+
59
+ .error-message-panel--has-description [part~='description'] {
60
+ display: block;
61
+ font: var(--dsa-wc-error-message-panel-description-font);
62
+ color: var(--dsa-wc-error-message-panel-description-color);
63
+ margin: 0;
64
+ }
65
+ `;
66
+
67
+ export {
68
+ error_message_panel_styles_default
69
+ };
@@ -2,7 +2,7 @@ import {
2
2
  getIconLibrary,
3
3
  unwatchIcon,
4
4
  watchIcon
5
- } from "./chunk.7J7CS3BK.js";
5
+ } from "./chunk.O2PIWM25.js";
6
6
  import {
7
7
  requestIcon
8
8
  } from "./chunk.23TOS4ZE.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.IGYXUK7A.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.7BYKP4SA.js";
6
+ } from "./chunk.CKDL37GT.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.7BYKP4SA.js";
3
+ } from "./chunk.CKDL37GT.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -1,15 +1,15 @@
1
- import {
2
- getStepIcon
3
- } from "./chunk.CCTWXABH.js";
4
1
  import {
5
2
  step_styles_default
6
3
  } from "./chunk.DQNPP74X.js";
4
+ import {
5
+ getStepIcon
6
+ } from "./chunk.CCTWXABH.js";
7
7
  import {
8
8
  HasSlotController
9
9
  } from "./chunk.YIY5RM53.js";
10
10
  import {
11
11
  LocalizeController
12
- } from "./chunk.7BYKP4SA.js";
12
+ } from "./chunk.CKDL37GT.js";
13
13
  import {
14
14
  ShoelaceElement
15
15
  } from "./chunk.YCXTCVAZ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.RDGMZ5XB.js";
4
4
  import {
5
5
  library_system_default
6
- } from "./chunk.I33L3NO6.js";
6
+ } from "./chunk.RB6TMBWW.js";
7
7
 
8
8
  // src/components/icon/library.ts
9
9
  var registry = [library_default_default, library_system_default];
@@ -0,0 +1,68 @@
1
+ import {
2
+ download_card_styles_default
3
+ } from "./chunk.WI3DWLXW.js";
4
+ import {
5
+ ShoelaceElement
6
+ } from "./chunk.YCXTCVAZ.js";
7
+ import {
8
+ __decorateClass
9
+ } from "./chunk.6M63UXML.js";
10
+
11
+ // src/components/download-card/download-card.ts
12
+ import { html } from "lit";
13
+ import { customElement, property } from "lit/decorators.js";
14
+ var DSADownloadCard = class extends ShoelaceElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.href = "";
18
+ }
19
+ handleFocus() {
20
+ this.emit("dsa-focus");
21
+ }
22
+ handleBlur() {
23
+ this.emit("dsa-blur");
24
+ }
25
+ render() {
26
+ return html`
27
+ <div part="base">
28
+ <slot name="image" part="image"></slot>
29
+ <div part="content">
30
+ <a
31
+ part="link"
32
+ download
33
+ href=${this.href}
34
+ @focus=${this.handleFocus}
35
+ @blur=${this.handleBlur}
36
+ >
37
+ <slot></slot>
38
+ </a>
39
+ ${this.description ? html` <p part="description">${this.description}</p> ` : ""}
40
+ <p part="document-info">
41
+ ${this.format}${this.format && this.documentSize ? " - " : ""}${this.documentSize}
42
+ </p>
43
+ </div>
44
+ <dsa-icon part="icon" name="download" library="system"></dsa-icon>
45
+ </div>
46
+ `;
47
+ }
48
+ };
49
+ DSADownloadCard.styles = download_card_styles_default;
50
+ __decorateClass([
51
+ property()
52
+ ], DSADownloadCard.prototype, "href", 2);
53
+ __decorateClass([
54
+ property()
55
+ ], DSADownloadCard.prototype, "description", 2);
56
+ __decorateClass([
57
+ property()
58
+ ], DSADownloadCard.prototype, "format", 2);
59
+ __decorateClass([
60
+ property({ attribute: "documentsize" })
61
+ ], DSADownloadCard.prototype, "documentSize", 2);
62
+ DSADownloadCard = __decorateClass([
63
+ customElement("dsa-download-card")
64
+ ], DSADownloadCard);
65
+
66
+ export {
67
+ DSADownloadCard
68
+ };
@@ -104,6 +104,11 @@ var icons = {
104
104
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
105
105
  <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
106
106
  </svg>
107
+ `,
108
+ download: `
109
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
110
+ <path d="M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM17 11L15.59 9.59L13 12.17V4H11V12.17L8.41 9.59L7 11L12 16L17 11Z" fill="currentColor"/>
111
+ </svg>
107
112
  `
108
113
  };
109
114
  var systemLibrary = {
@@ -1,6 +1,3 @@
1
- import {
2
- dialog_styles_default
3
- } from "./chunk.PQWQ42E2.js";
4
1
  import {
5
2
  Modal
6
3
  } from "./chunk.ISAFRNR2.js";
@@ -8,6 +5,9 @@ import {
8
5
  lockBodyScrolling,
9
6
  unlockBodyScrolling
10
7
  } from "./chunk.EMIT7S33.js";
8
+ import {
9
+ dialog_styles_default
10
+ } from "./chunk.PQWQ42E2.js";
11
11
  import {
12
12
  HasSlotController
13
13
  } from "./chunk.YIY5RM53.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk.V7RJROLH.js";
25
25
  import {
26
26
  LocalizeController
27
- } from "./chunk.7BYKP4SA.js";
27
+ } from "./chunk.CKDL37GT.js";
28
28
  import {
29
29
  watch
30
30
  } from "./chunk.6IH66JBY.js";
@@ -1,12 +1,12 @@
1
+ import {
2
+ DSATreeItem
3
+ } from "./chunk.6DSM44NV.js";
1
4
  import {
2
5
  tree_styles_default
3
6
  } from "./chunk.73T7TU6S.js";
4
- import {
5
- DSATreeItem
6
- } from "./chunk.XV2S7PIY.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.7BYKP4SA.js";
9
+ } from "./chunk.CKDL37GT.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk.6IH66JBY.js";
@@ -10,7 +10,7 @@ import {
10
10
 
11
11
  // src/components/skip-link-item/skip-link-item.ts
12
12
  import { html } from "lit";
13
- import { customElement, property } from "lit/decorators.js";
13
+ import { customElement, property, query } from "lit/decorators.js";
14
14
  var DSASkipLinkItem = class extends ShoelaceElement {
15
15
  constructor() {
16
16
  super(...arguments);
@@ -22,6 +22,14 @@ var DSASkipLinkItem = class extends ShoelaceElement {
22
22
  handleBlur() {
23
23
  this.emit("dsa-blur");
24
24
  }
25
+ /** Sets focus on the anchor. */
26
+ focus(options) {
27
+ this.anchor.focus(options);
28
+ }
29
+ /** Removes focus from the anchor. */
30
+ blur() {
31
+ this.anchor.blur();
32
+ }
25
33
  render() {
26
34
  return html`
27
35
  <a
@@ -37,6 +45,9 @@ var DSASkipLinkItem = class extends ShoelaceElement {
37
45
  }
38
46
  };
39
47
  DSASkipLinkItem.styles = skip_link_item_styles_default;
48
+ __decorateClass([
49
+ query("[part~='base']")
50
+ ], DSASkipLinkItem.prototype, "anchor", 2);
40
51
  __decorateClass([
41
52
  property()
42
53
  ], DSASkipLinkItem.prototype, "href", 2);
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.SGIGGO5M.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.7BYKP4SA.js";
6
+ } from "./chunk.CKDL37GT.js";
7
7
  import {
8
8
  ifDefinedAndNotEmpty
9
9
  } from "./chunk.ZQJVCRB2.js";
@@ -0,0 +1,99 @@
1
+ // src/components/download-card/download-card.styles.ts
2
+ import { css } from "lit";
3
+ var download_card_styles_default = css`
4
+ [part~='base'] {
5
+ position: relative;
6
+ display: flex;
7
+ background-color: var(--dsa-wc-download-card-background-color);
8
+ border: var(--dsa-wc-download-card-border-width) solid
9
+ var(--dsa-wc-download-card-border-color);
10
+ border-left: 0;
11
+ padding-left: var(--dsa-wc-download-card-left-bar-width);
12
+ padding-right: var(--dsa-spacing-24);
13
+ }
14
+ [part~='base']:after {
15
+ content: '';
16
+ position: absolute;
17
+ left: 0;
18
+ top: -1px;
19
+ bottom: -1px;
20
+ width: var(--dsa-wc-download-card-left-bar-width);
21
+ background: var(--dsa-wc-download-card-left-bar-color);
22
+ }
23
+ [part~='base']:hover {
24
+ border-color: var(--dsa-wc-download-card-border-color-hover);
25
+ box-shadow: var(--dsa-wc-download-card-box-shadow-hover);
26
+ }
27
+
28
+ [part~='image']::slotted(img) {
29
+ display: none;
30
+ }
31
+ @media only screen and (min-width: 600px) {
32
+ [part~='image']::slotted(img) {
33
+ display: unset;
34
+ width: 120px;
35
+ }
36
+ }
37
+
38
+ [part~='content'] {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: var(--dsa-spacing-8);
42
+ padding: var(--dsa-spacing-24) var(--dsa-spacing-16);
43
+ }
44
+
45
+ [part~='link'] {
46
+ font: var(--dsa-wc-download-card-link-font);
47
+ color: var(--dsa-wc-download-card-link-color);
48
+ text-decoration: none;
49
+ outline: none;
50
+ overflow: hidden;
51
+ display: -webkit-box;
52
+ -webkit-line-clamp: 2;
53
+ line-clamp: 2;
54
+ -webkit-box-orient: vertical;
55
+ }
56
+ [part~='link']:after {
57
+ content: '';
58
+ position: absolute;
59
+ inset: 0;
60
+ }
61
+ [part~='link']:focus-visible:after {
62
+ outline: var(--dsa-wc-focus-ring);
63
+ outline-offset: var(--dsa-wc-focus-ring-offset);
64
+ border-radius: var(--dsa-wc-focus-ring-radius);
65
+ }
66
+
67
+ [part~='base']:has([part~='link']:active) {
68
+ border-color: var(--dsa-wc-download-card-border-color-active);
69
+ }
70
+
71
+ [part~='description'] {
72
+ font: var(--dsa-wc-download-card-description-font);
73
+ color: var(--dsa-wc-download-card-description-color);
74
+ margin: 0;
75
+ overflow: hidden;
76
+ display: -webkit-box;
77
+ -webkit-line-clamp: 2;
78
+ line-clamp: 2;
79
+ -webkit-box-orient: vertical;
80
+ }
81
+ [part~='document-info'] {
82
+ font: var(--dsa-wc-download-card-document-info-font);
83
+ color: var(--dsa-wc-download-card-document-info-color);
84
+ margin: 0;
85
+ }
86
+
87
+ [part~='icon'] {
88
+ flex-shrink: 0;
89
+ align-self: center;
90
+ width: var(--dsa-wc-download-card-icon-size);
91
+ height: var(--dsa-wc-download-card-icon-size);
92
+ margin-inline-start: auto;
93
+ color: var(--dsa-wc-download-card-icon-color);
94
+ }
95
+ `;
96
+
97
+ export {
98
+ download_card_styles_default
99
+ };
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.7BYKP4SA.js";
18
+ } from "./chunk.CKDL37GT.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk.V7RJROLH.js";
27
27
  import {
28
28
  LocalizeController
29
- } from "./chunk.7BYKP4SA.js";
29
+ } from "./chunk.CKDL37GT.js";
30
30
  import {
31
31
  watch
32
32
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,92 @@
1
+ import {
2
+ download_link_styles_default
3
+ } from "./chunk.EVHNFCQF.js";
4
+ import {
5
+ ShoelaceElement
6
+ } from "./chunk.YCXTCVAZ.js";
7
+ import {
8
+ __decorateClass
9
+ } from "./chunk.6M63UXML.js";
10
+
11
+ // src/components/download-link/download-link.ts
12
+ import { html } from "lit";
13
+ import { customElement, property } from "lit/decorators.js";
14
+ import { classMap } from "lit/directives/class-map.js";
15
+ var DSADownloadLink = class extends ShoelaceElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.variant = "base";
19
+ this.size = "medium";
20
+ }
21
+ handleFocus() {
22
+ this.emit("dsa-focus");
23
+ }
24
+ handleBlur() {
25
+ this.emit("dsa-blur");
26
+ }
27
+ render() {
28
+ return html`
29
+ <div
30
+ part="base"
31
+ class=${classMap({
32
+ "document-link--x-large": this.size === "xlarge",
33
+ "document-link--large": this.size === "large",
34
+ "document-link--small": this.size === "small",
35
+ "document-link--x-small": this.size === "xsmall",
36
+ "document-link--2x-small": this.size === "2xsmall"
37
+ })}
38
+ >
39
+ <a
40
+ part="link"
41
+ class=${classMap({
42
+ link: true,
43
+ "link--on-layer": this.variant === "layer",
44
+ "link--on-contrasted": this.variant === "contrasted",
45
+ "link--floating-menu": this.variant === "floating"
46
+ })}
47
+ download
48
+ href=${this.href}
49
+ @focus=${this.handleFocus}
50
+ @blur=${this.handleBlur}
51
+ >
52
+ <slot></slot>
53
+ <dsa-icon name="download" library="system"></dsa-icon>
54
+ </a>
55
+ <p
56
+ id="document-info"
57
+ class=${classMap({
58
+ "document-info": true,
59
+ "document-info--on-layer": this.variant === "layer",
60
+ "document-info--on-contrasted": this.variant === "contrasted",
61
+ "document-info--floating-menu": this.variant === "floating"
62
+ })}
63
+ >
64
+ ${this.format}${this.format && this.documentSize ? " - " : ""}${this.documentSize}
65
+ </p>
66
+ </div>
67
+ `;
68
+ }
69
+ };
70
+ DSADownloadLink.styles = download_link_styles_default;
71
+ __decorateClass([
72
+ property()
73
+ ], DSADownloadLink.prototype, "href", 2);
74
+ __decorateClass([
75
+ property()
76
+ ], DSADownloadLink.prototype, "format", 2);
77
+ __decorateClass([
78
+ property({ attribute: "documentsize" })
79
+ ], DSADownloadLink.prototype, "documentSize", 2);
80
+ __decorateClass([
81
+ property()
82
+ ], DSADownloadLink.prototype, "variant", 2);
83
+ __decorateClass([
84
+ property()
85
+ ], DSADownloadLink.prototype, "size", 2);
86
+ DSADownloadLink = __decorateClass([
87
+ customElement("dsa-download-link")
88
+ ], DSADownloadLink);
89
+
90
+ export {
91
+ DSADownloadLink
92
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.7BYKP4SA.js";
3
+ } from "./chunk.CKDL37GT.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  accordion_styles_default
3
- } from "./chunk.LC54322H.js";
3
+ } from "./chunk.FYTGBKGY.js";
4
4
  import {
5
5
  waitForEvent
6
6
  } from "./chunk.B4BZKR24.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.7BYKP4SA.js";
18
+ } from "./chunk.CKDL37GT.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -30,6 +30,7 @@ import {
30
30
  import { html } from "lit";
31
31
  import { customElement, property, query } from "lit/decorators.js";
32
32
  import { classMap } from "lit/directives/class-map.js";
33
+ import { ifDefined } from "lit/directives/if-defined.js";
33
34
  var DSAAccordion = class extends ShoelaceElement {
34
35
  constructor() {
35
36
  super(...arguments);
@@ -49,7 +50,7 @@ var DSAAccordion = class extends ShoelaceElement {
49
50
  } else {
50
51
  this.show();
51
52
  }
52
- this.header.focus();
53
+ this.headerButton.focus();
53
54
  }
54
55
  }
55
56
  handleSummaryKeyDown(event) {
@@ -143,29 +144,35 @@ var DSAAccordion = class extends ShoelaceElement {
143
144
  <header
144
145
  part="header"
145
146
  id="header"
147
+ aria-level=${ifDefined(this.headerLevel)}
148
+ role=${this.headerLevel ? "heading" : "banner"}
146
149
  class="accordion__header"
147
- role="button"
148
- aria-expanded=${this.open ? "true" : "false"}
149
- aria-controls="content"
150
- aria-disabled=${this.disabled ? "true" : "false"}
151
- tabindex=${this.disabled ? "-1" : "0"}
152
- @click=${this.handleSummaryClick}
153
- @keydown=${this.handleSummaryKeyDown}
154
150
  >
155
- <slot name="summary" part="summary" class="accordion__summary"
156
- >${this.summary}</slot
151
+ <span
152
+ role="button"
153
+ aria-expanded=${this.open ? "true" : "false"}
154
+ aria-controls="content"
155
+ aria-disabled=${this.disabled ? "true" : "false"}
156
+ tabindex=${this.disabled ? "-1" : "0"}
157
+ @click=${this.handleSummaryClick}
158
+ @keydown=${this.handleSummaryKeyDown}
159
+ class="accordion__header-button"
157
160
  >
161
+ <slot name="summary" part="summary" class="accordion__summary"
162
+ >${this.summary}</slot
163
+ >
158
164
 
159
- <span part="summary-icon" class="accordion__summary-icon">
160
- <dsa-icon
161
- class="accordion__expand-icon"
162
- name=${expandIconName}
163
- ></dsa-icon>
165
+ <span part="summary-icon" class="accordion__summary-icon">
166
+ <dsa-icon
167
+ class="accordion__expand-icon"
168
+ name=${expandIconName}
169
+ ></dsa-icon>
164
170
 
165
- <dsa-icon
166
- class="accordion__collapse-icon"
167
- name=${collapseIconName}
168
- ></dsa-icon>
171
+ <dsa-icon
172
+ class="accordion__collapse-icon"
173
+ name=${collapseIconName}
174
+ ></dsa-icon>
175
+ </span>
169
176
  </span>
170
177
  </header>
171
178
 
@@ -187,8 +194,8 @@ __decorateClass([
187
194
  query(".accordion")
188
195
  ], DSAAccordion.prototype, "accordion", 2);
189
196
  __decorateClass([
190
- query(".accordion__header")
191
- ], DSAAccordion.prototype, "header", 2);
197
+ query(".accordion__header-button")
198
+ ], DSAAccordion.prototype, "headerButton", 2);
192
199
  __decorateClass([
193
200
  query(".accordion__body")
194
201
  ], DSAAccordion.prototype, "body", 2);
@@ -198,6 +205,9 @@ __decorateClass([
198
205
  __decorateClass([
199
206
  property()
200
207
  ], DSAAccordion.prototype, "summary", 2);
208
+ __decorateClass([
209
+ property({ attribute: "header-level", reflect: true })
210
+ ], DSAAccordion.prototype, "headerLevel", 2);
201
211
  __decorateClass([
202
212
  property({ type: Boolean, reflect: true })
203
213
  ], DSAAccordion.prototype, "disabled", 2);
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.S4ATPBQN.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.7BYKP4SA.js";
6
+ } from "./chunk.CKDL37GT.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -28,6 +28,10 @@ var skip_links_styles_default = css`
28
28
  align-items: center;
29
29
  gap: var(--dsa-wc-skip-link-list-gap);
30
30
  }
31
+
32
+ .slot_links {
33
+ display: none;
34
+ }
31
35
  `;
32
36
 
33
37
  export {