@designsystem-se/af 41.0.1-beta.1 → 41.0.1-beta.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-calendar-datepicker.js +4 -4
- package/components/digi-calendar.js +1 -1
- package/components/digi-form-file-upload.js +1 -1
- package/components/digi-form-input-search.js +2 -2
- package/components/digi-form-input.js +1 -1
- package/components/digi-form-label.js +1 -1
- package/components/digi-form-select-filter.js +2 -2
- package/components/digi-form-select.js +1 -1
- package/components/digi-form-textarea.js +1 -1
- package/components/{p-2QoafdpB.js → p-B7_lQTCU.js} +19 -5
- package/components/{p-CsnkG9DM.js → p-C9upnau2.js} +1 -1
- package/components/{p-DL56hj-Q.js → p-DdGvmUiV.js} +2 -2
- package/components/{p-CZNczF84.js → p-stxQJv63.js} +1 -1
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_83.cjs.entry.js +11 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/_form/form-label/form-label.js +12 -4
- package/dist/collection/design-tokens/components/_logo.variables.scss +18 -14
- package/dist/collection/styles/project.json +1 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-189d472b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/styles/project.json +1 -2
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_83.entry.js +11 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/_form/form-label/form-label.d.ts +2 -1
- package/hydrate/index.js +12 -4
- package/hydrate/index.mjs +12 -4
- package/package.json +1 -1
- package/dist/digi-arbetsformedlingen/p-5c8111ef.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -26832,7 +26832,7 @@ class FormLabel {
|
|
|
26832
26832
|
this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
|
|
26833
26833
|
}
|
|
26834
26834
|
componentWillLoad() {
|
|
26835
|
-
this.
|
|
26835
|
+
this.setLabelText();
|
|
26836
26836
|
this.validateFor();
|
|
26837
26837
|
this.handleSlotVisibility();
|
|
26838
26838
|
}
|
|
@@ -26841,7 +26841,8 @@ class FormLabel {
|
|
|
26841
26841
|
logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
|
|
26842
26842
|
}
|
|
26843
26843
|
}
|
|
26844
|
-
|
|
26844
|
+
setLabelText() {
|
|
26845
|
+
this.labelText = `${this.afLabel} ${this.requiredText}`;
|
|
26845
26846
|
if (!this.afLabel) {
|
|
26846
26847
|
logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
|
|
26847
26848
|
}
|
|
@@ -26863,7 +26864,7 @@ class FormLabel {
|
|
|
26863
26864
|
}
|
|
26864
26865
|
}
|
|
26865
26866
|
render() {
|
|
26866
|
-
return (hAsync("div", { key: '
|
|
26867
|
+
return (hAsync("div", { key: '78c3c9cc7609ede22abcd68c16514c85b52c945e', class: "digi-form-label" }, hAsync("div", { key: '5bd7a74e6508c261f489716673f011391bf7c0d8', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (hAsync("label", { key: '6952422ebe4e447857befae6116fd7336046dc1f', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, hAsync("span", { key: '2da61e9396c9c20b40ee4d80c21ae96e2a491e8f', tabindex: "-1", class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (hAsync("span", { key: '858d2ae39681662c278352e42b7bccb511279bd0', tabindex: "-1", class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (hAsync("div", { key: '7719bef7cfe38637a5ef4b71d5e9a6237ed48ff2', class: "digi-form-label__actions" }, hAsync("slot", { key: '37bd2332a7d4e7fa15c4ff61a0cc26c92bed08d8', name: "actions" }))))));
|
|
26867
26868
|
}
|
|
26868
26869
|
get hostElement() { return getElement(this); }
|
|
26869
26870
|
static get watchers() { return {
|
|
@@ -26871,7 +26872,13 @@ class FormLabel {
|
|
|
26871
26872
|
"validateFor": 0
|
|
26872
26873
|
}],
|
|
26873
26874
|
"afLabel": [{
|
|
26874
|
-
"
|
|
26875
|
+
"setLabelText": 0
|
|
26876
|
+
}],
|
|
26877
|
+
"afRequired": [{
|
|
26878
|
+
"setLabelText": 0
|
|
26879
|
+
}],
|
|
26880
|
+
"afAnnounceIfOptional": [{
|
|
26881
|
+
"setLabelText": 0
|
|
26875
26882
|
}]
|
|
26876
26883
|
}; }
|
|
26877
26884
|
static get style() { return formLabelCss(); }
|
|
@@ -26887,6 +26894,7 @@ class FormLabel {
|
|
|
26887
26894
|
"afAnnounceIfOptional": [4, "af-announce-if-optional"],
|
|
26888
26895
|
"afRequiredText": [1, "af-required-text"],
|
|
26889
26896
|
"afAnnounceIfOptionalText": [1, "af-announce-if-optional-text"],
|
|
26897
|
+
"labelText": [32],
|
|
26890
26898
|
"hasActionSlot": [32]
|
|
26891
26899
|
},
|
|
26892
26900
|
"$listeners$": undefined,
|
package/hydrate/index.mjs
CHANGED
|
@@ -26830,7 +26830,7 @@ class FormLabel {
|
|
|
26830
26830
|
this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
|
|
26831
26831
|
}
|
|
26832
26832
|
componentWillLoad() {
|
|
26833
|
-
this.
|
|
26833
|
+
this.setLabelText();
|
|
26834
26834
|
this.validateFor();
|
|
26835
26835
|
this.handleSlotVisibility();
|
|
26836
26836
|
}
|
|
@@ -26839,7 +26839,8 @@ class FormLabel {
|
|
|
26839
26839
|
logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
|
|
26840
26840
|
}
|
|
26841
26841
|
}
|
|
26842
|
-
|
|
26842
|
+
setLabelText() {
|
|
26843
|
+
this.labelText = `${this.afLabel} ${this.requiredText}`;
|
|
26843
26844
|
if (!this.afLabel) {
|
|
26844
26845
|
logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
|
|
26845
26846
|
}
|
|
@@ -26861,7 +26862,7 @@ class FormLabel {
|
|
|
26861
26862
|
}
|
|
26862
26863
|
}
|
|
26863
26864
|
render() {
|
|
26864
|
-
return (hAsync("div", { key: '
|
|
26865
|
+
return (hAsync("div", { key: '78c3c9cc7609ede22abcd68c16514c85b52c945e', class: "digi-form-label" }, hAsync("div", { key: '5bd7a74e6508c261f489716673f011391bf7c0d8', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (hAsync("label", { key: '6952422ebe4e447857befae6116fd7336046dc1f', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, hAsync("span", { key: '2da61e9396c9c20b40ee4d80c21ae96e2a491e8f', tabindex: "-1", class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (hAsync("span", { key: '858d2ae39681662c278352e42b7bccb511279bd0', tabindex: "-1", class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (hAsync("div", { key: '7719bef7cfe38637a5ef4b71d5e9a6237ed48ff2', class: "digi-form-label__actions" }, hAsync("slot", { key: '37bd2332a7d4e7fa15c4ff61a0cc26c92bed08d8', name: "actions" }))))));
|
|
26865
26866
|
}
|
|
26866
26867
|
get hostElement() { return getElement(this); }
|
|
26867
26868
|
static get watchers() { return {
|
|
@@ -26869,7 +26870,13 @@ class FormLabel {
|
|
|
26869
26870
|
"validateFor": 0
|
|
26870
26871
|
}],
|
|
26871
26872
|
"afLabel": [{
|
|
26872
|
-
"
|
|
26873
|
+
"setLabelText": 0
|
|
26874
|
+
}],
|
|
26875
|
+
"afRequired": [{
|
|
26876
|
+
"setLabelText": 0
|
|
26877
|
+
}],
|
|
26878
|
+
"afAnnounceIfOptional": [{
|
|
26879
|
+
"setLabelText": 0
|
|
26873
26880
|
}]
|
|
26874
26881
|
}; }
|
|
26875
26882
|
static get style() { return formLabelCss(); }
|
|
@@ -26885,6 +26892,7 @@ class FormLabel {
|
|
|
26885
26892
|
"afAnnounceIfOptional": [4, "af-announce-if-optional"],
|
|
26886
26893
|
"afRequiredText": [1, "af-required-text"],
|
|
26887
26894
|
"afAnnounceIfOptionalText": [1, "af-announce-if-optional-text"],
|
|
26895
|
+
"labelText": [32],
|
|
26888
26896
|
"hasActionSlot": [32]
|
|
26889
26897
|
},
|
|
26890
26898
|
"$listeners$": undefined,
|
package/package.json
CHANGED