@designsystem-se/af 34.0.1-beta.0 → 34.0.2
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-bar-chart.js +2 -2
- package/components/digi-button.js +1 -1
- package/components/digi-calendar-week-view.js +2 -2
- package/components/digi-card.js +1 -1
- package/components/digi-chart-line.js +2 -2
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +2 -2
- package/components/digi-context-menu.js +1 -1
- package/components/digi-dialog.js +2 -2
- package/components/digi-expandable-accordion.js +2 -2
- package/components/digi-expandable-faq-item.js +1 -1
- package/components/digi-footer.js +1 -1
- package/components/digi-form-category-filter.js +1 -1
- package/components/digi-form-error-list.js +4 -4
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-input-search.js +1 -1
- package/components/digi-form-select-filter.js +8 -30
- package/components/digi-header-navigation.js +1 -1
- package/components/digi-header.js +2 -2
- package/components/digi-info-card-multi.js +1 -1
- package/components/digi-info-card.js +1 -1
- package/components/digi-layout-media-object.js +1 -1
- package/components/digi-link-button.js +1 -1
- package/components/digi-list.js +12 -9
- package/components/digi-navigation-breadcrumbs.js +1 -1
- package/components/digi-navigation-context-menu.js +1 -1
- package/components/digi-navigation-pagination.js +2 -2
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +1 -1
- package/components/digi-progress-indicator.js +1 -1
- package/components/digi-progress-list.js +1 -1
- package/components/digi-quote.js +1 -1
- package/components/digi-tablist.js +23 -6
- package/components/digi-tag.js +2 -2
- package/components/digi-tools-feedback-rating.js +1 -1
- package/components/digi-tools-feedback.js +1 -1
- package/components/digi-tools-languagepicker.js +2 -2
- package/components/digi-typography.js +1 -1
- package/components/{p-5e487ed4.js → p-10503e1d.js} +2 -2
- package/components/{p-09e0586b.js → p-68dbf3ef.js} +2 -2
- package/components/{p-8a1aaa8e.js → p-9f5ead44.js} +1 -1
- package/components/{p-f6347f75.js → p-a92aa84e.js} +3 -3
- package/components/{p-aa59e5c0.js → p-afc595b8.js} +1 -1
- package/components/{p-7f5a8dd1.js → p-dc9fbc23.js} +1 -1
- package/components/{p-acb38ff0.js → p-f6ca68ba.js} +1 -1
- package/custom-elements.json +1 -1
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/{digi-button_4.cjs.entry.js → digi-button.cjs.entry.js} +2 -84
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/digi-code-block_3.cjs.entry.js +2 -2
- package/dist/cjs/digi-dialog.cjs.entry.js +2 -2
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +2 -2
- package/dist/cjs/digi-footer.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +2 -2
- package/dist/cjs/{digi-form-label_5.cjs.entry.js → digi-form-label_3.cjs.entry.js} +0 -46
- package/dist/cjs/digi-form-receipt.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +9 -31
- package/dist/cjs/digi-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/digi-header.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check_6.cjs.entry.js +286 -0
- package/dist/cjs/digi-icon-notification-error_5.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-list.cjs.entry.js +11 -8
- package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-alert.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +2 -2
- package/dist/cjs/digi-tablist.cjs.entry.js +23 -6
- package/dist/cjs/digi-tag.cjs.entry.js +42 -0
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +2 -2
- package/dist/cjs/index-cfa8e9be.js +12 -12
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tag-size.enum-0a6be639.js +8 -0
- package/dist/cjs/{progress-indicator-variation.enum-7cf8e0e4.js → typography-variation.enum-252bed2e.js} +6 -0
- package/dist/collection/components/_button/button/button.js +5 -2
- package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -29
- package/dist/collection/components/_layout/layout-media-object/layout-media-object.js +2 -1
- package/dist/collection/components/_link/link-button/link-button.js +6 -3
- package/dist/collection/components/_list/list/list.css +7 -19
- package/dist/collection/components/_list/list/list.js +10 -7
- package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.css +2 -0
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +23 -6
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +15 -2
- package/dist/collection/components/_tag/tag/tag.js +4 -1
- package/dist/collection/components/_typography/typography/typography.css +12 -3
- package/dist/collection/components/_typography/typography/typography.js +4 -1
- package/dist/collection/design-tokens/components/_list.variables.scss +1 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_list.variables.scss +1 -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-00d6ab21.js +1 -0
- package/dist/digi-arbetsformedlingen/p-03c74be2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-83ed81f6.entry.js → p-04162d84.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-04e1b953.entry.js → p-2eb2de93.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-38ac4375.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-02a9c10c.entry.js → p-4771449c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b258acf.entry.js → p-48d8109b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4e311538.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4e9cd0cd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-83621ca7.entry.js → p-4f4113d7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-68306648.entry.js → p-525bd193.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1235e21c.entry.js → p-551f6906.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fcb4e37b.entry.js → p-5a7db717.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fd42009d.entry.js → p-6492e062.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-71613ea0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-20e04419.entry.js → p-766df2e4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7f1574ff.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-db5cbe34.entry.js → p-80fce66a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a0607d6f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-0a97b588.entry.js → p-bc37453e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-afe213a1.entry.js → p-c7fd83fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c8110048.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-6a09632d.entry.js → p-d13c7e47.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-521b26de.entry.js → p-edf6fbd2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-921b40e3.entry.js → p-f3b56695.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-fa7824e9.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/{digi-button_4.entry.js → digi-button.entry.js} +3 -82
- package/dist/esm/digi-calendar-datepicker.entry.js +2 -2
- package/dist/esm/digi-code-block_3.entry.js +2 -2
- package/dist/esm/digi-dialog.entry.js +2 -2
- package/dist/esm/digi-expandable-accordion.entry.js +2 -2
- package/dist/esm/digi-footer.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +2 -2
- package/dist/esm/{digi-form-label_5.entry.js → digi-form-label_3.entry.js} +1 -45
- package/dist/esm/digi-form-receipt.entry.js +2 -2
- package/dist/esm/digi-form-select-filter.entry.js +9 -31
- package/dist/esm/digi-header-navigation.entry.js +2 -2
- package/dist/esm/digi-header.entry.js +2 -2
- package/dist/esm/digi-icon-check_6.entry.js +277 -0
- package/dist/esm/digi-icon-notification-error_5.entry.js +1 -1
- package/dist/esm/digi-icon-x.entry.js +26 -0
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-list.entry.js +11 -8
- package/dist/esm/digi-navigation-breadcrumbs.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +2 -2
- package/dist/esm/digi-notification-alert.entry.js +2 -2
- package/dist/esm/digi-notification-error-page.entry.js +2 -2
- package/dist/esm/digi-tablist.entry.js +23 -6
- package/dist/esm/digi-tag.entry.js +38 -0
- package/dist/esm/digi-tools-feedback.entry.js +2 -2
- package/dist/esm/index-8e318bb2.js +12 -12
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tag-size.enum-1e1bcf94.js +8 -0
- package/dist/esm/{progress-indicator-variation.enum-b12ba50a.js → typography-variation.enum-d5ac8594.js} +7 -1
- package/dist/types/components/_button/button/button.d.ts +1 -0
- package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +0 -2
- package/dist/types/components/_layout/layout-media-object/layout-media-object.d.ts +1 -0
- package/dist/types/components/_link/link-button/link-button.d.ts +3 -2
- package/dist/types/components/_list/list/list.d.ts +0 -1
- package/dist/types/components/_tag/tag/tag.d.ts +1 -0
- package/dist/types/components/_typography/typography/typography.d.ts +1 -0
- package/dist/types/components.d.ts +16 -4
- package/hydrate/index.js +51 -52
- package/hydrate/index.mjs +51 -52
- package/package.json +1 -1
- package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
- package/dist/cjs/typography-variation.enum-bba759ae.js +0 -14
- package/dist/digi-arbetsformedlingen/p-4d48c55a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-614a1149.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-642eaeed.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6fcac607.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a29a52f3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-de4c4238.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ece582a3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f84d9dea.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fe5da310.js +0 -1
- package/dist/esm/digi-icon-check.entry.js +0 -26
- package/dist/esm/digi-progress-indicator.entry.js +0 -133
- package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
- package/dist/esm/typography-variation.enum-850aad78.js +0 -14
|
@@ -11,3 +11,9 @@ exports.ProgressIndicatorVariation = void 0;
|
|
|
11
11
|
ProgressIndicatorVariation["PRIMARY"] = "primary";
|
|
12
12
|
ProgressIndicatorVariation["SECONDARY"] = "secondary";
|
|
13
13
|
})(exports.ProgressIndicatorVariation || (exports.ProgressIndicatorVariation = {}));
|
|
14
|
+
|
|
15
|
+
exports.TypographyVariation = void 0;
|
|
16
|
+
(function (TypographyVariation) {
|
|
17
|
+
TypographyVariation["SMALL"] = "small";
|
|
18
|
+
TypographyVariation["LARGE"] = "large";
|
|
19
|
+
})(exports.TypographyVariation || (exports.TypographyVariation = {}));
|
|
@@ -106,7 +106,7 @@ export class Button {
|
|
|
106
106
|
this.afOnBlur.emit(e);
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'ef36d70f087c51bb37fa5b2c0fdd9ff7bebb7b02' }, h("button", { key: 'c62591e478d6dec6cb33d197c46ab4aea06ee9f6', class: Object.assign({ 'digi-button': true }, this.cssModifiers), type: this.afType, role: this.afRole, ref: (el) => {
|
|
110
110
|
var _a, _b, _c;
|
|
111
111
|
this._button = el;
|
|
112
112
|
(_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
|
|
@@ -115,7 +115,7 @@ export class Button {
|
|
|
115
115
|
this.afForm
|
|
116
116
|
? (_b = this._button) === null || _b === void 0 ? void 0 : _b.setAttribute('form', this.afForm)
|
|
117
117
|
: (_c = this._button) === null || _c === void 0 ? void 0 : _c.removeAttribute('form');
|
|
118
|
-
}, id: this.afId, tabindex: this.afTabindex, "aria-label": this.afAriaLabel, "aria-labelledby": this.afAriaLabelledby, "aria-controls": this.afAriaControls, "aria-pressed": this.pressedState, "aria-expanded": this.expandedState, "aria-haspopup": this.hasPopup, "aria-current": this.afAriaCurrent, "aria-checked": this.afAriaChecked, onClick: (e) => this.clickHandler(e), onFocus: (e) => this.focusHandler(e), onBlur: (e) => this.blurHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null, form: this.afForm, lang: this.afLang, dir: this.afDir }, this.hasIcon && (h("span", { key: '
|
|
118
|
+
}, id: this.afId, tabindex: this.afTabindex, "aria-label": this.afAriaLabel, "aria-labelledby": this.afAriaLabelledby, "aria-controls": this.afAriaControls, "aria-pressed": this.pressedState, "aria-expanded": this.expandedState, "aria-haspopup": this.hasPopup, "aria-current": this.afAriaCurrent, "aria-checked": this.afAriaChecked, onClick: (e) => this.clickHandler(e), onFocus: (e) => this.focusHandler(e), onBlur: (e) => this.blurHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null, form: this.afForm, lang: this.afLang, dir: this.afDir }, this.hasIcon && (h("span", { key: 'dd57484f5da45dbc1caf2b04733b89ac1641fd8b', class: "digi-button__icon" }, h("slot", { key: 'ca59512ee3eef6d6e772d6fc45d3b97523fc57a0', name: "icon" }))), h("span", { key: '4808cd35ff202c5ae9a07421e028cc463f87f951', class: "digi-button__text" }, h("slot", { key: '2e8005e8c42e81b1dbec44aef6ef9625ee7a089d' })), this.hasIconSecondary && (h("span", { key: '8a7e897b5cebf94c11d3dd6aa1c8a3ca23bc056d', class: "digi-button__icon digi-button__icon--secondary" }, h("slot", { key: 'ead4d4e5be559f0e6740e63ccff69bb03e46fee9', name: "icon-secondary" }))))));
|
|
119
119
|
}
|
|
120
120
|
static get is() { return "digi-button"; }
|
|
121
121
|
static get encapsulation() { return "scoped"; }
|
|
@@ -151,6 +151,9 @@ export class Button {
|
|
|
151
151
|
"tags": [{
|
|
152
152
|
"name": "en",
|
|
153
153
|
"text": "Set button size. Defaults to medium size."
|
|
154
|
+
}, {
|
|
155
|
+
"name": "deprecated",
|
|
156
|
+
"text": "Obs - variationen \"large\" f\u00F6rsvinner i januari 2026."
|
|
154
157
|
}],
|
|
155
158
|
"text": "S\u00E4tter knappens storlek. 'medium' \u00E4r f\u00F6rvalt."
|
|
156
159
|
},
|
|
@@ -119,11 +119,6 @@ export class FormSelectFilter {
|
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
121
|
this.focusInList = !detectFocusOutside(target, `#${this.afId}-select-filter-list`);
|
|
122
|
-
//Update tabindex on focused input element
|
|
123
|
-
if (this.isOpen && this.focusInList && target.tagName === 'LI') {
|
|
124
|
-
this.setTabIndex();
|
|
125
|
-
this.updateTabIndex(target);
|
|
126
|
-
}
|
|
127
122
|
}
|
|
128
123
|
}
|
|
129
124
|
debounce(func, timeout = 300) {
|
|
@@ -207,23 +202,6 @@ export class FormSelectFilter {
|
|
|
207
202
|
element.focus();
|
|
208
203
|
}
|
|
209
204
|
}
|
|
210
|
-
setTabIndex() {
|
|
211
|
-
const tabindexes = document.querySelectorAll(`#${this.afId}-dropdown-menu`);
|
|
212
|
-
if (!tabindexes) {
|
|
213
|
-
logger.warn(`No input elements was found to set tabindex on.`, this.hostElement);
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
Array.from(tabindexes).map((tabindex) => {
|
|
217
|
-
tabindex.setAttribute('tabindex', '-1');
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
updateTabIndex(element) {
|
|
221
|
-
if (!element) {
|
|
222
|
-
logger.warn(`No input element was found to update tabindex on.`, this.hostElement);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
element.setAttribute('tabindex', '0');
|
|
226
|
-
}
|
|
227
205
|
incrementFocusItem() {
|
|
228
206
|
const listLength = this.showNeutralValue
|
|
229
207
|
? this._filteredResult.length
|
|
@@ -466,16 +444,16 @@ export class FormSelectFilter {
|
|
|
466
444
|
} }, h("slot", { name: "empty-search-result" })))));
|
|
467
445
|
}
|
|
468
446
|
render() {
|
|
469
|
-
return (h("div", { key: '
|
|
447
|
+
return (h("div", { key: '0441a3108913933a52f7ce85a8e808637d1b3c91', class: Object.assign({ 'digi-form-select-filter': true }, this.cssModifiers), role: "application", id: `${this.afId}-identifier` }, h("digi-form-label", { key: '642aeed1224efdd28628722fc29c4885defe1f88', afLabel: this.afFilterButtonTextLabel, afFor: `${this.afId}`, afId: `${this.afId}-label`, class: "digi-form-select-filter__label", afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), h("digi-util-keydown-handler", { key: 'b5117f00c181ceb475eff973d9fef953ab057ffe', onAfOnEsc: () => this.escHandler() }, h("button", { key: 'f5ac9723c420b469f280751113b8fed4be799b2f', type: "button", id: `${this.afId}`, class: "digi-form-select-filter__toggle-button", onClick: () => this.toggleDropdown(), ref: (el) => (this._toggleButton = el), "aria-haspopup": "true", "aria-label": this.ariaLabel, "aria-labelledby": this.afFilterButtonAriaDescribedby, "aria-controls": `${this.afId}-dropdown-menu`, "aria-expanded": this.isOpen }, h("div", { key: '95f70c6e4a9ce0fb00d549ea9a2a56c889694536', class: Object.assign({ 'digi-form-filter__toggle-button-wrapper': true }, this.cssModifiersToggleButtonWrapper) }, h("digi-icon-check", { key: '1acd4598fe9a41669038186b086013a027c8e84f', class: Object.assign({ 'digi-form-select-filter__toggle-button-indicator': true }, this.cssModifiersToggleButtonIndicator), slot: "icon" }), h("span", { key: '965fd1089e5ebe115ebada0e6a8bac72de406d83', class: "digi-form-select-filter__toggle-button-text" }, this.renderButtonLabel)), h("digi-icon-chevron-down", { key: '23ee710f53016cf532cf74bd2288e3202418bffd', class: "digi-form-select-filter__toggle-icon" })), h("div", { key: '55f99522a98d710b4d222b43e51c63961bdd390e', id: `${this.afId}-dropdown-menu`, tabindex: this.isOpen ? '-1' : undefined, class: {
|
|
470
448
|
'digi-form-select-filter__dropdown': true,
|
|
471
449
|
'digi-form-select-filter__dropdown--right': this.afAlignRight,
|
|
472
450
|
'digi-form-select-filter__dropdown--hidden': !this.isOpen
|
|
473
|
-
} }, h("fieldset", { key: '
|
|
451
|
+
} }, h("fieldset", { key: 'b801358f02ee8719a354128ce1669276ae26052c' }, h("div", { key: 'a307b294684fe855f61c3f1fae1359d79e118ed8', class: "digi-form-select-filter__header" }, h("legend", { key: '854730c3331539ff816c78bbb5c4afa8b3f8045f', class: "digi-form-select-filter__legend" }, this.afFilterButtonTextLabel), h("digi-form-input", { key: 'ee515e0d2a5392fac6614309804762bb02b31b1b', afLabel: this.afName, afId: `${this.afId}-search`, afVariation: FormInputVariation.MEDIUM, afType: FormInputType.SEARCH, afValidation: FormInputValidation.NEUTRAL, onAfOnFocus: () => {
|
|
474
452
|
this.focusListItemIndex = 0;
|
|
475
453
|
99;
|
|
476
454
|
}, onAfOnKeyup: (e) => {
|
|
477
455
|
this.inputSearchKeyboardHandler(e.detail);
|
|
478
|
-
}, onAfOnInput: (e) => this.inputSearchInputHandler(e.detail), afValue: this._searchQuery, class: "digi-form-select-filter__search-input", afAriaControls: `${this.afId}-select-filter-list`, afAutocomplete: "off", afAriaAutocomplete: "none" }), this.renderEmptyStateBox()), h("div", { key: '
|
|
456
|
+
}, onAfOnInput: (e) => this.inputSearchInputHandler(e.detail), afValue: this._searchQuery, class: "digi-form-select-filter__search-input", afAriaControls: `${this.afId}-select-filter-list`, afAutocomplete: "off", afAriaAutocomplete: "none" }), this.renderEmptyStateBox()), h("div", { key: '4c3b4dd67932713d3b0f9784ddb6908172bae788', class: "digi-form-select-filter__scroll" }, h("digi-util-keydown-handler", { key: '21fd9e82b72a29c6d4f6d9483a189bd877f86c7f', onAfOnDown: (e) => this.downHandler(e), onAfOnRight: (e) => this.downHandler(e), onAfOnUp: (e) => this.upHandler(e), onAfOnLeft: (e) => this.upHandler(e), onAfOnHome: (e) => this.homeHandler(e), onAfOnEnd: (e) => this.endHandler(e), onAfOnEnter: (e) => this.enterHandler(e), onAfOnSpace: (e) => this.spaceHandler(e), onAfOnTab: () => this.tabHandler(), onAfOnShiftTab: () => this.shiftHandler() }, h("ul", { key: '1c7566020cc272722d7978b618395177c114a9ac', class: "digi-form-select-filter__list", "aria-labelledby": `${this.afId}`, id: `${this.afId}-select-filter-list`, role: this.afMultipleItems ? '' : 'radiogroup', "aria-invalid": this.afMultipleItems
|
|
479
457
|
? 'false'
|
|
480
458
|
: this.afValidation === FormSelectFilterValidation.ERROR
|
|
481
459
|
? 'true'
|
|
@@ -483,11 +461,11 @@ export class FormSelectFilter {
|
|
|
483
461
|
? false
|
|
484
462
|
: this.afRequired
|
|
485
463
|
? 'true'
|
|
486
|
-
: 'false' }, this.showNeutralValue && (h("li", { key: '
|
|
464
|
+
: 'false' }, this.showNeutralValue && (h("li", { key: '8d05cf89e96e8ac1483ce26a337a5978f838b639', class: "digi-form-select-filter__item", role: "radio", "aria-required": this.afMultipleItems
|
|
487
465
|
? 'false'
|
|
488
466
|
: this.afRequired
|
|
489
467
|
? 'true'
|
|
490
|
-
: 'false', "aria-checked": this._selectedItems.length === 0 ? 'true' : 'false', onClick: () => this.resetSelectItems(true), tabIndex: 0, "aria-label": this.afFilterButtonText }, this._selectedItems.length === 0 && (h("digi-icon-check", { key: '
|
|
468
|
+
: 'false', "aria-checked": this._selectedItems.length === 0 ? 'true' : 'false', onClick: () => this.resetSelectItems(true), tabIndex: 0, "aria-label": this.afFilterButtonText }, this._selectedItems.length === 0 && (h("digi-icon-check", { key: 'a38310179982e60d3f2689e86205b60954626a7b', class: "digi-form-select-filter__item__icon", "aria-hidden": 'true' })), this.afFilterButtonText)), this._filteredResult &&
|
|
491
469
|
this._filteredResult.map((item, index) => {
|
|
492
470
|
return (h("li", { class: "digi-form-select-filter__item", key: index, dir: item.dir, lang: item.lang, "aria-checked": this.isSelected(item.value) ? 'true' : 'false', role: this.afMultipleItems ? 'checkbox' : 'radio', "aria-required": this.afMultipleItems
|
|
493
471
|
? 'false'
|
|
@@ -499,9 +477,9 @@ export class FormSelectFilter {
|
|
|
499
477
|
? 'true'
|
|
500
478
|
: 'false'
|
|
501
479
|
: 'false', "aria-errormessage": `${this.afId}--validation-message`, onClick: () => this.selectItemHandler(item), tabIndex: this.showNeutralValue ? -1 : index === 0 ? 0 : -1 }, this.isSelected(item.value) && (h("digi-icon-check", { class: "digi-form-select-filter__item__icon", "aria-hidden": 'true' })), item.label));
|
|
502
|
-
}))))), this.afMultipleItems && (h("div", { key: '
|
|
480
|
+
}))))), this.afMultipleItems && (h("div", { key: '5b86ccce4ca0f6a5c8fdc02680aa792b97912a0b', class: "digi-form-select-filter__footer" }, !this.afHideResetButton && (h("digi-button", { key: 'b644d87b83ecbed6cfd1599a641e5264921ac4fc', "af-variation": "secondary", "af-aria-label": this.afResetButtonTextAriaLabel, onClick: () => this.resetSelectItems(), class: "digi-form-select-filter__reset-button" }, this.afResetButtonText)), h("digi-util-keydown-handler", { key: 'b0e8623abc016dcae8614310ea8653f28ec5d9b3', onAfOnUp: () => this.setFocusItem() }, h("digi-button", { key: '838f2780f265db6153e2e928ab23935a19885b51', ref: (el) => (this._submitButton = el), "af-variation": "primary", "af-aria-label": this.afSubmitButtonTextAriaLabel, onClick: () => {
|
|
503
481
|
this.setClosed(true);
|
|
504
|
-
}, class: "digi-form-select-filter__submit-button" }, this.afSubmitButtonText)))))), h("div", { key: '
|
|
482
|
+
}, class: "digi-form-select-filter__submit-button" }, this.afSubmitButtonText)))))), h("div", { key: 'e2a972b032f28e6e0347e2bd7aca7724e7a144a2', class: "digi-form-select__footer" }, h("div", { key: 'f8d44fff602afedb23b2f64b80d5bcaf7b15b49e', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: 'c91161db619777dbb192afa4b600732e39769208', "af-variation": this.afValidation }, this.afValidationText))))));
|
|
505
483
|
}
|
|
506
484
|
static get is() { return "digi-form-select-filter"; }
|
|
507
485
|
static get encapsulation() { return "scoped"; }
|
|
@@ -3,6 +3,7 @@ import { LayoutMediaObjectAlignment } from "./layout-media-object-alignment.enum
|
|
|
3
3
|
/**
|
|
4
4
|
* @slot media - Bör innehålla någon sorts mediakompinent (t.ex. en bild eller en video).
|
|
5
5
|
* @slot default - Kan innehålla vad som helst. Vanligen är det textinnehåll.
|
|
6
|
+
* @deprecated Denna komponent kommer att tas bort i slutet av februari 2026.
|
|
6
7
|
*
|
|
7
8
|
* @enums LayoutMediaObjectAlignment - layout-media-object-alignment.enum.ts
|
|
8
9
|
* @swedishName Medieobjekt
|
|
@@ -17,7 +18,7 @@ export class LayoutMediaObject {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'c224ab7e0a87f9a92296bf446190b774579ab643', class: Object.assign({ 'digi-layout-media-object': true }, this.cssModifiers) }, h("div", { key: 'bc3a5ebee281899ff31d88be2206914b987152a4', class: "digi-layout-media-object__first" }, h("slot", { key: 'e05bdf5e4f713086810e86e975a68df1beab1568', name: "media" })), h("div", { key: '8b7c30b5d1eccda7f456b6d95087e6f2bfb91422', class: "digi-layout-media-object__last" }, h("slot", { key: '697388291a8fa210546001431ecd986001952d10' }))));
|
|
21
22
|
}
|
|
22
23
|
static get is() { return "digi-layout-media-object"; }
|
|
23
24
|
static get encapsulation() { return "scoped"; }
|
|
@@ -58,7 +58,7 @@ export class LinkButton {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'fcb4dae6f790646d3ce9255d1a1f06a0a0495f62', class: Object.assign({ 'digi-link-button': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: 'a3c8160da677cf9b90658d50b9d0cf34b6b5ace8', href: this.afHref, onClick: (e) => this.clickLinkHandler(e), ref: (el) => (this._link = el) }, h("span", { key: '10aeae6b9e856a9594d53902f1ef81c1306446aa', class: "digi-link-button__text" }, h("slot", { key: '03619a6fa72d9cd75ba831ad3ec3210c4b1ad30b' })), this.hasNotification && h("slot", { key: '51d148026e61b19c12ccdc68b0a35f7780d09d71', name: "notification" }), h("digi-icon-chevron-right", { key: 'c74e46d8bbf9277ff50e83481463dfa64331b76f', class: "digi-link-button__icon" }))), this.afLinkContainer && (h(Fragment, { key: 'c5bcd05ed24fd616e839a237fb7be4b49b2181d1' }, h("slot", { key: 'e6def7b66cccd7d08da04cdb1b88efe9d79f8eee' }), this.hasNotification && h("slot", { key: '0d653fae65ffe1a9cbbba60292c9f6e87df80e65', name: "notification" })))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "digi-link-button"; }
|
|
64
64
|
static get encapsulation() { return "scoped"; }
|
|
@@ -144,9 +144,12 @@ export class LinkButton {
|
|
|
144
144
|
"docs": {
|
|
145
145
|
"tags": [{
|
|
146
146
|
"name": "en",
|
|
147
|
-
"text": "Set size.
|
|
147
|
+
"text": "Set size."
|
|
148
|
+
}, {
|
|
149
|
+
"name": "deprecated",
|
|
150
|
+
"text": "Obs - variationerna \"medium-large\" och \"large\" f\u00F6rsvinner i januari 2026, d\u00E4rmed f\u00F6rsvinner \u00E4ven afSize. Storleken Medium blir standard."
|
|
148
151
|
}],
|
|
149
|
-
"text": "S\u00E4tter storlek.
|
|
152
|
+
"text": "S\u00E4tter storlek."
|
|
150
153
|
},
|
|
151
154
|
"getter": false,
|
|
152
155
|
"setter": false,
|
|
@@ -265,34 +265,22 @@ License: none (public domain)
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
:host {
|
|
268
|
-
--digi--list--
|
|
269
|
-
--digi--list--margin--bottom: var(--digi--margin--large);
|
|
270
|
-
}
|
|
271
|
-
:host .digi-list {
|
|
272
|
-
--LIST--PADDING-INLINE-START: 0;
|
|
273
|
-
padding-inline-start: var(--LIST--PADDING-INLINE-START);
|
|
274
|
-
margin-top: var(--digi--list--margin--top);
|
|
275
|
-
margin-bottom: var(--digi--list--margin--bottom);
|
|
276
|
-
box-sizing: border-box;
|
|
277
|
-
width: 100%;
|
|
278
|
-
}
|
|
279
|
-
:host .digi-list--numbered {
|
|
280
|
-
--LIST--PADDING-INLINE-START: 1.5rem;
|
|
281
|
-
}
|
|
282
|
-
:host .digi-list--bullet {
|
|
283
|
-
--LIST--PADDING-INLINE-START: 1.5rem;
|
|
268
|
+
--digi--list--padding-inline-start: 0.25rem;
|
|
284
269
|
}
|
|
285
270
|
:host .digi-list--checked {
|
|
286
|
-
--LIST--PADDING-INLINE-START: 0;
|
|
287
271
|
list-style-position: inside;
|
|
272
|
+
padding-inline-start: var(--digi--list--padding-inline-start);
|
|
288
273
|
}
|
|
289
|
-
:host .digi-list
|
|
290
|
-
|
|
274
|
+
:host .digi-list--checked li {
|
|
275
|
+
list-style: none;
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: flex-start;
|
|
291
278
|
}
|
|
292
279
|
|
|
293
280
|
::slotted(* .digi-list--checked .digi-list__icon) {
|
|
294
281
|
padding-right: var(--digi--padding--small);
|
|
295
282
|
width: 1rem;
|
|
283
|
+
min-height: auto;
|
|
296
284
|
flex-shrink: 0;
|
|
297
285
|
align-items: start;
|
|
298
286
|
margin-top: 0.4375rem;
|
|
@@ -43,9 +43,6 @@ export class List {
|
|
|
43
43
|
if (this.afListType === ListType.CHECKED) {
|
|
44
44
|
const lis = this.hostElement.querySelectorAll('li');
|
|
45
45
|
lis.forEach((li) => {
|
|
46
|
-
li.style.listStyle = 'none';
|
|
47
|
-
li.style.display = 'flex';
|
|
48
|
-
li.style.alignItems = 'flex-start';
|
|
49
46
|
if (!li.querySelector('digi-icon-check')) {
|
|
50
47
|
const icon = document.createElement('digi-icon-check');
|
|
51
48
|
icon.classList.add('digi-list__icon');
|
|
@@ -53,6 +50,15 @@ export class List {
|
|
|
53
50
|
}
|
|
54
51
|
});
|
|
55
52
|
}
|
|
53
|
+
else {
|
|
54
|
+
const lis = this.hostElement.querySelectorAll('li');
|
|
55
|
+
lis.forEach((li) => {
|
|
56
|
+
const icon = li.querySelector('digi-icon-check');
|
|
57
|
+
if (icon) {
|
|
58
|
+
li.removeChild(icon);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
getListItems() {
|
|
58
64
|
const slotItems = this.hostElement.querySelectorAll('li');
|
|
@@ -66,16 +72,13 @@ export class List {
|
|
|
66
72
|
this.hasSlottedItems = true;
|
|
67
73
|
this.listItems = Array.from(slotItems);
|
|
68
74
|
}
|
|
69
|
-
get listElement() {
|
|
70
|
-
return this.afListType === ListType.NUMBERED ? 'ol' : 'ul';
|
|
71
|
-
}
|
|
72
75
|
render() {
|
|
73
76
|
const Tag = this.afListType === ListType.NUMBERED ? 'ol' : 'ul';
|
|
74
77
|
const className = {
|
|
75
78
|
'digi-list': true,
|
|
76
79
|
[`digi-list--${this.afListType}`]: true
|
|
77
80
|
};
|
|
78
|
-
return (h("digi-typography", { key: '
|
|
81
|
+
return (h("digi-typography", { key: '2c3f61b8ff3a0d8fb476d06ef06b650bd04422ef' }, h(Tag, { key: 'aa10692caf21f135486a30cd3a91d563d2b0c333', class: className }, h("slot", { key: '6c6dcd731c16f065714515a9acd8665aa1aeba10' }))));
|
|
79
82
|
}
|
|
80
83
|
static get is() { return "digi-list"; }
|
|
81
84
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.css
CHANGED
|
@@ -303,6 +303,8 @@ License: none (public domain)
|
|
|
303
303
|
font-family: var(--digi--navigation-breadcrumbs--item--font-family);
|
|
304
304
|
font-size: var(--digi--navigation-breadcrumbs--item--font-size);
|
|
305
305
|
color: var(--digi--navigation-breadcrumbs--item--color);
|
|
306
|
+
width: unset;
|
|
307
|
+
margin-bottom: unset;
|
|
306
308
|
}
|
|
307
309
|
:host .digi-navigation-breadcrumbs__item:not([aria-current=page])::after {
|
|
308
310
|
content: "/";
|
|
@@ -26,6 +26,11 @@ export class NavigationTablist {
|
|
|
26
26
|
// How many whole tabs fit? Nudge by tolerance to avoid off-by-one at zoom edges
|
|
27
27
|
const tabsPerWindow = Math.floor((containerWidth + tolerance) / avgTabWidth);
|
|
28
28
|
this.tabsPerWindow = Math.max(1, Math.min(tabsPerWindow, tabsCount));
|
|
29
|
+
// Ensure windowTab stays within valid bounds after resize
|
|
30
|
+
const maxValidWindowTab = Math.max(0, tabsCount - this.tabsPerWindow);
|
|
31
|
+
if (this.windowTab > maxValidWindowTab) {
|
|
32
|
+
this.windowTab = maxValidWindowTab;
|
|
33
|
+
}
|
|
29
34
|
// Overflow check with tolerance
|
|
30
35
|
this.listOverflows = contentWidth - containerWidth > tolerance;
|
|
31
36
|
// (Optional) if you have left/right “handles”, compute visibility too:
|
|
@@ -167,7 +172,19 @@ export class NavigationTablist {
|
|
|
167
172
|
this.afTabChange.emit(tab);
|
|
168
173
|
}
|
|
169
174
|
handleTabControl(direction) {
|
|
170
|
-
|
|
175
|
+
// Calculate the current window group
|
|
176
|
+
const currentGroup = Math.floor(this.windowTab / this.tabsPerWindow);
|
|
177
|
+
const totalGroups = Math.ceil(this.tabs.length / this.tabsPerWindow);
|
|
178
|
+
let newGroup;
|
|
179
|
+
if (direction === Direction.Next) {
|
|
180
|
+
newGroup = Math.min(currentGroup + 1, totalGroups - 1);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
newGroup = Math.max(currentGroup - 1, 0);
|
|
184
|
+
}
|
|
185
|
+
// Move to the first tab of the target group
|
|
186
|
+
const newWindowTab = newGroup * this.tabsPerWindow;
|
|
187
|
+
this.moveWindow(newWindowTab);
|
|
171
188
|
}
|
|
172
189
|
setActiveTabAndFocus(tabIdx) {
|
|
173
190
|
this.activeTab = tabIdx;
|
|
@@ -221,14 +238,14 @@ export class NavigationTablist {
|
|
|
221
238
|
cancelAnimationFrame(this._requestAnimationFrame);
|
|
222
239
|
}
|
|
223
240
|
render() {
|
|
224
|
-
return (h(Host, { key: '
|
|
241
|
+
return (h(Host, { key: 'aa87d470a00824859deb1e9305497f0001339c6a' }, h("div", { key: 'd2ea6128277f7aa604f8fab19828e5aabca636b3', class: {
|
|
225
242
|
'digi-tablist': true,
|
|
226
243
|
'digi-tablist--overflow-scroll': this.afOverflowMode === OverflowMode.Scroll,
|
|
227
244
|
'digi-tablist--overflow-controls': this.afOverflowMode === OverflowMode.Controls
|
|
228
|
-
} }, h("div", { key: '
|
|
245
|
+
} }, h("div", { key: '70f11f894aebe7b07ba8242e77415269b4993d3b', class: "control-wrapper", style: {
|
|
229
246
|
left: '0',
|
|
230
247
|
visibility: this.showPrev ? 'visible' : 'hidden'
|
|
231
|
-
} }, h("button", { key: '
|
|
248
|
+
} }, h("button", { key: 'e3f12c0df8027fb68d0dc2a3959e3eb381c32cc0', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Previous) }, h("digi-icon-chevron-left", { key: '5c38bf4c6a812b8a3037ac56f157fcca621aeeb0' }))), h("div", { key: '64a663ca0549924b09ac5c8e2baf3068ddcd31f5', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
|
|
232
249
|
const focusable = tab.id === this.tabs[this.selectedTab].id;
|
|
233
250
|
const isActive = tab.id === this.tabs[this.activeTab].id;
|
|
234
251
|
const Icon = `digi-icon-${tab.icon}`;
|
|
@@ -237,10 +254,10 @@ export class NavigationTablist {
|
|
|
237
254
|
'digi-tab': true,
|
|
238
255
|
'is-active': isActive
|
|
239
256
|
}, id: `tab-${tab.id}`, role: "tab", type: "button", tabindex: focusable ? '0' : '-1', "aria-label": tab.ariaLabel, "aria-selected": isActive.toString(), "aria-controls": `tabpanel-${tab.id}`, onClick: () => this.handleTabChange(tab) }, h("div", { class: "content-wrapper" }, h("span", { class: "tablist-content" }, tab.icon && h(Icon, { "aria-hidden": "true" }), h("span", { class: "title", "data-text": tab.title }, tab.title), tab.badgeValue && (h("digi-badge-notification", { afValue: badgeValue, "aria-hidden": "true" }))), h("div", { class: "indicator" }))));
|
|
240
|
-
})), h("div", { key: '
|
|
257
|
+
})), h("div", { key: '0b1a044dee5a083e591c432eb3f581e3b55d8194', class: "control-wrapper", style: {
|
|
241
258
|
right: '0',
|
|
242
259
|
visibility: this.showNext ? 'visible' : 'hidden'
|
|
243
|
-
} }, h("button", { key: '
|
|
260
|
+
} }, h("button", { key: '1a7cae20dc4c7e642d42e387ef8943a7b50fcede', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Next) }, h("digi-icon-chevron-right", { key: '4a5b8f1777c8dda09b6ff6dbbcd56cf86cac1d95' })))), h("div", { key: '91aaa4dedab1a063461b6c15e030bd5a29259c9b', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, h("slot", { key: 'fac2b5dacfc27c2cc51166d4841f122f5b496506' }))));
|
|
244
261
|
}
|
|
245
262
|
static get is() { return "digi-tablist"; }
|
|
246
263
|
static get encapsulation() { return "scoped"; }
|
|
@@ -495,8 +495,17 @@ License: none (public domain)
|
|
|
495
495
|
);
|
|
496
496
|
--digi--progress-indicator--step--line--style: dashed;
|
|
497
497
|
}
|
|
498
|
-
:host .digi-progress-indicator__step--current span {
|
|
499
|
-
box-shadow: inset 0px 0px 0px
|
|
498
|
+
:host .digi-progress-indicator__step--current span:not(:has(> digi-icon-validation-error)):not(:has(> digi-icon-validation-warning)) {
|
|
499
|
+
box-shadow: inset 0px 0px 0px 3px var(--digi--color--background--primary), 0 0 0 3px var(--digi--progress-indicator--step--background);
|
|
500
|
+
width: 1.75rem;
|
|
501
|
+
height: 1.75rem;
|
|
502
|
+
}
|
|
503
|
+
@media (max-width: 36rem) {
|
|
504
|
+
:host .digi-progress-indicator__step--current span:not(:has(> digi-icon-validation-error)):not(:has(> digi-icon-validation-warning)) {
|
|
505
|
+
width: 1.375rem;
|
|
506
|
+
height: 1.375rem;
|
|
507
|
+
box-shadow: inset 0px 0px 0px 3px var(--digi--color--background--primary), 0 0 0 2px var(--digi--progress-indicator--step--background);
|
|
508
|
+
}
|
|
500
509
|
}
|
|
501
510
|
:host .digi-progress-indicator__step--warning, :host .digi-progress-indicator__step--error {
|
|
502
511
|
--digi--progress-indicator--step--background: transparent;
|
|
@@ -523,6 +532,10 @@ License: none (public domain)
|
|
|
523
532
|
:host .digi-progress-indicator__step-indicator {
|
|
524
533
|
width: 1.1rem;
|
|
525
534
|
height: 1.1rem;
|
|
535
|
+
--digi--progress-indicator--icon-status--width: 1.3rem;
|
|
536
|
+
--digi--progress-indicator--icon-status--width: 1.3rem;
|
|
537
|
+
--digi--progress-indicator--icon--width: 0.6rem;
|
|
538
|
+
--digi--progress-indicator--icon--height: 0.6rem;
|
|
526
539
|
}
|
|
527
540
|
}
|
|
528
541
|
:host .digi-progress-indicator__step-number {
|
|
@@ -27,7 +27,7 @@ export class Tag {
|
|
|
27
27
|
return this.afText;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("digi-button", { key: '
|
|
30
|
+
return (h("digi-button", { key: '25fdc1c2823e98fde25fcfa24be67d47a4fef609', onAfOnClick: (e) => this.clickHandler(e), "af-variation": "secondary", "af-size": this.afSize, class: "digi-tag", "af-aria-label": this.ariaLabel }, this.afText, !this.afNoIcon && h("digi-icon-x", { key: '2b23fc2ea9682c42f9e0e791499eee1ee377a457', slot: "icon-secondary" })));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "digi-tag"; }
|
|
33
33
|
static get encapsulation() { return "scoped"; }
|
|
@@ -130,6 +130,9 @@ export class Tag {
|
|
|
130
130
|
"tags": [{
|
|
131
131
|
"name": "en",
|
|
132
132
|
"text": "Sets tag size."
|
|
133
|
+
}, {
|
|
134
|
+
"name": "deprecated",
|
|
135
|
+
"text": "Obs - variationen \"large\" f\u00F6rsvinner i januari 2026."
|
|
133
136
|
}],
|
|
134
137
|
"text": "S\u00E4tter taggens storlek."
|
|
135
138
|
},
|
|
@@ -763,9 +763,18 @@ digi-typography dl {
|
|
|
763
763
|
max-width: var(--digi--paragraph-width--medium);
|
|
764
764
|
margin-bottom: var(--MARGIN--BODY);
|
|
765
765
|
}
|
|
766
|
-
digi-typography ul
|
|
767
|
-
|
|
768
|
-
|
|
766
|
+
digi-typography ul, digi-typography ol {
|
|
767
|
+
margin: 0 0 var(--MARGIN--BODY) 0;
|
|
768
|
+
padding-inline-start: 1.5rem;
|
|
769
|
+
}
|
|
770
|
+
digi-typography ul li, digi-typography ol li {
|
|
771
|
+
margin-top: initial;
|
|
772
|
+
margin-bottom: 0.5rem;
|
|
773
|
+
box-sizing: border-box;
|
|
774
|
+
width: 100%;
|
|
775
|
+
padding-left: 0;
|
|
776
|
+
}
|
|
777
|
+
digi-typography ul li:last-child, digi-typography ol li:last-child {
|
|
769
778
|
margin-bottom: 0;
|
|
770
779
|
}
|
|
771
780
|
digi-typography a {
|
|
@@ -19,7 +19,7 @@ export class Typography {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '4a881c4feb6cbe1cf6b50a49209d0ba3ed373324', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, h("slot", { key: '4935b0dbadff8ed9f1830b23caa976701a29343e' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "digi-typography"; }
|
|
25
25
|
static get originalStyleUrls() {
|
|
@@ -54,6 +54,9 @@ export class Typography {
|
|
|
54
54
|
"tags": [{
|
|
55
55
|
"name": "en",
|
|
56
56
|
"text": "Set variation. Can be 'small' or 'large'"
|
|
57
|
+
}, {
|
|
58
|
+
"name": "deprecated",
|
|
59
|
+
"text": "Obs - Propertyn utg\u00E5r, typografin kommer bara finnas med en bas p\u00E5 16px font-storlek. Tas bort i februari 2026."
|
|
57
60
|
}],
|
|
58
61
|
"text": "S\u00E4tter variant. Kan vara 'small' eller 'large'"
|
|
59
62
|
},
|