@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
|
@@ -5307,7 +5307,8 @@ const FormSelect = class {
|
|
|
5307
5307
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
5308
5308
|
this.optionsObserver.observe(this.hostElement, {
|
|
5309
5309
|
childList: true,
|
|
5310
|
-
subtree: true
|
|
5310
|
+
subtree: true,
|
|
5311
|
+
characterData: true
|
|
5311
5312
|
});
|
|
5312
5313
|
this.getOptions();
|
|
5313
5314
|
this.afOnReady.emit();
|
|
@@ -5377,14 +5378,14 @@ const FormSelect = class {
|
|
|
5377
5378
|
: false;
|
|
5378
5379
|
}
|
|
5379
5380
|
render() {
|
|
5380
|
-
return (h(Host, { key: '
|
|
5381
|
+
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
|
|
5381
5382
|
? 'true'
|
|
5382
|
-
: '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: '
|
|
5383
|
+
: '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: {
|
|
5383
5384
|
'digi-form-select__select-option': true,
|
|
5384
5385
|
'digi-form-select__select-option--initial-value': true
|
|
5385
5386
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
5386
5387
|
return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
5387
|
-
})), h("digi-icon-input-select-marker", { key: '
|
|
5388
|
+
})), 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)))))));
|
|
5388
5389
|
}
|
|
5389
5390
|
get hostElement() { return getElement(this); }
|
|
5390
5391
|
static get watchers() { return {
|
package/hydrate/index.js
CHANGED
|
@@ -27375,7 +27375,8 @@ class FormSelect {
|
|
|
27375
27375
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
27376
27376
|
this.optionsObserver.observe(this.hostElement, {
|
|
27377
27377
|
childList: true,
|
|
27378
|
-
subtree: true
|
|
27378
|
+
subtree: true,
|
|
27379
|
+
characterData: true
|
|
27379
27380
|
});
|
|
27380
27381
|
this.getOptions();
|
|
27381
27382
|
this.afOnReady.emit();
|
|
@@ -27445,14 +27446,14 @@ class FormSelect {
|
|
|
27445
27446
|
: false;
|
|
27446
27447
|
}
|
|
27447
27448
|
render() {
|
|
27448
|
-
return (hAsync(Host, { key: '
|
|
27449
|
+
return (hAsync(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, hAsync("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, hAsync("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 })), hAsync("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
|
|
27449
27450
|
? 'true'
|
|
27450
|
-
: '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 && (hAsync("option", { key: '
|
|
27451
|
+
: '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 && (hAsync("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
|
|
27451
27452
|
'digi-form-select__select-option': true,
|
|
27452
27453
|
'digi-form-select__select-option--initial-value': true
|
|
27453
27454
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
27454
27455
|
return (hAsync("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
27455
|
-
})), hAsync("digi-icon-input-select-marker", { key: '
|
|
27456
|
+
})), hAsync("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, hAsync("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), hAsync("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, hAsync("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
27456
27457
|
}
|
|
27457
27458
|
get hostElement() { return getElement(this); }
|
|
27458
27459
|
static get watchers() { return {
|
package/hydrate/index.mjs
CHANGED
|
@@ -27373,7 +27373,8 @@ class FormSelect {
|
|
|
27373
27373
|
this.optionsObserver = new MutationObserver(() => this.getOptions());
|
|
27374
27374
|
this.optionsObserver.observe(this.hostElement, {
|
|
27375
27375
|
childList: true,
|
|
27376
|
-
subtree: true
|
|
27376
|
+
subtree: true,
|
|
27377
|
+
characterData: true
|
|
27377
27378
|
});
|
|
27378
27379
|
this.getOptions();
|
|
27379
27380
|
this.afOnReady.emit();
|
|
@@ -27443,14 +27444,14 @@ class FormSelect {
|
|
|
27443
27444
|
: false;
|
|
27444
27445
|
}
|
|
27445
27446
|
render() {
|
|
27446
|
-
return (hAsync(Host, { key: '
|
|
27447
|
+
return (hAsync(Host, { key: '25781b1ef869d40adddd56e0bc76df15fb38824d', tabindex: -1 }, hAsync("div", { key: '134a4405b623a02f203539a0dc7e7a2b273a8997', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, hAsync("div", { key: '131cd12bd401525cd24568864087860947f78411', class: "digi-form-select__label-group" }, hAsync("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 })), hAsync("div", { key: '0b7f01ce1e8cb0ceb1e0dcc2c34ebf4766789804', class: "digi-form-select__select-wrapper" }, hAsync("select", { key: '76cdaf0d9afbaea218f1ef7aa9c938cb7cbc81c1', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
|
|
27447
27448
|
? 'true'
|
|
27448
|
-
: '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 && (hAsync("option", { key: '
|
|
27449
|
+
: '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 && (hAsync("option", { key: '50a6a16127c45e1d7bf18c9bf23d269f35360cf4', class: {
|
|
27449
27450
|
'digi-form-select__select-option': true,
|
|
27450
27451
|
'digi-form-select__select-option--initial-value': true
|
|
27451
27452
|
}, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
|
|
27452
27453
|
return (hAsync("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
|
|
27453
|
-
})), hAsync("digi-icon-input-select-marker", { key: '
|
|
27454
|
+
})), hAsync("digi-icon-input-select-marker", { key: '4f18ad875e8c9ce10c658c667f1fcf5530db9eb2', class: "digi-form-select__icon", slot: "icon" })), hAsync("div", { key: '723e27711db96646df989f4a7ed87e68b85434df', hidden: true }, hAsync("slot", { key: '0d0048a91cb95c882c43ac6f319f53f7e994a8bb' })), hAsync("div", { key: '42eff52b99714e2b1f53e58c50a0a9e8059efeeb', class: "digi-form-select__footer" }, hAsync("div", { key: '30f66c55f4595c1c2621d733e6e997b45d09600e', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (hAsync("digi-form-validation-message", { key: '7affedbbffd3a8bd13c562e21a24fd02562042a0', "af-variation": this.afValidation }, this.afValidationText)))))));
|
|
27454
27455
|
}
|
|
27455
27456
|
get hostElement() { return getElement(this); }
|
|
27456
27457
|
static get watchers() { return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designsystem-se/af",
|
|
3
3
|
"author": "Arbetsförmedlingen",
|
|
4
|
-
"version": "41.0.1-beta.
|
|
4
|
+
"version": "41.0.1-beta.3",
|
|
5
5
|
"description": "Web Components for Digi Designsystem",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"contributes": {
|
|
23
23
|
"html": {
|
|
24
|
-
"customData": [
|
|
24
|
+
"customData": [
|
|
25
|
+
"./custom-elements.json"
|
|
26
|
+
]
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
"publishConfig": {
|