@designsystem-se/af 36.0.3 → 37.0.1

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 (212) hide show
  1. package/components/digi-code-example.js +1 -1
  2. package/components/digi-form-checkbox.js +1 -1
  3. package/components/digi-form-error-list.js +2 -2
  4. package/components/digi-form-filter.js +1 -1
  5. package/components/digi-form-textarea.js +15 -3
  6. package/components/digi-header-avatar.js +1 -1
  7. package/components/digi-header.js +3 -3
  8. package/components/digi-info-card.js +2 -2
  9. package/components/digi-link-button.js +1 -1
  10. package/components/digi-link-external.js +1 -1
  11. package/components/digi-link-internal.js +1 -1
  12. package/components/digi-link.js +1 -1
  13. package/components/digi-navigation-vertical-menu-item.js +6 -6
  14. package/components/digi-notification-alert.js +1 -1
  15. package/components/digi-tools-feedback-banner.js +2 -2
  16. package/components/digi-tools-feedback-rating.js +2 -2
  17. package/components/{p-0c919531.js → p-7b97818b.js} +1 -1
  18. package/components/{p-cd0370eb.js → p-7ff04204.js} +3 -3
  19. package/components/{p-85633f84.js → p-b57677c1.js} +2 -2
  20. package/components/{p-358965ba.js → p-ea46c737.js} +2 -2
  21. package/components/{p-f22b488a.js → p-ff4f4fb8.js} +2 -2
  22. package/custom-elements.json +9 -5
  23. package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
  24. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  25. package/dist/cjs/digi-button_17.cjs.entry.js +1120 -0
  26. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +3 -6
  27. package/dist/cjs/digi-code-block_3.cjs.entry.js +4 -7
  28. package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
  29. package/dist/cjs/digi-dialog.cjs.entry.js +4 -7
  30. package/dist/cjs/digi-footer.cjs.entry.js +3 -6
  31. package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
  32. package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -7
  33. package/dist/cjs/digi-form-input-search.cjs.entry.js +2 -3
  34. package/dist/cjs/digi-form-label_3.cjs.entry.js +129 -0
  35. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -6
  36. package/dist/cjs/digi-form-select-filter.cjs.entry.js +3 -6
  37. package/dist/cjs/digi-form-select_2.cjs.entry.js +186 -0
  38. package/dist/cjs/digi-form-textarea.cjs.entry.js +14 -3
  39. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +1 -1
  40. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +53 -0
  41. package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
  42. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  43. package/dist/cjs/digi-link.cjs.entry.js +1 -1
  44. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -6
  45. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
  46. package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -9
  47. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -6
  48. package/dist/cjs/digi-tools-feedback.cjs.entry.js +5 -8
  49. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
  50. package/dist/cjs/{form-input-search-variation.enum-c50239bc.js → form-input-search-variation.enum-e0e025b1.js} +7 -0
  51. package/dist/cjs/index-7a477838.js +12 -52
  52. package/dist/cjs/index.cjs.js +42 -45
  53. package/dist/cjs/loader.cjs.js +1 -1
  54. package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-118ff8e5.js} +20 -0
  55. package/dist/collection/components/_code/code-example/code-example.css +0 -1
  56. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +3 -3
  57. package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
  58. package/dist/collection/components/_form/form-textarea/form-textarea.js +36 -3
  59. package/dist/collection/components/_header/header/header.css +2 -15
  60. package/dist/collection/components/_header/header/header.js +2 -2
  61. package/dist/collection/components/_header/header-avatar/header-avatar.css +0 -3
  62. package/dist/collection/components/_link/link/link.js +3 -3
  63. package/dist/collection/components/_link/link-button/link-button.js +3 -3
  64. package/dist/collection/components/_link/link-external/link-external.js +2 -2
  65. package/dist/collection/components/_link/link-internal/link-internal.js +3 -3
  66. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +7 -7
  67. package/dist/collection/components/_notification/notification-alert/notification-alert.css +6 -6
  68. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  69. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  70. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  71. package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +1 -0
  72. package/dist/digi-arbetsformedlingen/{p-501697cd.entry.js → p-07985aef.entry.js} +1 -1
  73. package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +1 -0
  74. package/dist/digi-arbetsformedlingen/p-22700f68.entry.js +1 -0
  75. package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +1 -0
  76. package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +1 -0
  77. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
  78. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +1 -0
  79. package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +1 -0
  80. package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
  81. package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +1 -0
  82. package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +1 -0
  83. package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +1 -0
  84. package/dist/digi-arbetsformedlingen/{p-c8e29e68.entry.js → p-7327f45d.entry.js} +1 -1
  85. package/dist/digi-arbetsformedlingen/{p-030e608e.entry.js → p-7888e12c.entry.js} +1 -1
  86. package/dist/digi-arbetsformedlingen/{p-7d49df06.entry.js → p-78c99e87.entry.js} +1 -1
  87. package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +1 -0
  88. package/dist/digi-arbetsformedlingen/{p-c799009f.entry.js → p-9a6ea3b7.entry.js} +1 -1
  89. package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +1 -0
  90. package/dist/digi-arbetsformedlingen/p-9be9a291.js +1 -0
  91. package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +1 -0
  92. package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +1 -0
  93. package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +1 -0
  94. package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +1 -0
  95. package/dist/digi-arbetsformedlingen/{p-c0b39654.entry.js → p-eada91bf.entry.js} +1 -1
  96. package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +1 -0
  97. package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +1 -0
  98. package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +1 -0
  99. package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
  100. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  101. package/dist/esm/digi-button_17.entry.js +1100 -0
  102. package/dist/esm/digi-calendar-datepicker.entry.js +3 -6
  103. package/dist/esm/digi-code-block_3.entry.js +3 -6
  104. package/dist/esm/digi-code-example.entry.js +2 -3
  105. package/dist/esm/digi-dialog.entry.js +3 -6
  106. package/dist/esm/digi-footer.entry.js +3 -6
  107. package/dist/esm/digi-form-checkbox.entry.js +2 -2
  108. package/dist/esm/digi-form-error-list.entry.js +4 -7
  109. package/dist/esm/digi-form-input-search.entry.js +1 -2
  110. package/dist/esm/digi-form-label_3.entry.js +123 -0
  111. package/dist/esm/digi-form-receipt.entry.js +3 -6
  112. package/dist/esm/digi-form-select-filter.entry.js +3 -6
  113. package/dist/esm/digi-form-select_2.entry.js +181 -0
  114. package/dist/esm/digi-form-textarea.entry.js +14 -3
  115. package/dist/esm/digi-icon-external-link-alt_2.entry.js +1 -1
  116. package/dist/esm/digi-icon-validation-error_2.entry.js +48 -0
  117. package/dist/esm/digi-link-button.entry.js +1 -1
  118. package/dist/esm/digi-link-internal.entry.js +1 -1
  119. package/dist/esm/digi-link.entry.js +1 -1
  120. package/dist/esm/digi-navigation-pagination.entry.js +3 -6
  121. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
  122. package/dist/esm/digi-notification-alert.entry.js +6 -9
  123. package/dist/esm/digi-notification-error-page.entry.js +3 -6
  124. package/dist/esm/digi-tools-feedback.entry.js +3 -6
  125. package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
  126. package/dist/esm/{form-input-search-variation.enum-f9d669f2.js → form-input-search-variation.enum-6d8dc10a.js} +8 -1
  127. package/dist/esm/index-148a7577.js +12 -52
  128. package/dist/esm/index.js +3 -6
  129. package/dist/esm/loader.js +1 -1
  130. package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-23eeecd2.js} +21 -1
  131. package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +1 -1
  132. package/dist/types/components/_form/form-error-list/form-error-list.d.ts +1 -1
  133. package/dist/types/components/_form/form-textarea/form-textarea.d.ts +5 -0
  134. package/dist/types/components/_link/link/link.d.ts +1 -1
  135. package/dist/types/components/_link/link-button/link-button.d.ts +1 -1
  136. package/dist/types/components/_link/link-internal/link-internal.d.ts +1 -1
  137. package/dist/types/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.d.ts +1 -1
  138. package/dist/types/components.d.ts +26 -16
  139. package/hydrate/index.js +36 -24
  140. package/hydrate/index.mjs +36 -24
  141. package/package.json +1 -1
  142. package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
  143. package/dist/cjs/button-type.enum-406723db.js +0 -8
  144. package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
  145. package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
  146. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
  147. package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -232
  148. package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
  149. package/dist/cjs/digi-header.cjs.entry.js +0 -148
  150. package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
  151. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
  152. package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
  153. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  154. package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
  155. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
  156. package/dist/cjs/digi-title-logo.cjs.entry.js +0 -135
  157. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
  158. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  159. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  160. package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
  161. package/dist/digi-arbetsformedlingen/p-14731327.entry.js +0 -1
  162. package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
  163. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +0 -1
  164. package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
  165. package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
  166. package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
  167. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  168. package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
  169. package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
  170. package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
  171. package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
  172. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +0 -1
  173. package/dist/digi-arbetsformedlingen/p-76022084.entry.js +0 -1
  174. package/dist/digi-arbetsformedlingen/p-832cbd71.entry.js +0 -1
  175. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +0 -1
  176. package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
  177. package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
  178. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +0 -1
  179. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +0 -1
  180. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +0 -1
  181. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  182. package/dist/digi-arbetsformedlingen/p-bf53daba.entry.js +0 -1
  183. package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
  184. package/dist/digi-arbetsformedlingen/p-cc9a96ff.entry.js +0 -1
  185. package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
  186. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +0 -1
  187. package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
  188. package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
  189. package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
  190. package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
  191. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  192. package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
  193. package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
  194. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +0 -1
  195. package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
  196. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  197. package/dist/esm/digi-button_9.entry.js +0 -521
  198. package/dist/esm/digi-header-avatar.entry.js +0 -110
  199. package/dist/esm/digi-header-navigation-item.entry.js +0 -23
  200. package/dist/esm/digi-header-navigation.entry.js +0 -228
  201. package/dist/esm/digi-header-notification.entry.js +0 -19
  202. package/dist/esm/digi-header.entry.js +0 -144
  203. package/dist/esm/digi-icon-bars.entry.js +0 -26
  204. package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
  205. package/dist/esm/digi-icon-x.entry.js +0 -26
  206. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  207. package/dist/esm/digi-media-image_2.entry.js +0 -162
  208. package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
  209. package/dist/esm/digi-title-logo.entry.js +0 -131
  210. package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
  211. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  212. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
