@designsystem-se/af 41.0.0 → 41.0.1-beta.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-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-B7_lQTCU.js → p-2QoafdpB.js} +5 -19
- package/components/{p-stxQJv63.js → p-CZNczF84.js} +1 -1
- package/components/{p-C9upnau2.js → p-CsnkG9DM.js} +1 -1
- package/components/{p-DdGvmUiV.js → p-DL56hj-Q.js} +2 -2
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_83.cjs.entry.js +4 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/_form/form-label/form-label.js +4 -12
- package/dist/collection/design-tokens/components/_logo.variables.scss +14 -18
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-5c8111ef.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_83.entry.js +4 -11
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/_form/form-label/form-label.d.ts +1 -2
- package/hydrate/index.js +4 -12
- package/hydrate/index.mjs +4 -12
- package/package.json +2 -4
- package/dist/digi-arbetsformedlingen/p-189d472b.entry.js +0 -1
|
@@ -30,7 +30,7 @@ export class FormLabel {
|
|
|
30
30
|
this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
|
|
31
31
|
}
|
|
32
32
|
componentWillLoad() {
|
|
33
|
-
this.
|
|
33
|
+
this.warnIfMissingLabel();
|
|
34
34
|
this.validateFor();
|
|
35
35
|
this.handleSlotVisibility();
|
|
36
36
|
}
|
|
@@ -39,8 +39,7 @@ export class FormLabel {
|
|
|
39
39
|
logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
this.labelText = `${this.afLabel} ${this.requiredText}`;
|
|
42
|
+
warnIfMissingLabel() {
|
|
44
43
|
if (!this.afLabel) {
|
|
45
44
|
logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
|
|
46
45
|
}
|
|
@@ -62,7 +61,7 @@ export class FormLabel {
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
render() {
|
|
65
|
-
return (h("div", { key: '
|
|
64
|
+
return (h("div", { key: 'd505cd974e5fad197c27502bbd5a69e03b6da4c9', class: "digi-form-label" }, h("div", { key: '438d01b31f6b2814ae6a1ca04c824ea08ea2be23', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: 'f339da21e44bd1d80bc2bcd71f2a7b85ded421a3', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: '49c6e41049caafd257d39c8e4bbd61054e618ac9', tabindex: "-1", class: "digi-form-label__label--label" }, `${this.afLabel} ${this.requiredText}`), this.afDescription && (h("span", { key: '857cf559d405dc425fb16289d216cc5ed500775f', tabindex: "-1", class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: '11a7132c78dc5467b25c8a09724a1d13f3a324c3', class: "digi-form-label__actions" }, h("slot", { key: 'f499d1b9d31ccc825723a880bea8f110658b462d', name: "actions" }))))));
|
|
66
65
|
}
|
|
67
66
|
static get is() { return "digi-form-label"; }
|
|
68
67
|
static get encapsulation() { return "scoped"; }
|
|
@@ -262,7 +261,6 @@ export class FormLabel {
|
|
|
262
261
|
}
|
|
263
262
|
static get states() {
|
|
264
263
|
return {
|
|
265
|
-
"labelText": {},
|
|
266
264
|
"hasActionSlot": {}
|
|
267
265
|
};
|
|
268
266
|
}
|
|
@@ -273,13 +271,7 @@ export class FormLabel {
|
|
|
273
271
|
"methodName": "validateFor"
|
|
274
272
|
}, {
|
|
275
273
|
"propName": "afLabel",
|
|
276
|
-
"methodName": "
|
|
277
|
-
}, {
|
|
278
|
-
"propName": "afRequired",
|
|
279
|
-
"methodName": "setLabelText"
|
|
280
|
-
}, {
|
|
281
|
-
"propName": "afAnnounceIfOptional",
|
|
282
|
-
"methodName": "setLabelText"
|
|
274
|
+
"methodName": "warnIfMissingLabel"
|
|
283
275
|
}];
|
|
284
276
|
}
|
|
285
277
|
}
|
|
@@ -1,20 +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--secondary--symbol: var(--digi--color--logotype--secondary--symbol);
|
|
16
|
-
--digi--logo--primary--text: var(--digi--color--logotype--primary--text);
|
|
17
|
-
--digi--logo--secondary--text: var(--digi--color--logotype--secondary--text);
|
|
18
|
-
}g: 1.375rem;
|
|
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;
|
|
19
15
|
--digi--title-logo-gap: 9px;
|
|
20
16
|
}
|