@designsystem-se/af 41.0.1-beta.2 → 41.0.1-beta.3
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-calendar-datepicker.js +2 -2
- package/components/digi-calendar.js +1 -1
- package/components/digi-form-select.js +1 -1
- package/components/{p-DdGvmUiV.js → p-DI0_hUPN.js} +1 -1
- package/components/{p-C9upnau2.js → p-DRVEvFMd.js} +5 -4
- package/dist/cjs/digi-button_83.cjs.entry.js +5 -4
- package/dist/collection/components/_form/form-select/form-select.js +5 -4
- package/dist/collection/design-tokens/components/_logo.variables.scss +0 -2
- package/dist/collection/styles/project.json +2 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +15 -17
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-3f6d6a9e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/styles/project.json +2 -1
- package/dist/esm/digi-button_83.entry.js +5 -4
- package/hydrate/index.js +5 -4
- package/hydrate/index.mjs +5 -4
- package/package.json +4 -2
- package/dist/digi-arbetsformedlingen/p-189d472b.entry.js +0 -1
|
@@ -52,10 +52,10 @@ import './p-rhVqmQwC.js';
|
|
|
52
52
|
import './p-DPq588Q4.js';
|
|
53
53
|
import { r as randomIdGenerator } from './p-BGaIliX6.js';
|
|
54
54
|
import { d as detectClickOutside } from './p-CZrDWyoh.js';
|
|
55
|
-
import { i as isBefore, a as isAfter, d as defineCustomElement$e } from './p-
|
|
55
|
+
import { i as isBefore, a as isAfter, d as defineCustomElement$e } from './p-DI0_hUPN.js';
|
|
56
56
|
import { d as defineCustomElement$d } from './p-stxQJv63.js';
|
|
57
57
|
import { d as defineCustomElement$c } from './p-B7_lQTCU.js';
|
|
58
|
-
import { d as defineCustomElement$b } from './p-
|
|
58
|
+
import { d as defineCustomElement$b } from './p-DRVEvFMd.js';
|
|
59
59
|
import { d as defineCustomElement$a } from './p-DNhJBhBA.js';
|
|
60
60
|
import { d as defineCustomElement$9 } from './p-QvPB-fXB.js';
|
|
61
61
|
import { d as defineCustomElement$8 } from './p-If6yBCD2.js';
|
|
@@ -5,7 +5,7 @@ import { d as detectFocusOutside } from './p-C4cIvg7J.js';
|
|
|
5
5
|
import { l as logger } from './p-DdB9j8uV.js';
|
|
6
6
|
import { _ as _t } from './p-DsO1BTml.js';
|
|
7
7
|
import { d as defineCustomElement$a } from './p-B7_lQTCU.js';
|
|
8
|
-
import { d as defineCustomElement$9 } from './p-
|
|
8
|
+
import { d as defineCustomElement$9 } from './p-DRVEvFMd.js';
|
|
9
9
|
import { d as defineCustomElement$8 } from './p-DNhJBhBA.js';
|
|
10
10
|
import { d as defineCustomElement$7 } from './p-If6yBCD2.js';
|
|
11
11
|
import { d as defineCustomElement$6 } from './p-BfdPFRyd.js';
|
|
@@ -91,7 +91,8 @@ const FormSelect = /*@__PURE__*/ proxyCustomElement(class FormSelect extends H {
|
|
|
91
91
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
92
92
|
this.optionsObserver.observe(this.hostElement, {
|
|
93
93
|
childList: true,
|
|
94
|
-
subtree: true
|
|
94
|
+
subtree: true,
|
|
95
|
+
characterData: true
|
|
95
96
|
});
|
|
96
97
|
this.getOptions();
|
|
97
98
|
this.afOnReady.emit();
|
|
@@ -161,14 +162,14 @@ const FormSelect = /*@__PURE__*/ proxyCustomElement(class FormSelect extends H {
|
|
|
161
162
|
: false;
|
|
162
163
|
}
|
|
163
164
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, h("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, h("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
|
|
165
166
|
? 'true'
|
|
166
|
-
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '
|
|
167
|
+
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
|
|
167
168
|
'digi-form-select__select-option': true,
|
|
168
169
|
'digi-form-select__select-option--initial-value': true
|
|
169
170
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
170
171
|
return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
171
|
-
})), h("digi-icon-input-select-marker", { key: '
|
|
172
|
+
})), h("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), h("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, h("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), h("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, h("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
172
173
|
}
|
|
173
174
|
get hostElement() { return this; }
|
|
174
175
|
static get watchers() { return {
|
|
@@ -5309,7 +5309,8 @@ const FormSelect = class {
|
|
|
5309
5309
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
5310
5310
|
this.optionsObserver.observe(this.hostElement, {
|
|
5311
5311
|
childList: true,
|
|
5312
|
-
subtree: true
|
|
5312
|
+
subtree: true,
|
|
5313
|
+
characterData: true
|
|
5313
5314
|
});
|
|
5314
5315
|
this.getOptions();
|
|
5315
5316
|
this.afOnReady.emit();
|
|
@@ -5379,14 +5380,14 @@ const FormSelect = class {
|
|
|
5379
5380
|
: false;
|
|
5380
5381
|
}
|
|
5381
5382
|
render() {
|
|
5382
|
-
return (index.h(index.Host, { key: '
|
|
5383
|
+
return (index.h(index.Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, index.h("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, index.h("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, index.h("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), index.h("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, index.h("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR
|
|
5383
5384
|
? 'true'
|
|
5384
|
-
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (index.h("option", { key: '
|
|
5385
|
+
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (index.h("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
|
|
5385
5386
|
'digi-form-select__select-option': true,
|
|
5386
5387
|
'digi-form-select__select-option--initial-value': true
|
|
5387
5388
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index$1) => {
|
|
5388
5389
|
return (index.h("option", { key: index$1, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
5389
|
-
})), index.h("digi-icon-input-select-marker", { key: '
|
|
5390
|
+
})), index.h("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), index.h("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, index.h("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), index.h("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, index.h("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (index.h("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
5390
5391
|
}
|
|
5391
5392
|
get hostElement() { return index.getElement(this); }
|
|
5392
5393
|
static get watchers() { return {
|
|
@@ -81,7 +81,8 @@ export class FormSelect {
|
|
|
81
81
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
82
82
|
this.optionsObserver.observe(this.hostElement, {
|
|
83
83
|
childList: true,
|
|
84
|
-
subtree: true
|
|
84
|
+
subtree: true,
|
|
85
|
+
characterData: true
|
|
85
86
|
});
|
|
86
87
|
this.getOptions();
|
|
87
88
|
this.afOnReady.emit();
|
|
@@ -151,14 +152,14 @@ export class FormSelect {
|
|
|
151
152
|
: false;
|
|
152
153
|
}
|
|
153
154
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, h("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '0144ed5018666da00966461aee1e0cb716fd3dc4', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, h("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
|
|
155
156
|
? 'true'
|
|
156
|
-
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '
|
|
157
|
+
: 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
|
|
157
158
|
'digi-form-select__select-option': true,
|
|
158
159
|
'digi-form-select__select-option--initial-value': true
|
|
159
160
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
160
161
|
return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
161
|
-
})), h("digi-icon-input-select-marker", { key: '
|
|
162
|
+
})), h("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), h("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, h("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), h("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, h("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
162
163
|
}
|
|
163
164
|
static get is() { return "digi-form-select"; }
|
|
164
165
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,6 +15,4 @@
|
|
|
15
15
|
--digi--logo--secondary--symbol: var(--digi--color--logotype--secondary--symbol);
|
|
16
16
|
--digi--logo--primary--text: var(--digi--color--logotype--primary--text);
|
|
17
17
|
--digi--logo--secondary--text: var(--digi--color--logotype--secondary--text);
|
|
18
|
-
}g: 1.375rem;
|
|
19
|
-
--digi--title-logo-gap: 9px;
|
|
20
18
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--digi--logo
|
|
5
|
-
--digi--logo--
|
|
6
|
-
--digi--logo
|
|
7
|
-
--digi--logo
|
|
8
|
-
|
|
9
|
-
--digi--logo
|
|
10
|
-
--digi--logo
|
|
11
|
-
--digi--logo
|
|
12
|
-
--digi--logo
|
|
13
|
-
|
|
14
|
-
--digi--logo
|
|
15
|
-
--digi--logo
|
|
16
|
-
--digi--logo--primary--text: var(--digi--color--logotype--primary--text);
|
|
17
|
-
--digi--logo--secondary--text: var(--digi--color--logotype--secondary--text);
|
|
1
|
+
@mixin digi-title-logo--variables() {
|
|
2
|
+
--digi--title-logo-text-color: var(--digi--color--text--primary);
|
|
3
|
+
--digi--title-logo-font-weight: var(--digi--global--typography--font-weight--bold);
|
|
4
|
+
--digi--title-logo-font-size: var(--digi--typography--title-logo--font-size--mobile);
|
|
5
|
+
--digi--title-logo-font-size-small: var(--digi--global--typography--font-size--large);
|
|
6
|
+
--digi--title-logo-line-height-small: 1.25rem;
|
|
7
|
+
--digi--title-logo-symbol-color: var(--digi--color--logotype--primary--symbol);
|
|
8
|
+
--digi--title-logo-symbol-width: 36px;
|
|
9
|
+
--digi--title-logo-symbol-height: 36px;
|
|
10
|
+
--digi--title-logo-symbol-width-mobile: 44px;
|
|
11
|
+
--digi--title-logo-symbol-height-mobile: 44px;
|
|
12
|
+
--digi--title-logo-text-height: 40px;
|
|
13
|
+
--digi--title-logo-border-width: var(--digi--global--border-width--base);
|
|
14
|
+
--digi--title-logo-vertical-padding: 1.375rem;
|
|
15
|
+
--digi--title-logo-gap: 9px;
|
|
18
16
|
}
|