@@ -172,6 +172,26 @@ exports.InfoCardHeadingLevel = void 0;
172
172
  InfoCardHeadingLevel["H6"] = "h6";
173
173
  })(exports.InfoCardHeadingLevel || (exports.InfoCardHeadingLevel = {}));
174
174
 
175
+ exports.LayoutBlockContainer = void 0;
176
+ (function (LayoutBlockContainer) {
177
+ LayoutBlockContainer["STATIC"] = "static";
178
+ LayoutBlockContainer["FLUID"] = "fluid";
179
+ LayoutBlockContainer["NONE"] = "none";
180
+ })(exports.LayoutBlockContainer || (exports.LayoutBlockContainer = {}));
181
+
182
+ exports.LayoutContainerVariation = void 0;
183
+ (function (LayoutContainerVariation) {
184
+ LayoutContainerVariation["STATIC"] = "static";
185
+ LayoutContainerVariation["FLUID"] = "fluid";
186
+ LayoutContainerVariation["NONE"] = "none";
187
+ })(exports.LayoutContainerVariation || (exports.LayoutContainerVariation = {}));
188
+
189
+ exports.LayoutContainerMaxWidth = void 0;
190
+ (function (LayoutContainerMaxWidth) {
191
+ LayoutContainerMaxWidth["WIDTH_1200"] = "1200";
192
+ LayoutContainerMaxWidth["WIDTH_1400"] = "1400";
193
+ })(exports.LayoutContainerMaxWidth || (exports.LayoutContainerMaxWidth = {}));
194
+
175
195
  exports.NotificationAlertHeadingLevel = void 0;
