@designsystem-se/af 37.0.1 → 37.0.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-code-example.js +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-radiobutton.js +1 -1
- package/components/digi-form-radiogroup.js +1 -1
- package/components/p-8bdc6d6b.js +157 -0
- package/components/p-9dd1da8c.js +177 -0
- package/dist/cjs/button-size.enum-1fd86b9e.js +7 -0
- package/dist/cjs/button-type.enum-406723db.js +8 -0
- package/dist/cjs/{code-example-variation.enum-1611825e.js → code-example-variation.enum-c6557727.js} +0 -6
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_2.cjs.entry.js +262 -0
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +6 -3
- package/dist/cjs/digi-code-block_3.cjs.entry.js +22 -7
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -3
- package/dist/cjs/digi-dialog.cjs.entry.js +7 -4
- package/dist/cjs/digi-footer.cjs.entry.js +6 -3
- package/dist/cjs/digi-form-error-list.cjs.entry.js +6 -3
- package/dist/cjs/digi-form-input-search.cjs.entry.js +3 -2
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +1 -1
- package/dist/cjs/digi-form-receipt.cjs.entry.js +6 -3
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +6 -3
- package/dist/cjs/{digi-form-checkbox.cjs.entry.js → digi-header-avatar.cjs.entry.js} +92 -105
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
- package/dist/cjs/digi-header-navigation.cjs.entry.js +232 -0
- package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
- package/dist/cjs/digi-header.cjs.entry.js +148 -0
- package/dist/cjs/digi-icon-bars.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +92 -0
- package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +6 -3
- package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
- package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -3
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +6 -3
- package/dist/cjs/digi-title-logo.cjs.entry.js +135 -0
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +8 -5
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +83 -0
- package/dist/cjs/{form-input-search-variation.enum-e0e025b1.js → form-input-search-variation.enum-c50239bc.js} +0 -7
- package/dist/cjs/index-7a477838.js +58 -6
- package/dist/cjs/index.cjs.js +45 -42
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +21 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-50512a4e.js} +0 -20
- package/dist/collection/components/_form/form-checkbox/form-checkbox.css +8 -8
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +23 -3
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.css +7 -2
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +23 -3
- package/dist/collection/components/_form/form-radiogroup/form-radiogroup.css +4 -0
- package/dist/collection/styles/src/tokens-documentation/web-AF25.json +866 -666
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-00219e81.entry.js +1 -0
- package/{components/p-ff4f4fb8.js → dist/digi-arbetsformedlingen/p-19c30198.entry.js} +1 -163
- package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-260620fe.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +1 -0
- package/dist/digi-arbetsformedlingen/p-38627816.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-5a602122.js +1 -0
- package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-75309c9a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-826ad49e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-95330112.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-bc3d2778.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-cd50f570.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-cdf86efc.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d4145a3e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-dc9b6144.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e844d4cc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ee9589e6.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +866 -666
- package/dist/esm/button-size.enum-d5ff6ff3.js +7 -0
- package/dist/esm/button-type.enum-5250ae0b.js +8 -0
- package/dist/esm/{code-example-variation.enum-e656d235.js → code-example-variation.enum-e9f9fced.js} +1 -7
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_2.entry.js +257 -0
- package/dist/esm/digi-calendar-datepicker.entry.js +6 -3
- package/dist/esm/digi-code-block_3.entry.js +21 -6
- package/dist/esm/digi-code-example.entry.js +2 -1
- package/dist/esm/digi-dialog.entry.js +6 -3
- package/dist/esm/digi-footer.entry.js +6 -3
- package/dist/esm/digi-form-error-list.entry.js +6 -3
- package/dist/esm/digi-form-input-search.entry.js +2 -1
- package/dist/esm/digi-form-radiogroup.entry.js +1 -1
- package/dist/esm/digi-form-receipt.entry.js +6 -3
- package/dist/esm/digi-form-select-filter.entry.js +6 -3
- package/dist/esm/{digi-form-checkbox.entry.js → digi-header-avatar.entry.js} +93 -106
- package/dist/esm/digi-header-navigation-item.entry.js +23 -0
- package/dist/esm/digi-header-navigation.entry.js +228 -0
- package/dist/esm/digi-header-notification.entry.js +19 -0
- package/dist/esm/digi-header.entry.js +144 -0
- package/dist/esm/digi-icon-bars.entry.js +26 -0
- package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
- package/dist/esm/digi-icon-x.entry.js +26 -0
- package/dist/esm/digi-layout-block_2.entry.js +87 -0
- package/dist/esm/digi-media-image_2.entry.js +162 -0
- package/dist/esm/digi-navigation-pagination.entry.js +6 -3
- package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
- package/dist/esm/digi-notification-alert.entry.js +6 -3
- package/dist/esm/digi-notification-error-page.entry.js +6 -3
- package/dist/esm/digi-title-logo.entry.js +131 -0
- package/dist/esm/digi-tools-feedback.entry.js +6 -3
- package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
- package/dist/esm/digi-util-keydown-handler.entry.js +79 -0
- package/dist/esm/{form-input-search-variation.enum-6d8dc10a.js → form-input-search-variation.enum-f9d669f2.js} +1 -8
- package/dist/esm/index-148a7577.js +58 -6
- package/dist/esm/index.js +6 -3
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +21 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-8c3ff25c.js} +1 -21
- package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +8 -0
- package/dist/types/components/_form/form-radiobutton/form-radiobutton.d.ts +8 -0
- package/hydrate/index.js +37 -9
- package/hydrate/index.mjs +37 -9
- package/package.json +1 -1
- package/components/p-5fd00d55.js +0 -143
- package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
- package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-53d9556b.js +0 -1
- package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
- package/dist/esm/digi-button_17.entry.js +0 -1100
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7a477838.js');
|
|
6
|
+
|
|
7
|
+
const mediaImageCss = ".digi-media-image.sc-digi-media-image{position:relative;display:inline-flex;max-width:100%;height:0px}.digi-media-image.digi-media-image--aspect-ratio.sc-digi-media-image{width:var(--digi--media-image--width);height:unset}.digi-media-image.digi-media-image--loaded.sc-digi-media-image{height:unset}.digi-media-image.digi-media-image--fullwidth.sc-digi-media-image{width:100%}.digi-media-image.digi-media-image--unlazy.sc-digi-media-image:not(.digi-media-image--aspect-ratio){height:unset}.digi-media-image--aspect-ratio.sc-digi-media-image .digi-media-image__observer.sc-digi-media-image{position:absolute;top:0;left:0;height:100%}.digi-media-image__padded-box.sc-digi-media-image{display:inline-block;padding-top:var(--digi--media-image--padded-box, 0);height:0}.digi-media-image__image.sc-digi-media-image{max-width:100%;height:auto;opacity:0.06;filter:saturate(0);transition:opacity 0.2s, filter 0.4s}.digi-media-image--loaded.sc-digi-media-image .digi-media-image__image.sc-digi-media-image{opacity:1;filter:saturate(1)}.digi-media-image--unlazy.sc-digi-media-image .digi-media-image__image.sc-digi-media-image{transition:none;opacity:1;filter:none}.digi-media-image--fullwidth.sc-digi-media-image .digi-media-image__image.sc-digi-media-image{width:100%}.digi-media-image--aspect-ratio.sc-digi-media-image .digi-media-image__image.sc-digi-media-image{position:absolute;top:0;left:0;width:100%;height:100%}";
|
|
8
|
+
const DigiMediaImageStyle0 = mediaImageCss;
|
|
9
|
+
|
|
10
|
+
const MediaImage = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.afOnLoad = index.createEvent(this, "afOnLoad", 7);
|
|
14
|
+
this.isPlaceholderLoaded = false;
|
|
15
|
+
this.hasSetSrc = false;
|
|
16
|
+
this.hasAspectRatio = false;
|
|
17
|
+
this.paddedBoxPadding = '0%';
|
|
18
|
+
this.isLoaded = false;
|
|
19
|
+
this.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=';
|
|
20
|
+
this.srcset = undefined;
|
|
21
|
+
this.afObserverOptions = {
|
|
22
|
+
rootMargin: '200px',
|
|
23
|
+
threshold: 0
|
|
24
|
+
};
|
|
25
|
+
this.afSrc = undefined;
|
|
26
|
+
this.afSrcset = undefined;
|
|
27
|
+
this.afAlt = undefined;
|
|
28
|
+
this.afTitle = undefined;
|
|
29
|
+
this.afAriaLabel = undefined;
|
|
30
|
+
this.afWidth = undefined;
|
|
31
|
+
this.afHeight = undefined;
|
|
32
|
+
this.afFullwidth = undefined;
|
|
33
|
+
this.afUnlazy = false;
|
|
34
|
+
}
|
|
35
|
+
srcChangeHandler() {
|
|
36
|
+
this.setImageSrc();
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
if (this.afUnlazy) {
|
|
40
|
+
this.setImageSrc();
|
|
41
|
+
}
|
|
42
|
+
// Add padded box to wrapper if width and height props exists
|
|
43
|
+
if (this.afWidth && this.afHeight) {
|
|
44
|
+
this.hasAspectRatio = true;
|
|
45
|
+
this.setPaddedBox();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
setImageSrc() {
|
|
49
|
+
this.src = this.afSrc;
|
|
50
|
+
this.srcset = this.afSrcset;
|
|
51
|
+
this.hasSetSrc = true;
|
|
52
|
+
}
|
|
53
|
+
setPaddedBox() {
|
|
54
|
+
this.paddedBoxPadding =
|
|
55
|
+
(parseInt(this.afHeight, 10) / parseInt(this.afWidth, 10)) * 100 + '%';
|
|
56
|
+
}
|
|
57
|
+
intersectHandler() {
|
|
58
|
+
if (this.afUnlazy) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.setImageSrc();
|
|
62
|
+
}
|
|
63
|
+
loadHandler(e) {
|
|
64
|
+
if (this.afUnlazy) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (this.isPlaceholderLoaded) {
|
|
68
|
+
this.isLoaded = true;
|
|
69
|
+
this.afOnLoad.emit(e);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this.isPlaceholderLoaded = true;
|
|
73
|
+
}
|
|
74
|
+
get cssModifiers() {
|
|
75
|
+
return {
|
|
76
|
+
'digi-media-image--unlazy': this.afUnlazy,
|
|
77
|
+
'digi-media-image--loaded': this.isLoaded,
|
|
78
|
+
'digi-media-image--aspect-ratio': this.hasAspectRatio,
|
|
79
|
+
'digi-media-image--fullwidth': this.afFullwidth
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
get cssInlineStyles() {
|
|
83
|
+
return {
|
|
84
|
+
'--digi--media-image--padded-box': this.paddedBoxPadding
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
return (index.h("host", { key: 'd73ca369f146ceee58517820156c254eb0fdb0d3' }, index.h("div", { key: '93419395e2c892dd7a727314d9969cfa4b486142', class: Object.assign({ 'digi-media-image': true }, this.cssModifiers), style: {
|
|
89
|
+
'--digi--media-image--width': this.afWidth
|
|
90
|
+
? `${this.afWidth}px`
|
|
91
|
+
: null
|
|
92
|
+
} }, index.h("digi-util-intersection-observer", { key: '1ef7fbf526107cd283b77eafdc6dae8d01b925c5', class: "digi-media-image__observer", onAfOnIntersect: () => this.intersectHandler(), afOnce: true, afOptions: this.afObserverOptions }), this.hasAspectRatio && (index.h("div", { key: '265b145a1c4adbd92945f0f7ea5c245a315a2d69', class: "digi-media-image__padded-box", style: this.cssInlineStyles })), index.h("img", { key: 'ecf7aef38f9a7f6a3a49b446c6ff229736a9dc36', class: "digi-media-image__image", onLoad: (e) => this.loadHandler(e), src: this.src, alt: this.afAlt, "aria-label": this.afAriaLabel, height: this.afHeight, srcset: this.srcset, title: this.afTitle, width: this.afWidth, loading: this.afUnlazy ? 'eager' : 'lazy' }))));
|
|
93
|
+
}
|
|
94
|
+
static get watchers() { return {
|
|
95
|
+
"afSrc": ["srcChangeHandler"]
|
|
96
|
+
}; }
|
|
97
|
+
};
|
|
98
|
+
MediaImage.style = DigiMediaImageStyle0;
|
|
99
|
+
|
|
100
|
+
const UtilIntersectionObserver = class {
|
|
101
|
+
constructor(hostRef) {
|
|
102
|
+
index.registerInstance(this, hostRef);
|
|
103
|
+
this.afOnChange = index.createEvent(this, "afOnChange", 7);
|
|
104
|
+
this.afOnIntersect = index.createEvent(this, "afOnIntersect", 7);
|
|
105
|
+
this.afOnUnintersect = index.createEvent(this, "afOnUnintersect", 7);
|
|
106
|
+
this._observer = null;
|
|
107
|
+
this._hasIntersected = false;
|
|
108
|
+
this._isObserving = false;
|
|
109
|
+
this.afOnce = false;
|
|
110
|
+
this.afOptions = {
|
|
111
|
+
rootMargin: '0px',
|
|
112
|
+
threshold: 0
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
afOptionsWatcher(newValue) {
|
|
116
|
+
this._afOptions =
|
|
117
|
+
typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
|
|
118
|
+
}
|
|
119
|
+
componentWillLoad() {
|
|
120
|
+
this.afOptionsWatcher(this.afOptions);
|
|
121
|
+
this.initObserver();
|
|
122
|
+
}
|
|
123
|
+
disconnectedCallback() {
|
|
124
|
+
if (this._isObserving) {
|
|
125
|
+
this.removeObserver();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
initObserver() {
|
|
129
|
+
this._observer = new IntersectionObserver(([entry]) => {
|
|
130
|
+
if (entry && entry.isIntersecting) {
|
|
131
|
+
this.intersectionHandler();
|
|
132
|
+
if (this.afOnce) {
|
|
133
|
+
this.removeObserver();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else if (entry && this._hasIntersected) {
|
|
137
|
+
this.unintersectionHandler();
|
|
138
|
+
}
|
|
139
|
+
}, this._afOptions);
|
|
140
|
+
this._observer.observe(this.$el);
|
|
141
|
+
this._isObserving = true;
|
|
142
|
+
}
|
|
143
|
+
removeObserver() {
|
|
144
|
+
this._observer.disconnect();
|
|
145
|
+
this._isObserving = false;
|
|
146
|
+
}
|
|
147
|
+
intersectionHandler() {
|
|
148
|
+
this.afOnChange.emit(true);
|
|
149
|
+
this.afOnIntersect.emit();
|
|
150
|
+
this._hasIntersected = true;
|
|
151
|
+
}
|
|
152
|
+
unintersectionHandler() {
|
|
153
|
+
this.afOnChange.emit(false);
|
|
154
|
+
this.afOnUnintersect.emit();
|
|
155
|
+
this._hasIntersected = false;
|
|
156
|
+
}
|
|
157
|
+
render() {
|
|
158
|
+
return index.h("slot", { key: '4d011168ecb730b4ab3e78df5781f0577b614ebb' });
|
|
159
|
+
}
|
|
160
|
+
get $el() { return index.getElement(this); }
|
|
161
|
+
static get watchers() { return {
|
|
162
|
+
"afOptions": ["afOptionsWatcher"]
|
|
163
|
+
}; }
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
exports.digi_media_image = MediaImage;
|
|
167
|
+
exports.digi_util_intersection_observer = UtilIntersectionObserver;
|
|
@@ -5,13 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-7a477838.js');
|
|
6
6
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
7
7
|
require('./badge-notification-shape.enum-ff802554.js');
|
|
8
|
-
require('./typography-variation.enum-
|
|
8
|
+
require('./typography-variation.enum-50512a4e.js');
|
|
9
9
|
require('./badge-status-variation.enum-0a5adc21.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./
|
|
10
|
+
require('./button-size.enum-1fd86b9e.js');
|
|
11
|
+
require('./button-type.enum-406723db.js');
|
|
12
12
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
13
13
|
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
14
14
|
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
15
|
+
require('./code-example-variation.enum-c6557727.js');
|
|
15
16
|
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
17
|
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
17
18
|
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
@@ -19,6 +20,7 @@ require('./expandable-faq-variation.enum-af923f49.js');
|
|
|
19
20
|
require('./footer-card-variation.enum-99555edc.js');
|
|
20
21
|
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
21
22
|
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
23
|
+
require('./form-input-search-variation.enum-c50239bc.js');
|
|
22
24
|
require('./form-input-type.enum-9c8ee12a.js');
|
|
23
25
|
require('./form-input-variation.enum-c750520c.js');
|
|
24
26
|
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
@@ -27,6 +29,7 @@ require('./form-textarea-variation.enum-9c90d40f.js');
|
|
|
27
29
|
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
28
30
|
require('./info-card-multi-type.enum-14746572.js');
|
|
29
31
|
require('./info-card-variation.enum-64cef637.js');
|
|
32
|
+
require('./layout-container-max-width.enum-7e637f44.js');
|
|
30
33
|
require('./layout-block-variation.enum-f6102119.js');
|
|
31
34
|
require('./layout-columns-variation.enum-65675649.js');
|
|
32
35
|
require('./link-button-variation.enum-137785e3.js');
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7a477838.js');
|
|
6
|
+
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
7
|
+
|
|
8
|
+
const navigationSidebarButtonCss = ".sc-digi-navigation-sidebar-button-h{--digi--navigation-sidebar-button--display:inline-flex}.sc-digi-navigation-sidebar-button-h .digi-navigation-sidebar-button.sc-digi-navigation-sidebar-button{display:var(--digi--navigation-sidebar-button--display)}";
|
|
9
|
+
const DigiNavigationSidebarButtonStyle0 = navigationSidebarButtonCss;
|
|
10
|
+
|
|
11
|
+
const NavigationSidebarButton = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.afOnToggle = index.createEvent(this, "afOnToggle", 7);
|
|
15
|
+
this.isActive = false;
|
|
16
|
+
this.afText = undefined;
|
|
17
|
+
this.afAriaLabel = undefined;
|
|
18
|
+
this.afId = randomIdGenerator_util.randomIdGenerator('digi-navigation-sidebar-button');
|
|
19
|
+
}
|
|
20
|
+
toggleHandler() {
|
|
21
|
+
this.isActive = !this.isActive;
|
|
22
|
+
this.afOnToggle.emit(this.isActive);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (index.h("digi-button", { key: '1c7692b9ac711d9dc05a0eb4166dc1d301fe08e8', id: this.afId, class: "digi-navigation-sidebar-button", "af-variation": "function", "af-aria-label": this.afAriaLabel, onClick: () => this.toggleHandler() }, this.afText, index.h("digi-icon-bars", { key: '1d3b9f381d2c90cf25a7c7d7a9f394f617575be7', slot: "icon" })));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
NavigationSidebarButton.style = DigiNavigationSidebarButtonStyle0;
|
|
29
|
+
|
|
30
|
+
exports.digi_navigation_sidebar_button = NavigationSidebarButton;
|
|
@@ -4,14 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7a477838.js');
|
|
6
6
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
7
|
-
const typographyVariation_enum = require('./typography-variation.enum-
|
|
7
|
+
const typographyVariation_enum = require('./typography-variation.enum-50512a4e.js');
|
|
8
8
|
require('./badge-notification-shape.enum-ff802554.js');
|
|
9
9
|
require('./badge-status-variation.enum-0a5adc21.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./
|
|
10
|
+
require('./button-size.enum-1fd86b9e.js');
|
|
11
|
+
require('./button-type.enum-406723db.js');
|
|
12
12
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
13
13
|
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
14
14
|
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
15
|
+
require('./code-example-variation.enum-c6557727.js');
|
|
15
16
|
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
17
|
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
17
18
|
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
@@ -19,6 +20,7 @@ require('./expandable-faq-variation.enum-af923f49.js');
|
|
|
19
20
|
require('./footer-card-variation.enum-99555edc.js');
|
|
20
21
|
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
21
22
|
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
23
|
+
require('./form-input-search-variation.enum-c50239bc.js');
|
|
22
24
|
require('./form-input-type.enum-9c8ee12a.js');
|
|
23
25
|
require('./form-input-variation.enum-c750520c.js');
|
|
24
26
|
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
@@ -27,6 +29,7 @@ require('./form-textarea-variation.enum-9c90d40f.js');
|
|
|
27
29
|
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
28
30
|
require('./info-card-multi-type.enum-14746572.js');
|
|
29
31
|
require('./info-card-variation.enum-64cef637.js');
|
|
32
|
+
require('./layout-container-max-width.enum-7e637f44.js');
|
|
30
33
|
require('./layout-block-variation.enum-f6102119.js');
|
|
31
34
|
require('./layout-columns-variation.enum-65675649.js');
|
|
32
35
|
require('./link-button-variation.enum-137785e3.js');
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7a477838.js');
|
|
6
|
-
const typographyVariation_enum = require('./typography-variation.enum-
|
|
6
|
+
const typographyVariation_enum = require('./typography-variation.enum-50512a4e.js');
|
|
7
7
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
8
8
|
require('./badge-notification-shape.enum-ff802554.js');
|
|
9
9
|
require('./badge-status-variation.enum-0a5adc21.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./
|
|
10
|
+
require('./button-size.enum-1fd86b9e.js');
|
|
11
|
+
require('./button-type.enum-406723db.js');
|
|
12
12
|
require('./button-variation.enum-bc521499.js');
|
|
13
13
|
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
14
14
|
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
15
|
+
require('./code-example-variation.enum-c6557727.js');
|
|
15
16
|
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
17
|
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
17
18
|
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
@@ -19,6 +20,7 @@ require('./expandable-faq-variation.enum-af923f49.js');
|
|
|
19
20
|
require('./footer-card-variation.enum-99555edc.js');
|
|
20
21
|
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
21
22
|
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
23
|
+
require('./form-input-search-variation.enum-c50239bc.js');
|
|
22
24
|
require('./form-input-type.enum-9c8ee12a.js');
|
|
23
25
|
require('./form-input-variation.enum-c750520c.js');
|
|
24
26
|
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
@@ -27,6 +29,7 @@ require('./form-textarea-variation.enum-9c90d40f.js');
|
|
|
27
29
|
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
28
30
|
require('./info-card-multi-type.enum-14746572.js');
|
|
29
31
|
require('./info-card-variation.enum-64cef637.js');
|
|
32
|
+
require('./layout-container-max-width.enum-7e637f44.js');
|
|
30
33
|
require('./layout-block-variation.enum-f6102119.js');
|
|
31
34
|
require('./layout-columns-variation.enum-65675649.js');
|
|
32
35
|
require('./link-button-variation.enum-137785e3.js');
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7a477838.js');
|
|
6
|
+
require('./badge-notification-shape.enum-ff802554.js');
|
|
7
|
+
const typographyVariation_enum = require('./typography-variation.enum-50512a4e.js');
|
|
8
|
+
require('./badge-status-variation.enum-0a5adc21.js');
|
|
9
|
+
require('./button-size.enum-1fd86b9e.js');
|
|
10
|
+
require('./button-type.enum-406723db.js');
|
|
11
|
+
require('./button-variation.enum-bc521499.js');
|
|
12
|
+
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
13
|
+
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
14
|
+
require('./code-example-variation.enum-c6557727.js');
|
|
15
|
+
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
|
+
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
17
|
+
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
18
|
+
require('./expandable-faq-variation.enum-af923f49.js');
|
|
19
|
+
require('./footer-card-variation.enum-99555edc.js');
|
|
20
|
+
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
21
|
+
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
22
|
+
require('./form-input-search-variation.enum-c50239bc.js');
|
|
23
|
+
require('./form-input-type.enum-9c8ee12a.js');
|
|
24
|
+
require('./form-input-variation.enum-c750520c.js');
|
|
25
|
+
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
26
|
+
require('./form-select-variation.enum-528c1bf0.js');
|
|
27
|
+
require('./form-textarea-variation.enum-9c90d40f.js');
|
|
28
|
+
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
29
|
+
require('./info-card-multi-type.enum-14746572.js');
|
|
30
|
+
require('./info-card-variation.enum-64cef637.js');
|
|
31
|
+
require('./layout-container-max-width.enum-7e637f44.js');
|
|
32
|
+
require('./layout-block-variation.enum-f6102119.js');
|
|
33
|
+
require('./layout-columns-variation.enum-65675649.js');
|
|
34
|
+
require('./link-button-variation.enum-137785e3.js');
|
|
35
|
+
require('./list-type.enum-aea4d012.js');
|
|
36
|
+
require('./loader-skeleton-variation.enum-d52ba55e.js');
|
|
37
|
+
require('./loader-spinner-size.enum-db2973f0.js');
|
|
38
|
+
require('./logo-variation.enum-607fadb4.js');
|
|
39
|
+
require('./media-figure-alignment.enum-3885aba5.js');
|
|
40
|
+
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
41
|
+
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
42
|
+
require('./progress-indicator-variation.enum-7cf8e0e4.js');
|
|
43
|
+
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
44
|
+
require('./progress-list-variation.enum-06d5ce27.js');
|
|
45
|
+
require('./progressbar-variation.enum-aff9fa80.js');
|
|
46
|
+
require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
47
|
+
require('./table-variation.enum-25df2ad7.js');
|
|
48
|
+
require('./tag-media-icon.enum-372563c5.js');
|
|
49
|
+
require('./tag-size.enum-387c516c.js');
|
|
50
|
+
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
51
|
+
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
52
|
+
require('./tools-theme-provider.brand.enum-bc855272.js');
|
|
53
|
+
require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
54
|
+
require('./typography-meta-variation.enum-13ac3538.js');
|
|
55
|
+
require('./typography-time-variation.enum-bce1d87e.js');
|
|
56
|
+
const utilBreakpointObserverBreakpoints_enum = require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
|
|
57
|
+
|
|
58
|
+
const titleLogoCss = ".sc-digi-title-logo-h{display:block;--digi--title-logo-text-color:var(--digi--color--text--primary);--digi--title-logo-font-weight:var(--digi--global--typography--font-weight--bold);--digi--title-logo-font-size:var(--digi--typography--title-logo--font-size--mobile);--digi--title-logo-font-size-small:var(--digi--global--typography--font-size--large);--digi--title-logo-line-height-small:1.25rem;--digi--title-logo-symbol-color:var(--digi--color--logotype-color);--digi--title-logo-symbol-width:36px;--digi--title-logo-symbol-height:36px;--digi--title-logo-symbol-width-mobile:44px;--digi--title-logo-symbol-height-mobile:44px;--digi--title-logo-text-height:40px;--digi--title-logo-border-width:var(--digi--global--border-width--base);--digi--title-logo-vertical-padding:1.375rem;--digi--title-logo-gap:9px}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo{color:var(--digi--title-logo-text-color);display:flex;align-items:center;padding:var(--digi--title-logo-vertical-padding) 0}@media (min-width: 48rem){.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo{--digi--title-logo-vertical-padding:1.5rem}}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-title-logo-h .digi-title-logo-symbol.sc-digi-title-logo{height:var(--digi--title-logo-symbol-height);width:var(--digi--title-logo-symbol-width);display:flex;flex-shrink:0;align-items:center}.sc-digi-title-logo-h .digi-title-logo-symbol.sc-digi-title-logo svg.sc-digi-title-logo{fill:var(--digi--title-logo-symbol-color)}.sc-digi-title-logo-h .digi-title-logo-name-wrapper.sc-digi-title-logo{color:var(--digi--title-logo-text-color);display:flex;flex-direction:column;justify-content:center;height:var(--digi--title-logo-text-height);border-left:var(--digi--title-logo-border-width) solid;margin-left:var(--digi--title-logo-gap);padding-left:var(--digi--title-logo-gap);font-weight:var(--digi--title-logo-font-weight);font-size:var(--digi--title-logo-font-size)}.sc-digi-title-logo-h .digi-title-logo.sc-digi-title-logo-s>[slot=logo-two-rows],.sc-digi-title-logo-h .digi-title-logo .sc-digi-title-logo-s>[slot=logo-two-rows]{display:flex;flex-direction:column;font-size:var(--digi--title-logo-font-size-small);line-height:var(--digi--title-logo-line-height-small)}.sc-digi-title-logo-h .digi-title-logo--mobile.sc-digi-title-logo{--digi--title-logo-symbol-height:var(--digi--title-logo-symbol-height-mobile);--digi--title-logo-symbol-width:var(--digi--title-logo-symbol-width-mobile)}.sc-digi-title-logo-h .digi-title-logo--mobile.sc-digi-title-logo .digi-title-logo-name-wrapper.sc-digi-title-logo{display:none}.sc-digi-title-logo-h .digi-title-logo--one-row.sc-digi-title-logo-s>[slot=logo-two-rows],.sc-digi-title-logo-h .digi-title-logo--one-row .sc-digi-title-logo-s>[slot=logo-two-rows]{display:none}.sc-digi-title-logo-h .digi-title-logo--two-rows.sc-digi-title-logo-s>[slot=logo-one-row],.sc-digi-title-logo-h .digi-title-logo--two-rows .sc-digi-title-logo-s>[slot=logo-one-row]{display:none}";
|
|
59
|
+
const DigiTitleLogoStyle0 = titleLogoCss;
|
|
60
|
+
|
|
61
|
+
const TitleLogo = class {
|
|
62
|
+
constructor(hostRef) {
|
|
63
|
+
index.registerInstance(this, hostRef);
|
|
64
|
+
this.handleWindowResize = () => {
|
|
65
|
+
this.titleLogoVariation = this.setLogoVariation(window.innerWidth);
|
|
66
|
+
};
|
|
67
|
+
this.isMobile = undefined;
|
|
68
|
+
this.isTablet = undefined;
|
|
69
|
+
this.titleLogoVariation = undefined;
|
|
70
|
+
this.afAriaLabel = undefined;
|
|
71
|
+
this.afLogoBreakpoint = undefined;
|
|
72
|
+
}
|
|
73
|
+
setLogoVariation(width) {
|
|
74
|
+
if (this.isMobile)
|
|
75
|
+
return typographyVariation_enum.TitleLogoVariation.MOBILE;
|
|
76
|
+
const isNarrow = this.afLogoBreakpoint
|
|
77
|
+
? width < this.afLogoBreakpoint
|
|
78
|
+
: this.isTablet;
|
|
79
|
+
if (isNarrow) {
|
|
80
|
+
return this.hasTwoRowLogoName
|
|
81
|
+
? typographyVariation_enum.TitleLogoVariation.TWO_ROWS
|
|
82
|
+
: typographyVariation_enum.TitleLogoVariation.ONE_ROW;
|
|
83
|
+
}
|
|
84
|
+
return this.hasOneRowLogoName
|
|
85
|
+
? typographyVariation_enum.TitleLogoVariation.ONE_ROW
|
|
86
|
+
: typographyVariation_enum.TitleLogoVariation.TWO_ROWS;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Find out if we have one or both of the possible logo variations
|
|
90
|
+
* Throw an error if we have none
|
|
91
|
+
*/
|
|
92
|
+
componentWillLoad() {
|
|
93
|
+
this.hasOneRowLogoName = !!this.hostElement.querySelector('[slot="logo-one-row"]');
|
|
94
|
+
this.hasTwoRowLogoName = !!this.hostElement.querySelector('[slot="logo-two-rows"]');
|
|
95
|
+
if (!this.hasOneRowLogoName && !this.hasTwoRowLogoName) {
|
|
96
|
+
throw new Error('Du behöver ange minst en variant av logo-text');
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* We need a custom resize listener here, since we're
|
|
101
|
+
* not only relying on breakpoints
|
|
102
|
+
*/
|
|
103
|
+
componentDidLoad() {
|
|
104
|
+
if (window) {
|
|
105
|
+
this.handleWindowResize();
|
|
106
|
+
window.addEventListener('resize', this.handleWindowResize, { passive: true });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Let's clean up as well
|
|
111
|
+
*/
|
|
112
|
+
disconnectedCallback() {
|
|
113
|
+
if (window) {
|
|
114
|
+
window.removeEventListener('resize', this.handleWindowResize);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
handleBreakpointObserver(e) {
|
|
118
|
+
this.isMobile = e.detail.value === utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.SMALL;
|
|
119
|
+
this.isTablet = e.detail.value === utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.MEDIUM;
|
|
120
|
+
}
|
|
121
|
+
get cssModifiers() {
|
|
122
|
+
return {
|
|
123
|
+
'digi-title-logo--mobile': this.titleLogoVariation === typographyVariation_enum.TitleLogoVariation.MOBILE,
|
|
124
|
+
'digi-title-logo--one-row': this.titleLogoVariation === typographyVariation_enum.TitleLogoVariation.ONE_ROW,
|
|
125
|
+
'digi-title-logo--two-rows': this.titleLogoVariation === typographyVariation_enum.TitleLogoVariation.TWO_ROWS
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
render() {
|
|
129
|
+
return (index.h("div", { key: 'f2d92667466100ff385d2918a8396c95d32cb22c', class: Object.assign({ 'digi-title-logo': true }, this.cssModifiers) }, index.h("digi-util-breakpoint-observer", { key: 'd0a0692c5386725c0ce2fca5c4a6913b8710fa1c', onAfOnChange: (e) => this.handleBreakpointObserver(e) }), index.h("div", { key: 'a0a36fd875d4fc2d6874f53ae49ac2e9f17e273f', class: "digi-title-logo-symbol" }, index.h("svg", { key: '489404f99e4b411bd66cc274b60a7fc83bffa126', height: "44px", width: "44px", viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img" }, index.h("path", { key: '78e7bcc761c014a83be23fa3845b1564e1f89bcc', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.0076 6.97426V0C31.0194 0 44 12.9056 44 28.8261C44 34.3951 42.4073 39.5923 39.6561 44L33.8019 40.1595C35.822 36.8551 36.9855 32.9758 36.9855 28.8261C36.9855 16.7575 27.1458 6.97426 15.0076 6.97426ZM6.99059 28.8257C6.99059 33.2284 10.5795 36.7972 15.0076 36.7972C19.4356 36.7972 23.0245 33.2284 23.0245 28.8257C23.0245 24.4235 19.4356 20.8548 15.0076 20.8548C10.5795 20.8548 6.99059 24.4235 6.99059 28.8257ZM0 28.8257C0 20.5853 6.71916 13.9047 15.0076 13.9047C23.296 13.9047 30.0151 20.5853 30.0151 28.8257C30.0151 37.0666 23.296 43.7472 15.0076 43.7472C6.71916 43.7472 0 37.0666 0 28.8257Z", class: "main-symbol" }))), index.h("div", { key: '46a1b7b8fd35718591d29093da200d1f79fab483', class: "digi-title-logo-name-wrapper" }, index.h("slot", { key: 'ec09ce755fcb0bf00045c947199c7c9cda9de689', name: "logo-one-row" }), index.h("slot", { key: '27eca2b9520cee673f0042d729c4d20a31406a72', name: "logo-two-rows" }))));
|
|
130
|
+
}
|
|
131
|
+
get hostElement() { return index.getElement(this); }
|
|
132
|
+
};
|
|
133
|
+
TitleLogo.style = DigiTitleLogoStyle0;
|
|
134
|
+
|
|
135
|
+
exports.digi_title_logo = TitleLogo;
|
|
@@ -4,15 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7a477838.js');
|
|
6
6
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
7
|
-
const typographyVariation_enum = require('./typography-variation.enum-
|
|
7
|
+
const typographyVariation_enum = require('./typography-variation.enum-50512a4e.js');
|
|
8
8
|
const layoutBlockVariation_enum = require('./layout-block-variation.enum-f6102119.js');
|
|
9
9
|
require('./badge-notification-shape.enum-ff802554.js');
|
|
10
10
|
require('./badge-status-variation.enum-0a5adc21.js');
|
|
11
|
-
const
|
|
12
|
-
require('./
|
|
11
|
+
const buttonSize_enum = require('./button-size.enum-1fd86b9e.js');
|
|
12
|
+
require('./button-type.enum-406723db.js');
|
|
13
13
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
14
14
|
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
15
15
|
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
16
|
+
require('./code-example-variation.enum-c6557727.js');
|
|
16
17
|
require('./code-variation.enum-c4a4e6fd.js');
|
|
17
18
|
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
18
19
|
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
@@ -20,6 +21,7 @@ require('./expandable-faq-variation.enum-af923f49.js');
|
|
|
20
21
|
require('./footer-card-variation.enum-99555edc.js');
|
|
21
22
|
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
22
23
|
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
24
|
+
require('./form-input-search-variation.enum-c50239bc.js');
|
|
23
25
|
require('./form-input-type.enum-9c8ee12a.js');
|
|
24
26
|
require('./form-input-variation.enum-c750520c.js');
|
|
25
27
|
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
@@ -28,6 +30,7 @@ require('./form-textarea-variation.enum-9c90d40f.js');
|
|
|
28
30
|
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
29
31
|
require('./info-card-multi-type.enum-14746572.js');
|
|
30
32
|
require('./info-card-variation.enum-64cef637.js');
|
|
33
|
+
require('./layout-container-max-width.enum-7e637f44.js');
|
|
31
34
|
require('./layout-columns-variation.enum-65675649.js');
|
|
32
35
|
require('./link-button-variation.enum-137785e3.js');
|
|
33
36
|
require('./list-type.enum-aea4d012.js');
|
|
@@ -106,9 +109,9 @@ const ToolsFeedback = class {
|
|
|
106
109
|
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)" })))))));
|
|
107
110
|
}
|
|
108
111
|
get content() {
|
|
109
|
-
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":
|
|
112
|
+
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": buttonSize_enum.ButtonSize.MEDIUM, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY, "af-full-width": "false", onAfOnClick: () => {
|
|
110
113
|
this.currentStep = 3;
|
|
111
|
-
} }, "Ja"), index.h("digi-button", { "af-size":
|
|
114
|
+
} }, "Ja"), index.h("digi-button", { "af-size": buttonSize_enum.ButtonSize.MEDIUM, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY, "af-full-width": "false", onAfOnClick: () => {
|
|
112
115
|
this.currentStep = 2;
|
|
113
116
|
} }, "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!")))));
|
|
114
117
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7a477838.js');
|
|
6
|
+
const utilBreakpointObserverBreakpoints_enum = require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
|
|
7
|
+
|
|
8
|
+
const utilBreakpointObserverCss = ".sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer.sc-digi-util-breakpoint-observer{--SMALL:small;--MEDIUM:medium;--LARGE:large;--XLARGE:xlarge}.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--SMALL);border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;pointer-events:none;transition:transform 0.01s;transform:rotate(0deg)}@media (min-width: 48rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--MEDIUM);transform:rotate(10deg)}}@media (min-width: 61.9375rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--LARGE);transform:rotate(20deg)}}@media (min-width: 75rem){.sc-digi-util-breakpoint-observer-h .digi-util-breakpoint-observer__observer.sc-digi-util-breakpoint-observer{--digi--util-breakpoint-observer--breakpoint:var(--XLARGE);transform:rotate(30deg)}}";
|
|
9
|
+
const DigiUtilBreakpointObserverStyle0 = utilBreakpointObserverCss;
|
|
10
|
+
|
|
11
|
+
const UtilBreakpointObserver = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.afOnChange = index.createEvent(this, "afOnChange", 7);
|
|
15
|
+
this.afOnSmall = index.createEvent(this, "afOnSmall", 7);
|
|
16
|
+
this.afOnMedium = index.createEvent(this, "afOnMedium", 7);
|
|
17
|
+
this.afOnLarge = index.createEvent(this, "afOnLarge", 7);
|
|
18
|
+
this.afOnXLarge = index.createEvent(this, "afOnXLarge", 7);
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.handleBreakpoint();
|
|
22
|
+
}
|
|
23
|
+
handleBreakpoint(e) {
|
|
24
|
+
const observerCSSVariables = window.getComputedStyle(this._observer);
|
|
25
|
+
const value = observerCSSVariables.getPropertyValue('--digi--util-breakpoint-observer--breakpoint');
|
|
26
|
+
this.afOnChange.emit({ value, e });
|
|
27
|
+
switch (value) {
|
|
28
|
+
case utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.SMALL:
|
|
29
|
+
this.afOnSmall.emit({ value, e });
|
|
30
|
+
break;
|
|
31
|
+
case utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.MEDIUM:
|
|
32
|
+
this.afOnMedium.emit({ value, e });
|
|
33
|
+
break;
|
|
34
|
+
case utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.LARGE:
|
|
35
|
+
this.afOnLarge.emit({ value, e });
|
|
36
|
+
break;
|
|
37
|
+
case utilBreakpointObserverBreakpoints_enum.UtilBreakpointObserverBreakpoints.XLARGE:
|
|
38
|
+
this.afOnXLarge.emit({ value, e });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return (index.h(index.Host, { key: '7b728b39d3e64e3a144adbe5ba87aa0f88660225' }, index.h("div", { key: '28597939c55c61b83bda94e62de142f11ec482ad', class: "digi-util-breakpoint-observer" }, index.h("div", { key: 'de1f70aeefeaeceaf797695f1d2877df7fa80a1f', ref: (el) => (this._observer = el), onTransitionEnd: (e) => this.handleBreakpoint(e), class: "digi-util-breakpoint-observer__observer" }), index.h("slot", { key: '5ac72c8a1b44611705374e4150c6624baf49a489' }))));
|
|
43
|
+
}
|
|
44
|
+
get hostElement() { return index.getElement(this); }
|
|
45
|
+
};
|
|
46
|
+
UtilBreakpointObserver.style = DigiUtilBreakpointObserverStyle0;
|
|
47
|
+
|
|
48
|
+
exports.digi_util_breakpoint_observer = UtilBreakpointObserver;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7a477838.js');
|
|
6
|
+
const keyboardHandler_util = require('./keyboardHandler.util-d8600adb.js');
|
|
7
|
+
|
|
8
|
+
const UtilKeydownHandler = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.afOnEsc = index.createEvent(this, "afOnEsc", 7);
|
|
12
|
+
this.afOnEnter = index.createEvent(this, "afOnEnter", 7);
|
|
13
|
+
this.afOnTab = index.createEvent(this, "afOnTab", 7);
|
|
14
|
+
this.afOnSpace = index.createEvent(this, "afOnSpace", 7);
|
|
15
|
+
this.afOnShiftTab = index.createEvent(this, "afOnShiftTab", 7);
|
|
16
|
+
this.afOnUp = index.createEvent(this, "afOnUp", 7);
|
|
17
|
+
this.afOnDown = index.createEvent(this, "afOnDown", 7);
|
|
18
|
+
this.afOnLeft = index.createEvent(this, "afOnLeft", 7);
|
|
19
|
+
this.afOnRight = index.createEvent(this, "afOnRight", 7);
|
|
20
|
+
this.afOnHome = index.createEvent(this, "afOnHome", 7);
|
|
21
|
+
this.afOnEnd = index.createEvent(this, "afOnEnd", 7);
|
|
22
|
+
this.afOnKeyDown = index.createEvent(this, "afOnKeyDown", 7);
|
|
23
|
+
}
|
|
24
|
+
keydownHandler(e) {
|
|
25
|
+
const key = keyboardHandler_util.keyboardHandler(e);
|
|
26
|
+
switch (key) {
|
|
27
|
+
case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
|
|
28
|
+
this.afOnShiftTab.emit(e);
|
|
29
|
+
break;
|
|
30
|
+
case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
|
|
31
|
+
this.afOnDown.emit(e);
|
|
32
|
+
this.afOnKeyDown.emit(e);
|
|
33
|
+
break;
|
|
34
|
+
case keyboardHandler_util.KEY_CODE.UP_ARROW:
|
|
35
|
+
this.afOnUp.emit(e);
|
|
36
|
+
this.afOnKeyDown.emit(e);
|
|
37
|
+
break;
|
|
38
|
+
case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
|
|
39
|
+
this.afOnLeft.emit(e);
|
|
40
|
+
this.afOnKeyDown.emit(e);
|
|
41
|
+
break;
|
|
42
|
+
case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
|
|
43
|
+
this.afOnRight.emit(e);
|
|
44
|
+
this.afOnKeyDown.emit(e);
|
|
45
|
+
break;
|
|
46
|
+
case keyboardHandler_util.KEY_CODE.ENTER:
|
|
47
|
+
this.afOnEnter.emit(e);
|
|
48
|
+
this.afOnKeyDown.emit(e);
|
|
49
|
+
break;
|
|
50
|
+
case keyboardHandler_util.KEY_CODE.ESCAPE:
|
|
51
|
+
this.afOnEsc.emit(e);
|
|
52
|
+
this.afOnKeyDown.emit(e);
|
|
53
|
+
break;
|
|
54
|
+
case keyboardHandler_util.KEY_CODE.TAB:
|
|
55
|
+
this.afOnTab.emit(e);
|
|
56
|
+
this.afOnKeyDown.emit(e);
|
|
57
|
+
break;
|
|
58
|
+
case keyboardHandler_util.KEY_CODE.SPACE:
|
|
59
|
+
this.afOnSpace.emit(e);
|
|
60
|
+
this.afOnKeyDown.emit(e);
|
|
61
|
+
break;
|
|
62
|
+
case keyboardHandler_util.KEY_CODE.HOME:
|
|
63
|
+
this.afOnHome.emit(e);
|
|
64
|
+
this.afOnKeyDown.emit(e);
|
|
65
|
+
break;
|
|
66
|
+
case keyboardHandler_util.KEY_CODE.END:
|
|
67
|
+
this.afOnEnd.emit(e);
|
|
68
|
+
this.afOnKeyDown.emit(e);
|
|
69
|
+
break;
|
|
70
|
+
case keyboardHandler_util.KEY_CODE.ANY:
|
|
71
|
+
this.afOnKeyDown.emit(e);
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
this.afOnKeyDown.emit(e);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return index.h("slot", { key: '41770384646aa3319a1c531bb6f9f0199ec049ac' });
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
exports.digi_util_keydown_handler = UtilKeydownHandler;
|
|
@@ -1,12 +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
3
|
exports.FormInputSearchVariation = void 0;
|
|
11
4
|
(function (FormInputSearchVariation) {
|
|
12
5
|
FormInputSearchVariation["SMALL"] = "small";
|