@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.
- package/components/digi-code-example.js +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +2 -2
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-textarea.js +15 -3
- package/components/digi-header-avatar.js +1 -1
- package/components/digi-header.js +3 -3
- package/components/digi-info-card.js +2 -2
- package/components/digi-link-button.js +1 -1
- package/components/digi-link-external.js +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-link.js +1 -1
- package/components/digi-navigation-vertical-menu-item.js +6 -6
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-tools-feedback-banner.js +2 -2
- package/components/digi-tools-feedback-rating.js +2 -2
- package/components/{p-0c919531.js → p-7b97818b.js} +1 -1
- package/components/{p-cd0370eb.js → p-7ff04204.js} +3 -3
- package/components/{p-85633f84.js → p-b57677c1.js} +2 -2
- package/components/{p-358965ba.js → p-ea46c737.js} +2 -2
- package/components/{p-f22b488a.js → p-ff4f4fb8.js} +2 -2
- package/custom-elements.json +9 -5
- package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_17.cjs.entry.js +1120 -0
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +3 -6
- package/dist/cjs/digi-code-block_3.cjs.entry.js +4 -7
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
- package/dist/cjs/digi-dialog.cjs.entry.js +4 -7
- package/dist/cjs/digi-footer.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -7
- package/dist/cjs/digi-form-input-search.cjs.entry.js +2 -3
- package/dist/cjs/digi-form-label_3.cjs.entry.js +129 -0
- package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +3 -6
- package/dist/cjs/digi-form-select_2.cjs.entry.js +186 -0
- package/dist/cjs/digi-form-textarea.cjs.entry.js +14 -3
- package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +53 -0
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-link.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -6
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -9
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -6
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +5 -8
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
- package/dist/cjs/{form-input-search-variation.enum-c50239bc.js → form-input-search-variation.enum-e0e025b1.js} +7 -0
- package/dist/cjs/index-7a477838.js +12 -52
- package/dist/cjs/index.cjs.js +42 -45
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-118ff8e5.js} +20 -0
- package/dist/collection/components/_code/code-example/code-example.css +0 -1
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +3 -3
- package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
- package/dist/collection/components/_form/form-textarea/form-textarea.js +36 -3
- package/dist/collection/components/_header/header/header.css +2 -15
- package/dist/collection/components/_header/header/header.js +2 -2
- package/dist/collection/components/_header/header-avatar/header-avatar.css +0 -3
- package/dist/collection/components/_link/link/link.js +3 -3
- package/dist/collection/components/_link/link-button/link-button.js +3 -3
- package/dist/collection/components/_link/link-external/link-external.js +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.js +3 -3
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +7 -7
- package/dist/collection/components/_notification/notification-alert/notification-alert.css +6 -6
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-501697cd.entry.js → p-07985aef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-22700f68.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
- package/dist/digi-arbetsformedlingen/p-51149879.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
- package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c8e29e68.entry.js → p-7327f45d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-030e608e.entry.js → p-7888e12c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7d49df06.entry.js → p-78c99e87.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c799009f.entry.js → p-9a6ea3b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9be9a291.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c0b39654.entry.js → p-eada91bf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +1 -0
- package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_17.entry.js +1100 -0
- package/dist/esm/digi-calendar-datepicker.entry.js +3 -6
- package/dist/esm/digi-code-block_3.entry.js +3 -6
- package/dist/esm/digi-code-example.entry.js +2 -3
- package/dist/esm/digi-dialog.entry.js +3 -6
- package/dist/esm/digi-footer.entry.js +3 -6
- package/dist/esm/digi-form-checkbox.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +4 -7
- package/dist/esm/digi-form-input-search.entry.js +1 -2
- package/dist/esm/digi-form-label_3.entry.js +123 -0
- package/dist/esm/digi-form-receipt.entry.js +3 -6
- package/dist/esm/digi-form-select-filter.entry.js +3 -6
- package/dist/esm/digi-form-select_2.entry.js +181 -0
- package/dist/esm/digi-form-textarea.entry.js +14 -3
- package/dist/esm/digi-icon-external-link-alt_2.entry.js +1 -1
- package/dist/esm/digi-icon-validation-error_2.entry.js +48 -0
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-link.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +3 -6
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
- package/dist/esm/digi-notification-alert.entry.js +6 -9
- package/dist/esm/digi-notification-error-page.entry.js +3 -6
- package/dist/esm/digi-tools-feedback.entry.js +3 -6
- package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
- package/dist/esm/{form-input-search-variation.enum-f9d669f2.js → form-input-search-variation.enum-6d8dc10a.js} +8 -1
- package/dist/esm/index-148a7577.js +12 -52
- package/dist/esm/index.js +3 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-23eeecd2.js} +21 -1
- package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +1 -1
- package/dist/types/components/_form/form-error-list/form-error-list.d.ts +1 -1
- package/dist/types/components/_form/form-textarea/form-textarea.d.ts +5 -0
- package/dist/types/components/_link/link/link.d.ts +1 -1
- package/dist/types/components/_link/link-button/link-button.d.ts +1 -1
- package/dist/types/components/_link/link-internal/link-internal.d.ts +1 -1
- package/dist/types/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.d.ts +1 -1
- package/dist/types/components.d.ts +26 -16
- package/hydrate/index.js +36 -24
- package/hydrate/index.mjs +36 -24
- package/package.json +1 -1
- package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
- package/dist/cjs/button-type.enum-406723db.js +0 -8
- package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
- package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
- package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -232
- package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
- package/dist/cjs/digi-header.cjs.entry.js +0 -148
- package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
- package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
- package/dist/cjs/digi-title-logo.cjs.entry.js +0 -135
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
- package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-14731327.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
- package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-76022084.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-832cbd71.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-84719680.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bf53daba.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cc9a96ff.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +0 -1
- package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
- package/dist/esm/button-type.enum-5250ae0b.js +0 -8
- package/dist/esm/digi-button_9.entry.js +0 -521
- package/dist/esm/digi-header-avatar.entry.js +0 -110
- package/dist/esm/digi-header-navigation-item.entry.js +0 -23
- package/dist/esm/digi-header-navigation.entry.js +0 -228
- package/dist/esm/digi-header-notification.entry.js +0 -19
- package/dist/esm/digi-header.entry.js +0 -144
- package/dist/esm/digi-icon-bars.entry.js +0 -26
- package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
- package/dist/esm/digi-icon-x.entry.js +0 -26
- package/dist/esm/digi-layout-block_2.entry.js +0 -87
- package/dist/esm/digi-media-image_2.entry.js +0 -162
- package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
- package/dist/esm/digi-title-logo.entry.js +0 -131
- package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
- package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-118ff8e5.js}
RENAMED
|
@@ -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";
|
|
@@ -98,7 +98,7 @@ export class FormCheckbox {
|
|
|
98
98
|
this.afOnInput.emit(e);
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
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: '
|
|
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
|
|
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
|
|
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: '
|
|
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: '
|
|
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: '
|
|
125
|
-
this.afValidation != FormTextareaValidation.NEUTRAL && (h("digi-form-validation-message", { key: '
|
|
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("
|
|
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: '
|
|
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: '
|
|
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":
|
|
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: '
|
|
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":
|
|
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: '
|
|
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":
|
|
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: '
|
|
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":
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
60
|
-
this.afSize === NotificationAlertSize.LARGE && (h(this.afHeadingLevel, { key: '
|
|
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"; }
|