176
196
  (function (NotificationAlertHeadingLevel) {
177
197
  NotificationAlertHeadingLevel["H1"] = "h1";
@@ -57,7 +57,6 @@ License: none (public domain)
57
57
  --digi--button--color--icon--function--hover: var(--digi--color--text--secondary);
58
58
  }
59
59
  .digi-code-example__example {
60
- height: 100%;
61
60
  padding: var(--digi--padding--largest-2);
62
61
  overflow-x: auto;
63
62
  }
@@ -98,7 +98,7 @@ export class FormCheckbox {
98
98
  this.afOnInput.emit(e);
99
99
  }
100
100
  render() {
101
- return (h(Host, { key: '119dd4d2bd465e027f4d5c79f8334b0bb9491048', tabindex: -1 }, h("div", { key: '4bb8e86d4323bfe5f079f3c082bf64b6f7eec750', class: Object.assign({ 'digi-form-checkbox': true }, this.cssModifiers) }, h("input", { key: '5c780e58b7df31cd9c13563b920b5e06ea74022c', class: "digi-form-checkbox__input", ref: (el) => {
101
+ return (h(Host, { key: '510236a0bc0048a6a657f366a3107de346109636', tabindex: -1 }, h("div", { key: 'cd0fa14b3b6c6f2455bc6f50a81ca42f0329c7f1', class: Object.assign({ 'digi-form-checkbox': true }, this.cssModifiers) }, h("input", { key: '98053e7e641744319df5f9331f9a92badd6d3fd2', class: "digi-form-checkbox__input", ref: (el) => {
102
102
  var _a;
103
103
  this._input = el;
104
104
  (_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
@@ -106,7 +106,7 @@ export class FormCheckbox {
106
106
  ? null
107
107
  : `${this.afAriaDescribedby ? `${this.afAriaDescribedby} ` : ''}${this.afDescription ? `${this.afId}-description` : ''}`, "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormCheckboxValidation.ERROR
108
108
  ? 'true'
109
- : 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "checkbox", checked: this.afChecked, value: this.afValue, indeterminate: this.afIndeterminate, autofocus: this.afAutofocus ? this.afAutofocus : null }), h("label", { key: '71599f05c3436521e96f2210606ad3c71f6d341e', htmlFor: this.afId, class: "digi-form-checkbox__label" }, h("span", { key: '6f2ecde62ef62aa8a286aa2e64b1932d1d605e0a', class: "digi-form-checkbox__box" }), this.afLabel), !!this.afDescription && (h("p", { key: '2ca8d8ddfb9578b236712cbb761348fb1c456f18', id: `${this.afId}-description`, class: "digi-form-checkbox__description" }, this.afDescription)))));
109
+ : 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "checkbox", checked: this.afChecked, value: this.afValue, indeterminate: this.afIndeterminate, autofocus: this.afAutofocus ? this.afAutofocus : null }), h("label", { key: 'b32b615db271a2d7bb76edc8596f0bbbf15e63c9', htmlFor: this.afId, class: "digi-form-checkbox__label" }, h("span", { key: '85524659643995903e06178f6085914d79fbba67', class: "digi-form-checkbox__box" }), this.afLabel), !!this.afDescription && (h("p", { key: '4c9c218bd9fe34fe036a33853735657fea7a4d42', id: `${this.afId}-description`, class: "digi-form-checkbox__description" }, this.afDescription)))));
110
110
  }
111
111
  static get is() { return "digi-form-checkbox"; }
112
112
  static get encapsulation() { return "scoped"; }
@@ -562,7 +562,7 @@ export class FormCheckbox {
562
562
  "docs": {
563
563
  "tags": [{
564
564
  "name": "deprecated",
565
- "text": "Denna prop kommer att tas bort i slutet av juli"
565
+ "text": "Denna prop kommer att tas bort i slutet av augusti"
566
566
  }],
567
567
  "text": "Tabindex"
568
568
  },
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
3
3
  import { FormErrorListHeadingLevel } from "./form-error-list-heading-level.enum";
4
- import { TypographyVariation, } from "../../../enums";
4
+ import { TypographyVariation } from "../../../enums";
5
5
  import { NotificationAlertVariation } from "../../_notification/notification-alert/notification-alert-variation.enum";
6
6
  /**
7
7
  * @enums FormErrorListHeadingLevel - form-error-list-heading-level.enum.ts
@@ -50,7 +50,7 @@ export class FormErrorList {
50
50
  this.afOnClickLink.emit({ id });
51
51
  }
52
52
  render() {
53
- return (h("div", { key: '21fce283555655608307df2c622c110777ca78fc', class: "digi-form-error-list", id: this.afId }, h("digi-notification-alert", { key: '377d7dda9657fd6316fab80ec8db491c37970ce1', ref: (el) => (this._notificationAlert = el), "af-heading": this.afHeading, "af-heading-level": this.afHeadingLevel, "af-variation": NotificationAlertVariation.DANGER }, this.afDescription && (h("digi-typography", { key: '8fe62a6f8446faf2218b374f7ad5a7ba05f54424', "af-variation": TypographyVariation.SMALL }, h("p", { key: '1caa60c105eb0021b65b904229486e35ae936f77', class: "digi-form-error-list__description" }, this.afDescription))), h("slot", { key: '9dbdd2998a7223163642c78fd3b0b15537f16f78' }))));
53
+ return (h("div", { key: '20c0abb4ab980259a7df09361582ca810f3c7e49', class: "digi-form-error-list", id: this.afId }, h("digi-notification-alert", { key: '963c583b7a4b48aad78244ee152f3e667fa5a84b', ref: (el) => (this._notificationAlert = el), "af-heading": this.afHeading, "af-heading-level": this.afHeadingLevel, "af-variation": NotificationAlertVariation.DANGER }, this.afDescription && (h("digi-typography", { key: '64683c5c4291245db96757ecc62dc7611f440f46', "af-variation": TypographyVariation.SMALL }, h("p", { key: '56aecfbaf54858ce376c121061745364c445e72c', class: "digi-form-error-list__description" }, this.afDescription))), h("slot", { key: 'f09680d52c7895a1a888456e5b8e1f605fdf173b' }))));
54
54
  }
55
55
  static get is() { return "digi-form-error-list"; }
56
56
  static get encapsulation() { return "scoped"; }
@@ -177,7 +177,7 @@ export class FormErrorList {
177
177
  "name": "en",
178
178
  "text": "Override default anchor link behavior and sets focus programmatically. Should only be used if default anchor link behaviour is a problem with e.g. routing"
179
179
  }],
180
- "text": "Kringg\u00E5r felmeddelandenas ankarl\u00E4nkar och s\u00E4tter ist\u00E4llet fokus programmatiskt.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
180
+ "text": "Kringg\u00E5r felmeddelandenas ankarl\u00E4nkar (e.preventDefault()) och s\u00E4tter ist\u00E4llet fokus programmatiskt.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
181
181
  },
182
182
  "getter": false,
183
183
  "setter": false,
@@ -34,6 +34,7 @@ export class FormTextarea {
34
34
  this.afAriaLabelledby = undefined;
35
35
  this.afAriaDescribedby = undefined;
36
36
  this.afAutofocus = undefined;
37
+ this.afTrimValue = undefined;
37
38
  this.afErrorMessageIsAlert = true;
38
39
  }
39
40
  onValueChanged(value) {
@@ -90,6 +91,16 @@ export class FormTextarea {
90
91
  };
91
92
  }
92
93
  blurHandler(e) {
94
+ if (this.afTrimValue && typeof e.target.value === 'string') {
95
+ const trimmedValue = e.target.value.trim();
96
+ if (trimmedValue !== e.target.value) {
97
+ this.afValue = this.value = trimmedValue;
98
+ if (this._textarea) {
99
+ this._textarea.value = trimmedValue;
100
+ }
101
+ this.afOnInput.emit(e);
102
+ }
103
+ }
93
104
  if (!this.touched) {
94
105
  this.afOnTouched.emit(e);
95
106
  this.touched = true;
@@ -119,10 +130,10 @@ export class FormTextarea {
119
130
  this.afOnInput.emit(e);
120
131
  }
121
132
  render() {
122
- return (h(Host, { key: '8fc80d345a10b05e22b3dcd5adb63449d50b07e1', tabindex: -1 }, h("div", { key: '049576151b60c94d55711e696af1262ac6701f34', class: Object.assign({ 'digi-form-textarea': true }, this.cssModifiers) }, h("div", { key: 'a18d782506a20eb687bd8792a3fb0da3db159d4f', class: "digi-form-textarea__label" }, h("digi-form-label", { key: '1574be92b63e16034a5690a9d217da8e63ca7470', afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: 'c3258fb29058a14abae464e8e7f22074675e0115', class: "digi-form-textarea__content" }, h("textarea", { key: '5273fb0ea8d7c1345bfc37df0214f1ceb497f2ae', class: "digi-form-textarea__textarea", ref: (el) => (this._textarea = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": `${this.afAriaDescribedby} ${this.afId}--validation-message`, "aria-labelledby": this.afAriaLabelledby, "aria-invalid": this.afValidation === FormTextareaValidation.ERROR
133
+ return (h(Host, { key: '98f682ee8195c12379e2423c3539404e1830e695', tabindex: -1 }, h("div", { key: '6481b13c2551958ebde492a5a6cc2b708b26e2d8', class: Object.assign({ 'digi-form-textarea': true }, this.cssModifiers) }, h("div", { key: '0ee19bc6a14361ae3b22b56034d08492e0170a9e', class: "digi-form-textarea__label" }, h("digi-form-label", { key: '178f9fedcf69b0cbf52057021a757a1f8c2e8e3d', afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: 'be556535265c322c7be065aa2e3335bcaef95fbc', class: "digi-form-textarea__content" }, h("textarea", { key: '302bf34c94a161971dc809d7e5ef9d7b4ec71ede', class: "digi-form-textarea__textarea", ref: (el) => (this._textarea = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": `${this.afAriaDescribedby} ${this.afId}--validation-message`, "aria-labelledby": this.afAriaLabelledby, "aria-invalid": this.afValidation === FormTextareaValidation.ERROR
123
134
  ? 'true'
124
- : 'false', maxLength: this.afMaxlength, minLength: this.afMinlength, role: this.afRole, required: this.afRequired, id: this.afId, name: this.afName, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null })), h("div", { key: '38ade9720142b05d65248291749635e061681bad', class: "digi-form-textarea__footer" }, h("div", { key: 'fbe8041652cc9c1bc72bffc98582c5312b9c020b', class: "digi-form-textarea__validation", "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
125
- this.afValidation != FormTextareaValidation.NEUTRAL && (h("digi-form-validation-message", { key: 'baea13a3e9d6c7a762cce0f0296ee0dcb267ff9f', class: "digi-form-textarea__validation-message", "af-variation": this.afValidation }, this.afValidationText)))))));
135
+ : 'false', maxLength: this.afMaxlength, minLength: this.afMinlength, role: this.afRole, required: this.afRequired, id: this.afId, name: this.afName, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null })), h("div", { key: '3ab685a78e1a4e7a8cf526e79ad5cc26de8c2447', class: "digi-form-textarea__footer" }, h("div", { key: '6b15817472e36252aeed5c2531b6ad14ab6e4f1c', class: "digi-form-textarea__validation", "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
136
+ this.afValidation != FormTextareaValidation.NEUTRAL && (h("digi-form-validation-message", { key: '92726ac010661ed5bce7ba9065f9b4105dd43f3c', class: "digi-form-textarea__validation-message", "af-variation": this.afValidation }, this.afValidationText)))))));
126
137
  }
127
138
  static get is() { return "digi-form-textarea"; }
128
139
  static get encapsulation() { return "scoped"; }
@@ -597,6 +608,28 @@ export class FormTextarea {
597
608
  "attribute": "af-autofocus",
598
609
  "reflect": false
599
610
  },
611
+ "afTrimValue": {
612
+ "type": "boolean",
613
+ "mutable": false,
614
+ "complexType": {
615
+ "original": "boolean",
616
+ "resolved": "boolean",
617
+ "references": {}
618
+ },
619
+ "required": false,
620
+ "optional": false,
621
+ "docs": {
622
+ "tags": [{
623
+ "name": "en",
624
+ "text": "If true, the value of the input field is trimmed on blur"
625
+ }],
626
+ "text": "S\u00E4tts till true f\u00F6r att trimma v\u00E4rdet i inmatningsf\u00E4ltet vid onblur."
627
+ },
628
+ "getter": false,
629
+ "setter": false,
630
+ "attribute": "af-trim-value",
631
+ "reflect": false
632
+ },
600
633
  "afErrorMessageIsAlert": {
601
634
  "type": "any",
602
635
  "mutable": false,
@@ -14,7 +14,6 @@ License: none (public domain)
14
14
  :host .digi-header__wrapper {
15
15
  display: flex;
16
16
  align-items: center;
17
- justify-content: space-between;
18
17
  padding-left: var(--digi--header--padding-left);
19
18
  padding-right: var(--digi--header--padding-right);
20
19
  }
@@ -26,11 +25,6 @@ License: none (public domain)
26
25
  :host .digi-header__border {
27
26
  border-bottom: var(--digi--header--border-width) solid var(--digi--header--border-color);
28
27
  }
29
- :host .digi-header__content {
30
- display: flex;
31
- align-items: center;
32
- gap: var(--digi--header--content--gap);
33
- }
34
28
  :host .digi-header ::slotted([slot=header-logo]) {
35
29
  margin-left: -0.125rem;
36
30
  text-decoration: none;
@@ -43,23 +37,16 @@ License: none (public domain)
43
37
  flex-shrink: 0;
44
38
  }
45
39
  :host .digi-header ::slotted(div[slot=header-content]) {
46
- --digi--header--logo--padding-right: var(--digi--padding--large);
47
- --digi--header--border-width: var(--digi--border-width--primary);
48
- --digi--header--border-color: var(--digi--color--divider--primary);
49
- --digi--header--padding-left: var(--digi--padding--medium);
50
- --digi--header--padding-right: var(--digi--padding--medium);
51
- --digi--header--content--gap: 1rem;
52
40
  display: flex;
53
41
  align-items: center;
42
+ flex: 1;
43
+ justify-content: flex-end;
54
44
  flex-wrap: wrap;
55
45
  gap: var(--digi--header--content--gap);
56
46
  }
57
47
  :host .digi-header ::slotted(div[slot=header-content]) .digi-header-notification a {
58
48
  margin: 0;
59
49
  }
60
- :host .digi-header ::slotted(div[slot=header-content]) .digi-header-avatar {
61
- --digi--header-avatar--margin: 0;
62
- }
63
50
  :host .digi-header--af-centered .digi-header__wrapper {
64
51
  --digi--header--padding-right: 0;
65
52
  --digi--header--padding-left: 0;
@@ -83,10 +83,10 @@ export class Header {
83
83
  }
84
84
  }
85
85
  renderContent() {
86
- return (h("div", { class: "digi-header__wrapper" }, h("slot", { name: "header-logo" }), h("div", { class: "digi-header__content" }, h("slot", { name: "header-content" })), this.hasNavigation && this.isMobile && (h("digi-navigation-sidebar-button", { "aria-hidden": this.afActive ? 'true' : 'false', "af-text": this.afMenuButtonText }))));
86
+ return (h("div", { class: "digi-header__wrapper" }, h("slot", { name: "header-logo" }), h("slot", { name: "header-content" }), this.hasNavigation && this.isMobile && (h("digi-navigation-sidebar-button", { "aria-hidden": this.afActive ? 'true' : 'false', "af-text": this.afMenuButtonText }))));
87
87
  }
88
88
  render() {
89
- return (h("header", { key: '65cc845a9c3f2eb3d86fa8745b3dc042249140b8', "aria-label": this.ariaLabel, class: Object.assign({ 'digi-header': true }, this.cssModifiers) }, h("digi-util-breakpoint-observer", { key: '9e25393e1d5094dd49171b590a6ab0a4004f3e7f', onAfOnChange: (e) => this.handleBreakpointObserver(e) }), h("digi-layout-block", { key: '0e7791c78b6b8f3dd085ffb7e3bab754ea6453e3', afContainer: LayoutBlockContainer.NONE }, this.afCentered !== HeaderCenterContentWidth.DEFAULT ? (h("digi-layout-container", { "af-max-width": this.afCentered }, this.renderContent())) : (this.renderContent()), h("div", { key: '800e6f888496ea187fa7ed9d2431b5806b0d8206', class: "digi-header__border" }), h("slot", { key: 'a24318deb7d4a91b7715024996be181faeae283a', name: "header-navigation" }))));
89
+ return (h("header", { key: '73e95103c9377a0a880757124540cefe8395c70c', "aria-label": this.ariaLabel, class: Object.assign({ 'digi-header': true }, this.cssModifiers) }, h("digi-util-breakpoint-observer", { key: 'b43a331345bcb463c9cb7ae26032a6c5bcec05ce', onAfOnChange: (e) => this.handleBreakpointObserver(e) }), h("digi-layout-block", { key: 'f9e92080a234f619650f0bcdbff2ee3a471f63b9', afContainer: LayoutBlockContainer.NONE }, this.afCentered !== HeaderCenterContentWidth.DEFAULT ? (h("digi-layout-container", { "af-max-width": this.afCentered }, this.renderContent())) : (this.renderContent()), h("div", { key: '0e080daf5eaa59f83cee7585a6d0f70c44e96892', class: "digi-header__border" }), h("slot", { key: '2339203a0d17c1263e7ad61d344d3c966bcd9d8c', name: "header-navigation" }))));
90
90
  }
91
91
  static get is() { return "digi-header"; }
92
92
  static get encapsulation() { return "scoped"; }
@@ -782,9 +782,6 @@ body {
782
782
  :host .digi-header-avatar__name, :host .digi-header-avatar__signature {
783
783
  margin-left: var(--digi--header-avatar--margin);
784
784
  }
785
- :host ::slotted(*) {
786
- margin-left: var(--digi--header-avatar--margin);
787
- }
788
785
 
789
786
  ::slotted(* img) {
790
787
  border-radius: 100%;
@@ -59,7 +59,7 @@ export class Link {
59
59
  };
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: '39f2ab8f08a13d1c4d7cae4dadc36b8670bb0fc0', class: Object.assign({ 'digi-link': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: '66a8dc062b313986fe9c1faeb766c9e325ee5d86', href: this.afHref, onClick: (e) => this.clickLinkHandler(e), target: this.afTarget, rel: this.relation, ref: (el) => (this._link = el), "aria-describedby": this.afDescribedby, "aria-label": this.afAriaLabel, download: this.afDownload }, this.hasIcon && (h("div", { key: '03fdec9e4444f0cf7a2bfe7de1ba95ed82b62a38', class: "digi-link__icon-wrapper", "aria-hidden": "true" }, h("slot", { key: 'bb8a908170e7328e425b175b969e0b0a75302729', name: "icon" }))), h("slot", { key: 'cc3dfa7c092ea7f6272d14c5ae2889671eb2fd01' }))), this.afLinkContainer && h("slot", { key: '659499126035d0dc3c6bed718c692e9d891e1ddf' })));
62
+ return (h(Host, { key: 'c2cdd832f50e81c35d8c3e06b5fb294f9515f938', class: Object.assign({ 'digi-link': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: 'e8b2298dd031c232cc1f1049852b140d72e9a984', href: this.afHref, onClick: (e) => this.clickLinkHandler(e), target: this.afTarget, rel: this.relation, ref: (el) => (this._link = el), "aria-describedby": this.afDescribedby, "aria-label": this.afAriaLabel, download: this.afDownload }, this.hasIcon && (h("div", { key: '3bf604f269f9bcae1b935670485374f4698d1ff1', class: "digi-link__icon-wrapper", "aria-hidden": "true" }, h("slot", { key: '2ded07fa39426315f056da4981a2f182601fda33', name: "icon" }))), h("slot", { key: '0df2301bbeb8c2828e86ed2f6a069a83c18d3fa1' }))), this.afLinkContainer && h("slot", { key: 'ecd0d327630dcb310bb8148f7c22d62dce62cf11' })));
63
63
  }
64
64
  static get is() { return "digi-link"; }
65
65
  static get encapsulation() { return "scoped"; }
@@ -83,7 +83,7 @@ export class Link {
83
83
  "resolved": "string",
84
84
  "references": {}
85
85
  },
86
- "required": true,
86
+ "required": false,
87
87
  "optional": false,
88
88
  "docs": {
89
89
  "tags": [{
@@ -178,7 +178,7 @@ export class Link {
178
178
  "name": "en",
179
179
  "text": "Override default link behavior. Should only be used if default link behaviour is a problem with e.g. routing"
180
180
  }],
181
- "text": "Kringg\u00E5r l\u00E4nkens vanliga beteende.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
181
+ "text": "Kringg\u00E5r l\u00E4nkens vanliga klick-beteende (e.preventDefault()).\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
182
182
  },
183
183
  "getter": false,
184
184
  "setter": false,
@@ -53,7 +53,7 @@ export class LinkButton {
53
53
  };
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: '912e033fb035df1cdd5ebb6ce8bc35f0b5f1c79f', class: Object.assign({ 'digi-link-button': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: '4c519d24bb7876e50c38c1f01f117dc60dac79ba', href: this.afHref, "aria-label": this.afAriaLabel, onClick: (e) => this.clickLinkHandler(e), ref: (el) => (this._link = el) }, h("span", { key: 'b095e3ef659e5a20a8bd5d7397a4d17f914298bd', class: "digi-link-button__text" }, h("slot", { key: '9da0bde27b312b79310a36939cda71e5c44be19d' })), this.hasNotification && h("slot", { key: 'b19c63133b1014a0a6e1b6d95b81ae2d48638ba8', name: "notification" }), h("digi-icon-chevron-right", { key: '7ef41bd82490cdac4268a24c988d5d35c33e58c6', class: "digi-link-button__icon" }))), this.afLinkContainer && (h(Fragment, { key: '987a6cd83ff9959b53a098a27cbd43a7d8389ffb' }, h("slot", { key: 'c5ab750ed9828c9af326ab88bb3c750146b40677' }), this.hasNotification && h("slot", { key: '8edb1cae2d9438dd3a2bf82aaf3028f75d47f980', name: "notification" })))));
56
+ return (h(Host, { key: '8084e4edd5437ec25a37459fc10050c4da5c58e9', class: Object.assign({ 'digi-link-button': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: '0e96ae78fdd4b5625a3313e68c28a01d34893d5d', href: this.afHref, "aria-label": this.afAriaLabel, onClick: (e) => this.clickLinkHandler(e), ref: (el) => (this._link = el) }, h("span", { key: '8d67272ad7dc1c7b4c486949b2081c63b71ec1ad', class: "digi-link-button__text" }, h("slot", { key: 'cc7ac84c042f3d8b28c6cb28fc91ee6fa1ea1cb2' })), this.hasNotification && h("slot", { key: '11168a09812b2e7b40bf8c226d97a933c0f42b2a', name: "notification" }), h("digi-icon-chevron-right", { key: 'e2beb86a4524142a0a8c385fe2b5a69b8c1aa5f5', class: "digi-link-button__icon" }))), this.afLinkContainer && (h(Fragment, { key: '17954863dc4516a71a80b0393432a2cba6a7723f' }, h("slot", { key: 'a91e26192d4443fb1a21079be1f3087b02fd3de3' }), this.hasNotification && h("slot", { key: '8b322b449ed00daa5149b23c830df1a92f68c8ae', name: "notification" })))));
57
57
  }
58
58
  static get is() { return "digi-link-button"; }
59
59
  static get encapsulation() { return "scoped"; }
@@ -77,7 +77,7 @@ export class LinkButton {
77
77
  "resolved": "string",
78
78
  "references": {}
79
79
  },
80
- "required": true,
80
+ "required": false,
81
81
  "optional": false,
82
82
  "docs": {
83
83
  "tags": [{
@@ -157,7 +157,7 @@ export class LinkButton {
157
157
  "name": "en",
158
158
  "text": "Override default link behavior. Should only be used if default link behaviour is a problem with e.g. routing"
159
159
  }],
160
- "text": "Kringg\u00E5r l\u00E4nkens vanliga beteende.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
160
+ "text": "Kringg\u00E5r l\u00E4nkens vanliga klick-beteende (e.preventDefault()).\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
161
161
  },
162
162
  "getter": false,
163
163
  "setter": false,
@@ -22,7 +22,7 @@ export class LinkExternal {
22
22
  };
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: '2b9cd17937699207be4cf903b556d8cd379a5b27' }, h("digi-link", { key: '8aedb5c22c93f2bb01ea8a8d750e5dc8c290b138', class: Object.assign({ 'digi-link-external': true }, this.cssModifiers), afHref: this.afHref, onAfOnClick: (e) => this.clickLinkHandler(e), afTarget: this.afTarget, afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("digi-icon-external-link-alt", { key: '86f554d686e7779eb0c289de5e92be46b3e8dfbe', class: "digi-link-external__icon", "aria-hidden": "true", slot: "icon" }), h("slot", { key: '5f7697d1c5110c209a39dcf9f6a35410b37ee3e3' }))));
25
+ return (h(Host, { key: 'fd51401c9fa0ab852d9e44af66dcd946a5d2e9e1' }, h("digi-link", { key: 'deb5a9d9f8155a40adee978953096920b6500566', class: Object.assign({ 'digi-link-external': true }, this.cssModifiers), afHref: this.afHref, onAfOnClick: (e) => this.clickLinkHandler(e), afTarget: this.afTarget, afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("digi-icon-external-link-alt", { key: '3fa6ae4913240c6b58d7c12ed2b2576632c614c1', class: "digi-link-external__icon", "aria-hidden": "true", slot: "icon" }), h("slot", { key: '3d80136ed787b51d57da623e72fd6440f6e1670b' }))));
26
26
  }
27
27
  static get is() { return "digi-link-external"; }
28
28
  static get encapsulation() { return "scoped"; }
@@ -46,7 +46,7 @@ export class LinkExternal {
46
46
  "resolved": "string",
47
47
  "references": {}
48
48
  },
49
- "required": true,
49
+ "required": false,
50
50
  "optional": false,
51
51
  "docs": {
52
52
  "tags": [{
@@ -23,7 +23,7 @@ export class LinkInternal {
23
23
  };
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: 'c6d5e7a0105a9925a2f86b7116a2ede429416ff3' }, !this.afLinkContainer && (h("digi-link", { key: 'e45e9126a56d10597a6c28a597e121a73262bfdf', class: Object.assign({ 'digi-link-internal': true }, this.cssModifiers), afHref: this.afHref, afOverrideLink: this.afOverrideLink, afLinkContainer: this.afLinkContainer, onAfOnClick: (e) => this.clickLinkHandler(e), afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("digi-icon-chevron-right", { key: 'd832ccde4247f8279dc3508a4105878bf7d52787', class: "digi-link-internal__icon", "aria-hidden": "true", slot: "icon" }), h("slot", { key: '51569cf86084177a09f7d24359d0f26fb6f4f775' }))), this.afLinkContainer && (h("digi-link", { key: '10b6567afd3e6180b19352dce82104dc3c15617d', afHref: this.afHref, afOverrideLink: true, afLinkContainer: this.afLinkContainer, onAfOnClick: (e) => this.clickLinkHandler(e), afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("slot", { key: '425f14738e3fbcc55509acb533e2825ace5cd224' })))));
26
+ return (h(Host, { key: 'b1da74bae4a34ab17b3ff31e0dda62a67bdf1b05' }, !this.afLinkContainer && (h("digi-link", { key: '871f6bd7561de8d2751f6ff7a26493329d1b01fa', class: Object.assign({ 'digi-link-internal': true }, this.cssModifiers), afHref: this.afHref, afOverrideLink: this.afOverrideLink, afLinkContainer: this.afLinkContainer, onAfOnClick: (e) => this.clickLinkHandler(e), afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("digi-icon-chevron-right", { key: 'dfbe58ab754fd4bd08d7e2955d14e79e9f3d28ad', class: "digi-link-internal__icon", "aria-hidden": "true", slot: "icon" }), h("slot", { key: '1a5bddcf083c60a12425980099de252bba7d4182' }))), this.afLinkContainer && (h("digi-link", { key: '521603dd379a7287a0229eba837d16c7e1a2766c', afHref: this.afHref, afOverrideLink: true, afLinkContainer: this.afLinkContainer, onAfOnClick: (e) => this.clickLinkHandler(e), afDescribedby: this.afDescribedby, afAriaLabel: this.afAriaLabel }, h("slot", { key: '332d629a67f271ddac72ec0f982ab3de9f5a4a18' })))));
27
27
  }
28
28
  static get is() { return "digi-link-internal"; }
29
29
  static get encapsulation() { return "scoped"; }
@@ -47,7 +47,7 @@ export class LinkInternal {
47
47
  "resolved": "string",
48
48
  "references": {}
49
49
  },
50
- "required": true,
50
+ "required": false,
51
51
  "optional": false,
52
52
  "docs": {
53
53
  "tags": [{
@@ -120,7 +120,7 @@ export class LinkInternal {
120
120
  "name": "en",
121
121
  "text": "Override default link behavior. Should only be used if default link behaviour is a problem with e.g. routing"
122
122
  }],
123
- "text": "Kringg\u00E5r l\u00E4nkens vanliga beteende.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
123
+ "text": "Kringg\u00E5r l\u00E4nkens vanliga klick-beteende (e.preventDefault()).\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
124
124
  },
125
125
  "getter": false,
126
126
  "setter": false,
@@ -115,24 +115,24 @@ export class NavigationVerticalMenuItem {
115
115
  }
116
116
  }
117
117
  render() {
118
- return (h("host", { key: 'b880227638a1f8025e80ef32db9b106b00a8b5a3', class: {
118
+ return (h("host", { key: '831f600bb3be81e7eb6b39b1125c056e7dfa3564', class: {
119
119
  'digi-navigation-vertical-menu-item--has-subnav': this.hasSubnav,
120
120
  'digi-navigation-vertical-menu-item--active-subnav': this.activeSubnav
121
- } }, h("div", { key: '66b23291ec4d03ed1d982865528e652f35900625', class: Object.assign({ 'digi-navigation-vertical-menu-item': true }, this.cssModifiers) }, this.hasSubnav && this.afHref && (h("div", { key: '813b1b4fc6d29967d8ccab1911800af58c4ec1d8', class: "digi-navigation-vertical-menu-item__inner digi-navigation-vertical-menu-item__inner--combined" }, h("a", { key: '372e197f6b039c7de3add77fe0173a2977c7a235', id: `${this.afId}-link`, href: this.afHref, class: {
121
+ } }, h("div", { key: 'c636dcbad3f5060a1568bb10e92feee35f10dd61', class: Object.assign({ 'digi-navigation-vertical-menu-item': true }, this.cssModifiers) }, this.hasSubnav && this.afHref && (h("div", { key: '0740173821da4e2879360fe0a5ad43d654b218ee', class: "digi-navigation-vertical-menu-item__inner digi-navigation-vertical-menu-item__inner--combined" }, h("a", { key: 'f82cdfb6ed836e5c481ae12a60fba655eda8e4aa', id: `${this.afId}-link`, href: this.afHref, class: {
122
122
  'digi-navigation-vertical-menu-item__link': true,
123
123
  'digi-navigation-vertical-menu-item__has-subnav': true,
124
124
  'digi-navigation-vertical-menu-item__link--active': this.isActive,
125
125
  'digi-navigation-vertical-menu-item__link--expanded': this.activeSubnav
126
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'f15ba1a239223ea597feae19e23b31d6cdc4bb6f', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '815ad8df1e2155b15f4fd444286c267e3f14b69c', name: "icon" })), h("span", { key: '1c5f68ffba8af1681d2a3241675074b23d32f1a0', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'b4792c9089677e62c39ce3b13d894901f34e08db', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '823fdf5314e523386d8cf0c76d3759f48095e3e2', name: "badge" }))), h("button", { key: '7e9d281a9f9f017bbf921a56cf6c222371f66d25', type: "button", id: `${this.afId}-toggle-button`, class: {
126
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'b778e1e5497d1936979ed1bec64dd1a6786b2974', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '0de5873363746a89ceff108ff720d26c5e3c033e', name: "icon" })), h("span", { key: '63104dbf34e6c7deccbda3095c4fd0d8d2ae8ccf', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '9d45b2cc780a9d03b9abdcddcf16600953a3f71c', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '02411e2ddf9a55929b43202e5d6fb94930849055', name: "badge" }))), h("button", { key: 'd45ed8d0afa7b0daa5bbb21532354f55ec01a8a3', type: "button", id: `${this.afId}-toggle-button`, class: {
127
127
  'digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--toggle': true,
128
128
  'digi-navigation-vertical-menu-item__button--active': this.isActive
129
- }, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '1191e70005393c4de22aaaf7f31ea519ce76e38b', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: 'ebeaf192dd628581f500153b6730de5c807a7c73', class: "icon" }, this.toggleIcon))))), this.hasSubnav && !this.afHref && (h("div", { key: 'ba7f47312d4da5d5318fef885bf3c871859d0e11', class: "digi-navigation-vertical-menu-item__inner" }, h("button", { key: 'a549c35be775eda4d97af83bbd02574375ee4bda', id: `${this.afId}-toggle-button`, class: "digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--only-toggle", onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', type: "button" }, h("span", { key: 'dafcf4b088bb2e537576872e4ab619065ee361f8', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: 'fa7f0d18216065afb1a03413876956458ba91160', name: "icon" })), h("span", { key: '778c90bf46376555e90e72fa091cb7bf2c2ffaa0', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '3f5c4001d0c58d72e3f7c38f9e4f61651cd8ba03', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'cebf8b10e3e0687f70d877ff747dd4c1e6cfe26a', name: "badge" })), h("span", { key: '565062ad871e98cc3605ba2646b34f229491aa5f', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: 'fbf0e92f92e57b01f6a5bcc28228df907d851b86' }, this.toggleIcon))))), !this.hasSubnav && (h("div", { key: '2a7d77092f9ba8cb700565e0e1fce54772ae5ce6', class: "digi-navigation-vertical-menu-item__inner" }, !this.isActive && (h("a", { key: '03ccf4b05246b0ee637189818804a028914ebfd2', id: `${this.afId}-link`, href: this.afHref, class: {
129
+ }, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '637181e113d06884ea746addd703782e71fce6f8', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: '277050ea6a5e5f5937d4f9ba1800229fc46bead3', class: "icon" }, this.toggleIcon))))), this.hasSubnav && !this.afHref && (h("div", { key: 'edd3cded5d09fa987e148c6bd57c70e3873cd9f0', class: "digi-navigation-vertical-menu-item__inner" }, h("button", { key: '6669e3e1c091f1e3e3c9fb728e5aaad6ce1cedf7', id: `${this.afId}-toggle-button`, class: "digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--only-toggle", onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', type: "button" }, h("span", { key: '722adf95ad9d1a50f2b4dbb1e82c43a06e6f8f22', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: 'f0887a508f78e2e4d085a56ae28bfe62ec5f7c6a', name: "icon" })), h("span", { key: '75819f2f65263af970b274195c1cdd37b1aca54b', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'b9a2cb1da360f5ac4cf7abf02ea5c07d9bb1725b', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '811ce3dea1dfdc945493010ece752d947fb8dd48', name: "badge" })), h("span", { key: '7861ac8a986f1ba4a4043d1ef60d0899efb2e54c', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: '7572ae648dea2fe6c494d1ab78c154391dd3edba' }, this.toggleIcon))))), !this.hasSubnav && (h("div", { key: 'f6e6318c57e612d8b449b9a009b19311678c87d8', class: "digi-navigation-vertical-menu-item__inner" }, !this.isActive && (h("a", { key: '334bc20a2df68386cae4a7d2499f851d24a108a0', id: `${this.afId}-link`, href: this.afHref, class: {
130
130
  'digi-navigation-vertical-menu-item__link': true,
131
131
  'digi-navigation-vertical-menu-item__link--active': this.isActive
132
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '09cb9dd14c1d0f98277b5f91bbdf5ddf247f770f', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '9eb474b7bbe4b8ebf2de9326e70b96d5c5554823', name: "icon" })), h("span", { key: 'd06b00e8fe406469a58d89321286ed4c3e41ee28', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '7e52f0ee39ede7eb44a3cfb5e031ec557bb57989', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '5528f880b8060156f729c4424c39bc5ce250a071', name: "badge" })))), this.isActive && (h("a", { key: '6d68cda6b03124b3412debf00cd13656dc7e4641', id: `${this.afId}-link`, href: this.afHref, "aria-current": this.afAriaCurrent, class: {
132
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '53ab9bf11c7690dc417375be3f1affd7fe21ec6d', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: 'b08623e61374243b1fb4f681a1ad66e91c452fc4', name: "icon" })), h("span", { key: '818c610c8473b7c31fbcc80aaf84b6d86a025737', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'f866b6689358c3461dcc19487a466699a46b27e8', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '13943e887a862cfe1654862dcdf899c27c607a70', name: "badge" })))), this.isActive && (h("a", { key: 'bf9a7ba9b7e4fd72c113afabd51a02bbfbb0f957', id: `${this.afId}-link`, href: this.afHref, "aria-current": this.afAriaCurrent, class: {
133
133
  'digi-navigation-vertical-menu-item__link': true,
134
134
  'digi-navigation-vertical-menu-item__link--active': this.isActive
135
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '63af803c675981661526503061377d086af4738b', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: 'dc65dab94180e8f0028d506ed09ae85cc1e7375f', name: "icon" })), h("span", { key: 'c39e2885ac5938aa5ffe17062b4b79c5905435b4', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'e4fa7456b93a82102feba487707e06309c7130a8', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'ce36852991d5d3ebb25591facbfdfce86b8dff10', name: "badge" })))))))));
135
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '20ff961f85090e27a0dbeaea8f8974a025113e1f', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '4f16c6e58f5789c7564136daafa900b3d0dd3038', name: "icon" })), h("span", { key: '2ed83aee8e224497f97b9c34f92dd7808eb4614e', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '6d0ec7a4ca665bd297fbf6c12ed5a5281ed15da3', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'a37605a7371b7a835abb80a443e98125a634cc27', name: "badge" })))))))));
136
136
  }
137
137
  static get is() { return "digi-navigation-vertical-menu-item"; }
138
138
  static get encapsulation() { return "scoped"; }
@@ -297,7 +297,7 @@ export class NavigationVerticalMenuItem {
297
297
  "name": "en",
298
298
  "text": "Override default anchor link behavior and sets focus programmatically. Should only be used if default anchor link behaviour is a problem with e.g. routing"
299
299
  }],
300
- "text": "Kringg\u00E5r l\u00E4nkens vanliga beteende.\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
300
+ "text": "Kringg\u00E5r l\u00E4nkens vanliga klick-beteende (e.preventDefault()).\nB\u00F6r endast anv\u00E4ndas om det vanliga beteendet \u00E4r problematiskt pga dynamisk routing eller liknande."
301
301
  },
302
302
  "getter": false,
303
303
  "setter": false,
@@ -93,6 +93,9 @@ License: none (public domain)
93
93
  align-items: stretch;
94
94
  gap: 0;
95
95
  }
96
+ :host .digi-notification-alert__icon-wrapper {
97
+ align-items: stretch;
98
+ }
96
99
  :host .digi-notification-alert__icon {
97
100
  background: var(--ICON--BACKGROUND);
98
101
  padding: var(--ICON--PADDING);
@@ -106,6 +109,9 @@ License: none (public domain)
106
109
  --digi--icon--width: var(--ICON--WIDTH);
107
110
  --digi--icon--color: var(--ICON--COLOR);
108
111
  }
112
+ :host .digi-notification-alert__main-wrapper {
113
+ flex: 1;
114
+ }
109
115
  :host .digi-notification-alert__wrapper {
110
116
  display: flex;
111
117
  border: var(--BORDER);
@@ -155,10 +161,4 @@ License: none (public domain)
155
161
  :host .digi-notification-alert__content > * {
156
162
  --digi--typography--max-width: var(--MAX-WIDTH);
157
163
  --digi--typography--margin-top--text: var(--digi--gutter--small);
158
- }
159
- :host .icon-wrapper {
160
- align-items: stretch;
161
- }
162
- :host .main-wrapper {
163
- flex: 1;
164
164
  }
@@ -56,8 +56,8 @@ export class NotificationAlert {
56
56
  }
57
57
  }
58
58
  render() {
59
- return (h("div", { key: 'bf3f0a58082fb86cf6642f9769c101489c72edde', class: Object.assign({ 'digi-notification-alert': true }, this.cssModifiers) }, h("div", { key: '31a46f56e2bd7248c2b9df479a02c21e2efade82', class: "digi-notification-alert__layout" }, h("div", { key: 'adc8397ce115af922885eeecafdebbf7bf18035d', class: "icon-wrapper" }, h("div", { key: '38440269617cbeb7185c90eb81194cab8d46afbd', class: "digi-notification-alert__icon", slot: "media" }, this.icon)), h("div", { key: '8be12ad3c0d0466ad60f102dbcb599c1aff3eebe', class: "main-wrapper" }, h("div", { key: '306c289ee677e7f2ce4601f9a8bba2fc3a550196', class: "digi-notification-alert__wrapper" }, this.afCloseable && (h("digi-button", { key: '5b9e99e93677b1057f4485d13e9827d5404f85a4', "af-aria-label": this.afCloseAriaLabel, "af-variation": ButtonVariation.FUNCTION, onAfOnClick: (e) => this.clickHandler(e), class: "digi-notification-alert__close-button" }, h("span", { key: '73b426345ac2352b8c851ae64e5063fa525e422b', class: "digi-notification-alert__close-button__text" }, "St\u00E4ng"), h("digi-icon-x", { key: 'ee1089839ba1094b780ccc32d59bcdb2c0126e5b', slot: "icon-secondary", "aria-hidden": "true" }))), h("div", { key: '283a3e0f4fe25c420b0b284251c0e325cd51e4b8', class: "digi-notification-alert__text" }, this.afHeading &&
60
- this.afSize === NotificationAlertSize.LARGE && (h(this.afHeadingLevel, { key: '42d1221b2fd943f970e9e6d3a18833c28cc91881', ref: (el) => (this._heading = el), tabindex: "-1", class: "digi-notification-alert__heading" }, this.afHeading)), h("div", { key: '60fea41af154d6690f3313af4e710461f81f3b62', class: "digi-notification-alert__content" }, h("digi-typography", { key: '146f0bb6da09fce6e3044f23d8cfaeac564334b9', "af-variation": TypographyVariation.SMALL }, h("slot", { key: 'e34dead87fa7f3fb474e83c325dbfabef465f53a' })))))))));
59
+ return (h("div", { key: 'bf3f0a58082fb86cf6642f9769c101489c72edde', class: Object.assign({ 'digi-notification-alert': true }, this.cssModifiers) }, h("div", { key: '31a46f56e2bd7248c2b9df479a02c21e2efade82', class: "digi-notification-alert__layout" }, h("div", { key: '3a9b948108d510282da3d344036df3b15d4c6a6b', class: "digi-notification-alert__icon-wrapper" }, h("div", { key: '6de4451514422b7b54e96767d7fc0aaf1d85ad4a', class: "digi-notification-alert__icon", slot: "media" }, this.icon)), h("div", { key: 'cb537642611e6fcc4fbe72d97906eb879455ab28', class: "digi-notification-alert__main-wrapper" }, h("div", { key: '41f8b5af01d7d24dc147e536b14417a15bb3c53c', class: "digi-notification-alert__wrapper" }, this.afCloseable && (h("digi-button", { key: '4ac49d9ee2cd397995e7d70ce7159cb2a04d7ccc', "af-aria-label": this.afCloseAriaLabel, "af-variation": ButtonVariation.FUNCTION, onAfOnClick: (e) => this.clickHandler(e), class: "digi-notification-alert__close-button" }, h("span", { key: 'efcb9359dc3b64b26b1bb549200912432ce332ed', class: "digi-notification-alert__close-button__text" }, "St\u00E4ng"), h("digi-icon-x", { key: '0e3d6e993740cc994f7cf944d5a6c65feb8d4c38', slot: "icon-secondary", "aria-hidden": "true" }))), h("div", { key: 'bb436a69524dd58366d46e70e5a173d2e2626d96', class: "digi-notification-alert__text" }, this.afHeading &&
60
+ this.afSize === NotificationAlertSize.LARGE && (h(this.afHeadingLevel, { key: '85aaea1e186d5f81edc8b9c9bc4d0de13c499e67', ref: (el) => (this._heading = el), tabindex: "-1", class: "digi-notification-alert__heading" }, this.afHeading)), h("div", { key: 'e5e9fcbc2189a8574553ed8af87e17e32c1b2a7d', class: "digi-notification-alert__content" }, h("digi-typography", { key: 'f50d6ae9bcd718c69d1ccb18a054454e37cce865', "af-variation": TypographyVariation.SMALL }, h("slot", { key: '26714715984cec58976af688ac94eaae77b9320e' })))))))));
61
61
  }
62
62
  static get is() { return "digi-notification-alert"; }
63
63
  static get encapsulation() { return "scoped"; }