@designsystem-se/af 39.1.0-beta.2 → 39.1.0-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-bar-chart.js +1 -1
- package/components/digi-button.js +1 -1
- package/components/digi-calendar-week-view.js +2 -2
- package/components/digi-chart-line.js +1 -1
- 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 +1 -1
- package/components/digi-form-category-filter.js +1 -1
- package/components/digi-form-error-list.js +2 -2
- package/components/digi-form-file-upload.js +1 -1
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-input-search.js +2 -2
- package/components/digi-form-select-filter.js +1 -1
- package/components/digi-header-navigation.js +1 -1
- package/components/digi-header.js +2 -2
- package/components/digi-navigation-pagination.js +1 -1
- 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-tag.js +1 -1
- package/components/digi-tools-feedback-banner.js +7 -2
- package/components/digi-tools-feedback.js +1 -1
- package/components/p-3IdGnhr5.js +172 -0
- package/components/{p-DDZ0nalw.js → p-B-hL6z4l.js} +1 -1
- package/components/{p-Dq9EWvk8.js → p-BOM-CTrq.js} +1 -1
- package/components/{p-C32dTT4K.js → p-BZkK1uIs.js} +1 -1
- package/dist/cjs/button-type.enum-2UH0KkO-.js +8 -0
- package/dist/cjs/{button-variation.enum-DkUalo9f.js → button-variation.enum-ngMqFLdW.js} +6 -0
- package/dist/cjs/{code-example-variation.enum-BCENTUV2.js → code-example-variation.enum-Cq-BioXW.js} +0 -6
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/{digi-calendar-week-view.cjs.entry.js → digi-button_5.cjs.entry.js} +260 -72
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +10 -6
- package/dist/cjs/digi-code-block_3.cjs.entry.js +10 -6
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -4
- package/dist/cjs/digi-dialog.cjs.entry.js +10 -6
- package/dist/cjs/digi-footer.cjs.entry.js +9 -5
- package/dist/cjs/digi-form-error-list.cjs.entry.js +9 -5
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +11 -10
- package/dist/cjs/digi-form-input-search.cjs.entry.js +9 -7
- package/dist/cjs/digi-form-input.cjs.entry.js +205 -0
- package/dist/cjs/digi-form-label_3.cjs.entry.js +147 -0
- package/dist/cjs/digi-form-receipt.cjs.entry.js +9 -5
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +649 -0
- package/dist/cjs/digi-header-navigation.cjs.entry.js +9 -5
- package/dist/cjs/digi-header.cjs.entry.js +9 -5
- package/dist/cjs/digi-icon-check.cjs.entry.js +28 -0
- package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +28 -0
- package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +51 -0
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +9 -5
- package/dist/cjs/digi-notification-alert.cjs.entry.js +9 -5
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +9 -5
- package/dist/cjs/digi-title-logo.cjs.entry.js +9 -5
- package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +7 -2
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +11 -7
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +81 -0
- package/dist/cjs/{form-validation-message-variation.enum-DgkifAnP.js → form-file-upload-variation.enum-xcEOoggr.js} +0 -7
- package/dist/cjs/form-input-search-variation.enum-VVfvlVeM.js +8 -0
- package/dist/cjs/{form-input-type.enum-B2CsNSBg.js → form-input-type.enum-DvF_MTHK.js} +0 -14
- package/dist/cjs/form-input-variation.enum-kpoXNUuI.js +29 -0
- package/dist/cjs/form-validation-message-variation.enum-BA5nmCiw.js +8 -0
- package/dist/cjs/index-tbq85ezH.js +26 -10
- package/dist/cjs/index.cjs.js +52 -48
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-4snUBTF7.js → typography-variation.enum-BDSt7CVI.js} +0 -28
- package/dist/collection/components/_button/button/button.css +23 -0
- package/dist/collection/components/_calendar/week-view/calendar-week-view.css +36 -47
- package/dist/collection/components/_form/form-file-upload/form-file-upload.css +11 -15
- package/dist/collection/components/_form/form-input-search/form-input-search.css +0 -4
- package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +7 -2
- package/dist/collection/design-tokens/components/_button.variables.scss +6 -0
- package/dist/collection/design-tokens/components/_logo.variables.scss +17 -15
- package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -0
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-0a993ca4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-0b0009eb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-21853656.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-23d8d58c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-28f335d8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2f65802b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-77d355fe.entry.js → p-4336cdff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4c9a428d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4ee14c12.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4smNltRI.js +1 -0
- package/dist/digi-arbetsformedlingen/p-5c7e6e61.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-60928fb0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-68e721b1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7da0451b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-87e306b0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-8848ce2b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-91a0e1ca.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9d3da044.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-B8hpiXmh.js +1 -0
- package/dist/digi-arbetsformedlingen/p-BMQm4N5I.js +1 -0
- package/dist/digi-arbetsformedlingen/p-BSJH8Lpg.js +1 -0
- package/dist/digi-arbetsformedlingen/p-BfyJgcLA.js +1 -0
- package/dist/digi-arbetsformedlingen/p-BvWKyXb_.js +1 -0
- package/dist/digi-arbetsformedlingen/p-DGI7Jkg2.js +1 -0
- package/dist/digi-arbetsformedlingen/p-DShzaNrQ.js +1 -0
- package/dist/digi-arbetsformedlingen/p-DfWZa2Wv.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a563f0f4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ad7e2dc6.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-beab4698.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c9c140af.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d62e264c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ef47f143.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f9a2a80e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-feaeab97.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-DbBOgLZR.js → p-xwICssEK.js} +1 -1
- package/dist/esm/button-type.enum-DShzaNrQ.js +8 -0
- package/dist/esm/{button-variation.enum-y5Nm4oWF.js → button-variation.enum-BMQm4N5I.js} +7 -1
- package/dist/esm/{code-example-variation.enum-Ooszw6tl.js → code-example-variation.enum-DGI7Jkg2.js} +1 -7
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/{digi-calendar-week-view.entry.js → digi-button_5.entry.js} +190 -6
- package/dist/esm/digi-calendar-datepicker.entry.js +10 -6
- package/dist/esm/digi-code-block_3.entry.js +9 -5
- package/dist/esm/digi-code-example.entry.js +2 -2
- package/dist/esm/digi-dialog.entry.js +9 -5
- package/dist/esm/digi-footer.entry.js +9 -5
- package/dist/esm/digi-form-error-list.entry.js +9 -5
- package/dist/esm/digi-form-file-upload.entry.js +3 -2
- package/dist/esm/digi-form-input-search.entry.js +4 -2
- package/dist/esm/digi-form-input.entry.js +203 -0
- package/dist/esm/digi-form-label_3.entry.js +143 -0
- package/dist/esm/digi-form-receipt.entry.js +9 -5
- package/dist/esm/digi-form-select-filter.entry.js +647 -0
- package/dist/esm/digi-header-navigation.entry.js +9 -5
- package/dist/esm/digi-header.entry.js +9 -5
- package/dist/esm/digi-icon-check.entry.js +26 -0
- package/dist/esm/digi-icon-chevron-down.entry.js +26 -0
- package/dist/esm/digi-icon-validation-error_2.entry.js +48 -0
- package/dist/esm/digi-navigation-pagination.entry.js +9 -5
- package/dist/esm/digi-notification-alert.entry.js +9 -5
- package/dist/esm/digi-notification-error-page.entry.js +9 -5
- package/dist/esm/digi-title-logo.entry.js +9 -5
- package/dist/esm/digi-tools-feedback-banner.entry.js +7 -2
- package/dist/esm/digi-tools-feedback.entry.js +9 -5
- package/dist/esm/digi-util-keydown-handler.entry.js +79 -0
- package/dist/esm/{form-validation-message-variation.enum-9n7Okhf1.js → form-file-upload-variation.enum-BfyJgcLA.js} +1 -8
- package/dist/esm/form-input-search-variation.enum-BvWKyXb_.js +8 -0
- package/dist/esm/{form-input-type.enum-CN1mgrt1.js → form-input-type.enum-BSJH8Lpg.js} +1 -15
- package/dist/esm/form-input-variation.enum-DfWZa2Wv.js +29 -0
- package/dist/esm/form-validation-message-variation.enum-B8hpiXmh.js +8 -0
- package/dist/esm/{index-DnTiPaEs.js → index-B1Je6g2n.js} +1 -1
- package/dist/esm/index-Co_lVhh_.js +26 -10
- package/dist/esm/index.js +9 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-BDBYHWrh.js → typography-variation.enum-4smNltRI.js} +1 -29
- package/dist/types/components/_tools/tools-feedback-banner/tools-feedback-banner.d.ts +1 -0
- package/hydrate/index.js +11 -6
- package/hydrate/index.mjs +11 -6
- package/package.json +1 -1
- package/components/p--RxphPe_.js +0 -172
- package/dist/cjs/digi-button_11.cjs.entry.js +0 -1274
- package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -51
- package/dist/cjs/digi-typography.cjs.entry.js +0 -22
- package/dist/digi-arbetsformedlingen/p-0dc8c1f1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-14d011c8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-31d3b121.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38d6c196.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-44c16261.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-45f30e15.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-478dd735.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-591509af.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8c4b642e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8fb4e6a3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-93367afb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9n7Okhf1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-BDBYHWrh.js +0 -1
- package/dist/digi-arbetsformedlingen/p-CN1mgrt1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-Ooszw6tl.js +0 -1
- package/dist/digi-arbetsformedlingen/p-aaeddc10.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ab84eed8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bd635299.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c273763e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c73ddbe2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cd90ab0b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cfe0bcf9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d441cad3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fd330ef0.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-y5Nm4oWF.js +0 -1
- package/dist/esm/digi-button_11.entry.js +0 -1262
- package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
- package/dist/esm/digi-typography.entry.js +0 -20
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
5
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
5
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
6
6
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./button-variation.enum-DkUalo9f.js');
|
|
7
|
+
require('./button-variation.enum-ngMqFLdW.js');
|
|
8
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
10
9
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
11
10
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
11
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
12
12
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
13
13
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
14
14
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
15
15
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
16
16
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
17
17
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
18
|
-
require('./form-
|
|
18
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
19
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
20
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
21
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
19
22
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
20
23
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
21
24
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
25
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
22
26
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
23
27
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
24
28
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
5
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
5
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
6
6
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./button-variation.enum-DkUalo9f.js');
|
|
7
|
+
require('./button-variation.enum-ngMqFLdW.js');
|
|
8
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
10
9
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
11
10
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
11
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
12
12
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
13
13
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
14
14
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
15
15
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
16
16
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
17
17
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
18
|
-
require('./form-
|
|
18
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
19
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
20
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
21
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
19
22
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
20
23
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
21
24
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
25
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
22
26
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
23
27
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
24
28
|
var layoutContainerMaxWidth_enum = require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-tbq85ezH.js');
|
|
4
|
+
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
|
+
|
|
6
|
+
const iconCheckCss = () => `.sc-digi-icon-check-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-check-h svg.sc-digi-icon-check{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}`;
|
|
7
|
+
|
|
8
|
+
const IconCheck = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* För att dölja ikonen för skärmläsare. Default är satt till true.
|
|
13
|
+
* @en Hides the icon for screen readers. Default is set to true.
|
|
14
|
+
*/
|
|
15
|
+
this.afSvgAriaHidden = true;
|
|
16
|
+
this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (index.h("svg", { key: '6f876190ee1cdd56d449aab39acdd01f080d6cd6', class: "digi-icon-check", width: "23", height: "18", viewBox: "0 0 23 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
20
|
+
? this.afSvgAriaLabelledby
|
|
21
|
+
: this.afTitle
|
|
22
|
+
? this.titleId
|
|
23
|
+
: undefined }, this.afTitle && index.h("title", { key: 'bef781ca98e73396b1fe60b65796e2a1e2f9dc05', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '9d4a13004fbaaed886b59fc22dbee79245af10de' }, this.afDesc), index.h("path", { key: '102e5f0057f44c0e8a33888386a7777a4ce58b96', class: "digi-icon-check__shape", d: "M20.547.18L7.315 13.627 2.453 8.686a.597.597 0 00-.853 0L.177 10.132a.62.62 0 000 .868l6.711 6.82c.236.24.618.24.854 0L22.823 2.493a.62.62 0 000-.867L21.4.18a.597.597 0 00-.853 0z", fill: "currentColor", "fill-rule": "nonzero" })));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
IconCheck.style = iconCheckCss();
|
|
27
|
+
|
|
28
|
+
exports.digi_icon_check = IconCheck;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-tbq85ezH.js');
|
|
4
|
+
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
|
+
|
|
6
|
+
const iconChevronDownCss = () => `.sc-digi-icon-chevron-down-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-down-h svg.sc-digi-icon-chevron-down{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}`;
|
|
7
|
+
|
|
8
|
+
const IconChevronDown = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* För att dölja ikonen för skärmläsare. Default är satt till true.
|
|
13
|
+
* @en Hides the icon for screen readers. Default is set to true.
|
|
14
|
+
*/
|
|
15
|
+
this.afSvgAriaHidden = true;
|
|
16
|
+
this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (index.h("svg", { key: '14c50bb9ce94f2ae7e6b89e99417668515a0e1fa', class: "digi-icon-chevron-down", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
20
|
+
? this.afSvgAriaLabelledby
|
|
21
|
+
: this.afTitle
|
|
22
|
+
? this.titleId
|
|
23
|
+
: undefined }, this.afTitle && index.h("title", { key: '4692fea634337c2e89e5eeac67c707c84f919563', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '3948943affb34ebc1967aeb54389b0c3230e6daf' }, this.afDesc), index.h("path", { key: '252f72d574b43e0d794341fa05f5a2cf39cedb4d', class: "digi-icon-chevron-down__shape", d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
IconChevronDown.style = iconChevronDownCss();
|
|
27
|
+
|
|
28
|
+
exports.digi_icon_chevron_down = IconChevronDown;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-tbq85ezH.js');
|
|
4
|
+
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
|
+
|
|
6
|
+
const iconValidationErrorCss = () => `.sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}`;
|
|
7
|
+
|
|
8
|
+
const IconValidationError = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* För att dölja ikonen för skärmläsare. Default är satt till true.
|
|
13
|
+
* @en Hides the icon for screen readers. Default is set to true.
|
|
14
|
+
*/
|
|
15
|
+
this.afSvgAriaHidden = true;
|
|
16
|
+
this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (index.h("svg", { key: 'b20fb61395f90adad2b9e5be72d3e2ea3c5a3feb', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
20
|
+
? this.afSvgAriaLabelledby
|
|
21
|
+
: this.afTitle
|
|
22
|
+
? this.titleId
|
|
23
|
+
: undefined }, this.afTitle && index.h("title", { key: '5e08a1b947d534b913fff06e02109b53c607a0be', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'f016b92eb4957943a5308d12db1ce2f1b73fae3f' }, this.afDesc), index.h("path", { key: 'f5ba662eeb6689959a6990ae2e880edc42670490', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
IconValidationError.style = iconValidationErrorCss();
|
|
27
|
+
|
|
28
|
+
const iconValidationWarningCss = () => `.sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}`;
|
|
29
|
+
|
|
30
|
+
const IconValidationWarning = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
index.registerInstance(this, hostRef);
|
|
33
|
+
/**
|
|
34
|
+
* För att dölja ikonen för skärmläsare. Default är satt till true.
|
|
35
|
+
* @en Hides the icon for screen readers. Default is set to true.
|
|
36
|
+
*/
|
|
37
|
+
this.afSvgAriaHidden = true;
|
|
38
|
+
this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return (index.h("div", { key: '7017a09730cca2dafe42548b11d18e34a693f81b' }, index.h("svg", { key: 'd56b196f88aaf6dd87bb416e422d399667e80202', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
|
|
42
|
+
? this.afSvgAriaLabelledby
|
|
43
|
+
: this.afTitle
|
|
44
|
+
? this.titleId
|
|
45
|
+
: undefined }, this.afTitle && index.h("title", { key: '25751b0fd552d8dcabc3402345ba8528126dd973', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '41476cbdf1b92dd9b7c44d8791481a5cf00186ca' }, this.afDesc), index.h("g", { key: '6607df5c4713e5680fcaa2e9ea29b7cab5064e3d', fill: "none", "fill-rule": "evenodd" }, index.h("circle", { key: 'c87e6472093671bc2f1f6b3d7eb0b34f512468c1', cx: "9", cy: "9", r: "6.75", fill: "#333" }), index.h("path", { key: '17b79d3e780ecbb2394b38586388ea457c65a2f7', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
IconValidationWarning.style = iconValidationWarningCss();
|
|
49
|
+
|
|
50
|
+
exports.digi_icon_validation_error = IconValidationError;
|
|
51
|
+
exports.digi_icon_validation_warning = IconValidationWarning;
|
|
@@ -3,23 +3,27 @@
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
5
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
6
|
-
require('./typography-variation.enum-
|
|
6
|
+
require('./typography-variation.enum-BDSt7CVI.js');
|
|
7
7
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
var buttonVariation_enum = require('./button-variation.enum-DkUalo9f.js');
|
|
8
|
+
var buttonVariation_enum = require('./button-variation.enum-ngMqFLdW.js');
|
|
9
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
11
10
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
12
11
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
12
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
13
13
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
14
14
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
15
15
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
16
16
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
17
17
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
18
18
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
19
|
-
require('./form-
|
|
19
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
20
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
21
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
22
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
20
23
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
21
24
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
22
25
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
26
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
23
27
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
24
28
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
25
29
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -2,24 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
5
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
6
6
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
7
7
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
var buttonVariation_enum = require('./button-variation.enum-DkUalo9f.js');
|
|
8
|
+
var buttonVariation_enum = require('./button-variation.enum-ngMqFLdW.js');
|
|
9
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
11
10
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
12
11
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
12
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
13
13
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
14
14
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
15
15
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
16
16
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
17
17
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
18
18
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
19
|
-
require('./form-
|
|
19
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
20
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
21
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
22
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
20
23
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
21
24
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
22
25
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
26
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
23
27
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
24
28
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
25
29
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
4
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
5
5
|
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
6
6
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
7
7
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./button-variation.enum-DkUalo9f.js');
|
|
8
|
+
require('./button-variation.enum-ngMqFLdW.js');
|
|
9
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
11
10
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
12
11
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
12
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
13
13
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
14
14
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
15
15
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
16
16
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
17
17
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
18
18
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
19
|
-
require('./form-
|
|
19
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
20
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
21
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
22
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
20
23
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
21
24
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
22
25
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
26
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
23
27
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
24
28
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
25
29
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
5
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
5
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
6
6
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./button-variation.enum-DkUalo9f.js');
|
|
7
|
+
require('./button-variation.enum-ngMqFLdW.js');
|
|
8
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
10
9
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
11
10
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
11
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
12
12
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
13
13
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
14
14
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
15
15
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
16
16
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
17
17
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
18
|
-
require('./form-
|
|
18
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
19
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
20
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
21
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
19
22
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
20
23
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
21
24
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
25
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
22
26
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
23
27
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
24
28
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -67,8 +67,13 @@ const FeedbackBanner = class {
|
|
|
67
67
|
this.validateLinks();
|
|
68
68
|
this.validateHeading();
|
|
69
69
|
}
|
|
70
|
+
getSlottedLinks() {
|
|
71
|
+
const slotRoot = this.hostElement.querySelector('.digi-tools-feedback-banner__slot');
|
|
72
|
+
const root = slotRoot !== null && slotRoot !== void 0 ? slotRoot : this.hostElement;
|
|
73
|
+
return Array.from(root.querySelectorAll('a')).filter((el) => !el.closest('digi-link, digi-link-external'));
|
|
74
|
+
}
|
|
70
75
|
validateLinks() {
|
|
71
|
-
const links =
|
|
76
|
+
const links = this.getSlottedLinks();
|
|
72
77
|
if (links.length < 1 || links.length > 3) {
|
|
73
78
|
logger_util.logger.warn(`The slot contains no link elements or there are more than 3 links specified (only 3 can be showed)`, this.hostElement);
|
|
74
79
|
return;
|
|
@@ -105,7 +110,7 @@ const FeedbackBanner = class {
|
|
|
105
110
|
}), index.h("div", { hidden: true, class: "digi-tools-feedback-banner__slot" }, index.h("slot", { onSlotchange: () => this.validateLinks() })))));
|
|
106
111
|
}
|
|
107
112
|
render() {
|
|
108
|
-
return (index.h("div", { key: '
|
|
113
|
+
return (index.h("div", { key: '739456a931baad879c5b7c99b9e3782d2056a161', class: Object.assign({ 'digi-tools-feedback-banner': true }, this.cssModifiers) }, this.afType === toolsFeedbackBannerType_enum.ToolsFeedbackBannerType.FULLWIDTH && (index.h("digi-layout-block", { key: 'b77c706fb75fcdc26d17f8fbb9e0e1fdbca397dd', afVariation: layoutBlockVariation_enum.LayoutBlockVariation.TRANSPARENT }, this.content)), this.afType !== toolsFeedbackBannerType_enum.ToolsFeedbackBannerType.FULLWIDTH && this.content));
|
|
109
114
|
}
|
|
110
115
|
get hostElement() { return index.getElement(this); }
|
|
111
116
|
static get watchers() { return {
|
|
@@ -2,25 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-tbq85ezH.js');
|
|
4
4
|
var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
|
|
5
|
-
var typographyVariation_enum = require('./typography-variation.enum-
|
|
5
|
+
var typographyVariation_enum = require('./typography-variation.enum-BDSt7CVI.js');
|
|
6
6
|
var layoutBlockVariation_enum = require('./layout-block-variation.enum-BldWvnDk.js');
|
|
7
7
|
require('./badge-notification-shape.enum-CEyEo2G5.js');
|
|
8
8
|
require('./badge-status-variation.enum-XX8d--rj.js');
|
|
9
|
-
var
|
|
10
|
-
require('./
|
|
11
|
-
var buttonVariation_enum = require('./button-variation.enum-DkUalo9f.js');
|
|
9
|
+
var buttonVariation_enum = require('./button-variation.enum-ngMqFLdW.js');
|
|
10
|
+
require('./button-type.enum-2UH0KkO-.js');
|
|
12
11
|
require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
|
|
13
12
|
require('./bar-chart-variation.enum-BZFN4377.js');
|
|
13
|
+
require('./code-example-variation.enum-Cq-BioXW.js');
|
|
14
14
|
require('./code-variation.enum-BM-hhQuD.js');
|
|
15
15
|
require('./expandable-accordion-header-level.enum-CjL9V3Kt.js');
|
|
16
16
|
require('./expandable-faq-item-variation.enum-aKkYAQgd.js');
|
|
17
17
|
require('./expandable-faq-variation.enum-FEybT9s4.js');
|
|
18
18
|
require('./footer-card-variation.enum-BPnpkC45.js');
|
|
19
19
|
require('./form-checkbox-variation.enum-BfOGU4Qt.js');
|
|
20
|
-
require('./form-
|
|
20
|
+
require('./form-file-upload-variation.enum-xcEOoggr.js');
|
|
21
|
+
require('./form-input-search-variation.enum-VVfvlVeM.js');
|
|
22
|
+
require('./form-input-type.enum-DvF_MTHK.js');
|
|
23
|
+
require('./form-input-variation.enum-kpoXNUuI.js');
|
|
21
24
|
require('./form-radiogroup-validation.enum-DBDbjF6N.js');
|
|
22
25
|
require('./form-select-variation.enum-e6wjWyaS.js');
|
|
23
26
|
require('./form-textarea-variation.enum-BcEyaR5W.js');
|
|
27
|
+
require('./form-validation-message-variation.enum-BA5nmCiw.js');
|
|
24
28
|
require('./info-card-multi-type.enum-pqhvdrsN.js');
|
|
25
29
|
require('./info-card-variation.enum-B1cqmknX.js');
|
|
26
30
|
require('./layout-container-max-width.enum-DqWtU7WK.js');
|
|
@@ -128,9 +132,9 @@ const ToolsFeedback = class {
|
|
|
128
132
|
return (index.h("svg", { class: "digi-tools-feedback__container-header-icon", "aria-hidden": "true", version: "1.1", viewBox: "0 0 35 29", width: "31", height: "25" }, index.h("title", null, "Check mark"), index.h("g", { fill: "none", "fill-rule": "evenodd" }, index.h("g", { transform: "translate(-170 -32)" }, index.h("g", { transform: "translate(170 32.325)" }, index.h("g", { transform: "translate(0 .77495)" }, index.h("mask", { id: "b", fill: "white" }, index.h("polygon", { points: "0 0 26.685 0 26.685 27.689 0 27.689" })), index.h("path", { d: "m13.711 27.689c-7.5602 0-13.711-6.2103-13.711-13.844 0-7.6345 6.151-13.845 13.711-13.845 3.1693 0 6.2611 1.1179 8.7048 3.1478l-1.5894 1.9509c-1.9972-1.6592-4.5241-2.5724-7.1155-2.5724-6.181 0-11.209 5.0773-11.209 11.319 0 6.2406 5.0283 11.318 11.209 11.318 4.7924 0 9.0551-3.0733 10.607-7.6478l2.3668 0.81853c-1.8983 5.5958-7.1124 9.3556-12.974 9.3556", fill: "#333", mask: "url(#b)" })), index.h("g", { transform: "translate(4.2177)" }, index.h("mask", { id: "a", fill: "white" }, index.h("polygon", { points: "0 0 30.425 0 30.425 23.496 0 23.496" })), index.h("path", { d: "m30.191 3.2545-19.95 20.007c-0.31227 0.31253-0.81758 0.31253-1.1292 0l-8.878-8.9033c-0.31164-0.31316-0.31164-0.81992 0-1.1324l1.8818-1.8878c0.31164-0.31253 0.81758-0.31253 1.1292 0l6.4315 6.4499 17.504-17.553c0.31164-0.31316 0.81695-0.31316 1.1292 0l1.8818 1.8872c0.31164 0.31253 0.31164 0.81929 0 1.1324", class: "digi-tools-feedback__infographic-primary", mask: "url(#a)" })))))));
|
|
129
133
|
}
|
|
130
134
|
get content() {
|
|
131
|
-
return (index.h("div", null, this.currentStep === 1 && (index.h("div", { class: "digi-tools-feedback__container" }, index.h("div", { class: "digi-tools-feedback__container-header" }, this.icon, index.h(this.afHeadingLevel, { class: "digi-tools-feedback__container-header-title" }, this.afText)), index.h("div", { class: "digi-tools-feedback__container-btns" }, index.h("digi-button", { "af-size":
|
|
135
|
+
return (index.h("div", null, this.currentStep === 1 && (index.h("div", { class: "digi-tools-feedback__container" }, index.h("div", { class: "digi-tools-feedback__container-header" }, this.icon, index.h(this.afHeadingLevel, { class: "digi-tools-feedback__container-header-title" }, this.afText)), index.h("div", { class: "digi-tools-feedback__container-btns" }, index.h("digi-button", { "af-size": buttonVariation_enum.ButtonSize.MEDIUM, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY, "af-full-width": "false", onAfOnClick: () => {
|
|
132
136
|
this.currentStep = 3;
|
|
133
|
-
} }, "Ja"), index.h("digi-button", { "af-size":
|
|
137
|
+
} }, "Ja"), index.h("digi-button", { "af-size": buttonVariation_enum.ButtonSize.MEDIUM, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY, "af-full-width": "false", onAfOnClick: () => {
|
|
134
138
|
this.currentStep = 2;
|
|
135
139
|
} }, "Nej")))), this.currentStep === 2 && (index.h("div", { class: "digi-tools-feedback__container" }, index.h("div", { class: "digi-tools-feedback__container-header" }, ' ', this.icon, index.h("div", { class: "digi-tools-feedback__container-header-title" }, "Hur kan vi bli b\u00E4ttre?")))), index.h("div", { class: "digi-tools-feedback__container-forms" }, index.h("slot", { name: "form" })), this.currentStep === 3 && (index.h("div", { class: "digi-tools-feedback__container-header" }, this.responseIcon, index.h("div", { class: "digi-tools-feedback__container-header-title" }, "Tack f\u00F6r din \u00E5terkoppling!")))));
|
|
136
140
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-tbq85ezH.js');
|
|
4
|
+
var keyboardHandler_util = require('./keyboardHandler.util-Co9WoNpM.js');
|
|
5
|
+
|
|
6
|
+
const UtilKeydownHandler = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
this.afOnEsc = index.createEvent(this, "afOnEsc", 7);
|
|
10
|
+
this.afOnEnter = index.createEvent(this, "afOnEnter", 7);
|
|
11
|
+
this.afOnTab = index.createEvent(this, "afOnTab", 7);
|
|
12
|
+
this.afOnSpace = index.createEvent(this, "afOnSpace", 7);
|
|
13
|
+
this.afOnShiftTab = index.createEvent(this, "afOnShiftTab", 7);
|
|
14
|
+
this.afOnUp = index.createEvent(this, "afOnUp", 7);
|
|
15
|
+
this.afOnDown = index.createEvent(this, "afOnDown", 7);
|
|
16
|
+
this.afOnLeft = index.createEvent(this, "afOnLeft", 7);
|
|
17
|
+
this.afOnRight = index.createEvent(this, "afOnRight", 7);
|
|
18
|
+
this.afOnHome = index.createEvent(this, "afOnHome", 7);
|
|
19
|
+
this.afOnEnd = index.createEvent(this, "afOnEnd", 7);
|
|
20
|
+
this.afOnKeyDown = index.createEvent(this, "afOnKeyDown", 7);
|
|
21
|
+
}
|
|
22
|
+
keydownHandler(e) {
|
|
23
|
+
const key = keyboardHandler_util.keyboardHandler(e);
|
|
24
|
+
switch (key) {
|
|
25
|
+
case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
|
|
26
|
+
this.afOnShiftTab.emit(e);
|
|
27
|
+
break;
|
|
28
|
+
case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
|
|
29
|
+
this.afOnDown.emit(e);
|
|
30
|
+
this.afOnKeyDown.emit(e);
|
|
31
|
+
break;
|
|
32
|
+
case keyboardHandler_util.KEY_CODE.UP_ARROW:
|
|
33
|
+
this.afOnUp.emit(e);
|
|
34
|
+
this.afOnKeyDown.emit(e);
|
|
35
|
+
break;
|
|
36
|
+
case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
|
|
37
|
+
this.afOnLeft.emit(e);
|
|
38
|
+
this.afOnKeyDown.emit(e);
|
|
39
|
+
break;
|
|
40
|
+
case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
|
|
41
|
+
this.afOnRight.emit(e);
|
|
42
|
+
this.afOnKeyDown.emit(e);
|
|
43
|
+
break;
|
|
44
|
+
case keyboardHandler_util.KEY_CODE.ENTER:
|
|
45
|
+
this.afOnEnter.emit(e);
|
|
46
|
+
this.afOnKeyDown.emit(e);
|
|
47
|
+
break;
|
|
48
|
+
case keyboardHandler_util.KEY_CODE.ESCAPE:
|
|
49
|
+
this.afOnEsc.emit(e);
|
|
50
|
+
this.afOnKeyDown.emit(e);
|
|
51
|
+
break;
|
|
52
|
+
case keyboardHandler_util.KEY_CODE.TAB:
|
|
53
|
+
this.afOnTab.emit(e);
|
|
54
|
+
this.afOnKeyDown.emit(e);
|
|
55
|
+
break;
|
|
56
|
+
case keyboardHandler_util.KEY_CODE.SPACE:
|
|
57
|
+
this.afOnSpace.emit(e);
|
|
58
|
+
this.afOnKeyDown.emit(e);
|
|
59
|
+
break;
|
|
60
|
+
case keyboardHandler_util.KEY_CODE.HOME:
|
|
61
|
+
this.afOnHome.emit(e);
|
|
62
|
+
this.afOnKeyDown.emit(e);
|
|
63
|
+
break;
|
|
64
|
+
case keyboardHandler_util.KEY_CODE.END:
|
|
65
|
+
this.afOnEnd.emit(e);
|
|
66
|
+
this.afOnKeyDown.emit(e);
|
|
67
|
+
break;
|
|
68
|
+
case keyboardHandler_util.KEY_CODE.ANY:
|
|
69
|
+
this.afOnKeyDown.emit(e);
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
this.afOnKeyDown.emit(e);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
return index.h("slot", { key: 'c0a9e056eb5e48ce215370d38ee65a62ca2e33d9' });
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.digi_util_keydown_handler = UtilKeydownHandler;
|
|
@@ -22,10 +22,3 @@ exports.FormFileUploadVariation = void 0;
|
|
|
22
22
|
FormFileUploadVariation["MEDIUM"] = "medium";
|
|
23
23
|
FormFileUploadVariation["LARGE"] = "large";
|
|
24
24
|
})(exports.FormFileUploadVariation || (exports.FormFileUploadVariation = {}));
|
|
25
|
-
|
|
26
|
-
exports.FormValidationMessageVariation = void 0;
|
|
27
|
-
(function (FormValidationMessageVariation) {
|
|
28
|
-
FormValidationMessageVariation["SUCCESS"] = "success";
|
|
29
|
-
FormValidationMessageVariation["ERROR"] = "error";
|
|
30
|
-
FormValidationMessageVariation["WARNING"] = "warning";
|
|
31
|
-
})(exports.FormValidationMessageVariation || (exports.FormValidationMessageVariation = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.FormInputSearchVariation = void 0;
|
|
4
|
+
(function (FormInputSearchVariation) {
|
|
5
|
+
FormInputSearchVariation["SMALL"] = "small";
|
|
6
|
+
FormInputSearchVariation["MEDIUM"] = "medium";
|
|
7
|
+
FormInputSearchVariation["LARGE"] = "large";
|
|
8
|
+
})(exports.FormInputSearchVariation || (exports.FormInputSearchVariation = {}));
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
exports.ButtonType = void 0;
|
|
4
|
-
(function (ButtonType) {
|
|
5
|
-
ButtonType["BUTTON"] = "button";
|
|
6
|
-
ButtonType["SUBMIT"] = "submit";
|
|
7
|
-
ButtonType["RESET"] = "reset";
|
|
8
|
-
})(exports.ButtonType || (exports.ButtonType = {}));
|
|
9
|
-
|
|
10
|
-
exports.FormInputSearchVariation = void 0;
|
|
11
|
-
(function (FormInputSearchVariation) {
|
|
12
|
-
FormInputSearchVariation["SMALL"] = "small";
|
|
13
|
-
FormInputSearchVariation["MEDIUM"] = "medium";
|
|
14
|
-
FormInputSearchVariation["LARGE"] = "large";
|
|
15
|
-
})(exports.FormInputSearchVariation || (exports.FormInputSearchVariation = {}));
|
|
16
|
-
|
|
17
3
|
exports.FormInputButtonVariation = void 0;
|
|
18
4
|
(function (FormInputButtonVariation) {
|
|
19
5
|
FormInputButtonVariation["PRIMARY"] = "primary";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.FormInputMode = void 0;
|
|
4
|
+
(function (FormInputMode) {
|
|
5
|
+
FormInputMode["DEFAULT"] = "";
|
|
6
|
+
FormInputMode["NONE"] = "none";
|
|
7
|
+
FormInputMode["TEXT"] = "text";
|
|
8
|
+
FormInputMode["DECIMAL"] = "decimal";
|
|
9
|
+
FormInputMode["NUMERIC"] = "numeric";
|
|
10
|
+
FormInputMode["TEL"] = "tel";
|
|
11
|
+
FormInputMode["SEARCH"] = "search";
|
|
12
|
+
FormInputMode["EMAIL"] = "email";
|
|
13
|
+
FormInputMode["URL"] = "url";
|
|
14
|
+
})(exports.FormInputMode || (exports.FormInputMode = {}));
|
|
15
|
+
|
|
16
|
+
exports.FormInputValidation = void 0;
|
|
17
|
+
(function (FormInputValidation) {
|
|
18
|
+
FormInputValidation["SUCCESS"] = "success";
|
|
19
|
+
FormInputValidation["ERROR"] = "error";
|
|
20
|
+
FormInputValidation["WARNING"] = "warning";
|
|
21
|
+
FormInputValidation["NEUTRAL"] = "neutral";
|
|
22
|
+
})(exports.FormInputValidation || (exports.FormInputValidation = {}));
|
|
23
|
+
|
|
24
|
+
exports.FormInputVariation = void 0;
|
|
25
|
+
(function (FormInputVariation) {
|
|
26
|
+
FormInputVariation["SMALL"] = "small";
|
|
27
|
+
FormInputVariation["MEDIUM"] = "medium";
|
|
28
|
+
FormInputVariation["LARGE"] = "large";
|
|
29
|
+
})(exports.FormInputVariation || (exports.FormInputVariation = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.FormValidationMessageVariation = void 0;
|
|
4
|
+
(function (FormValidationMessageVariation) {
|
|
5
|
+
FormValidationMessageVariation["SUCCESS"] = "success";
|
|
6
|
+
FormValidationMessageVariation["ERROR"] = "error";
|
|
7
|
+
FormValidationMessageVariation["WARNING"] = "warning";
|
|
8
|
+
})(exports.FormValidationMessageVariation || (exports.FormValidationMessageVariation = {}));
|