@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,162 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-148a7577.js';
|
|
2
|
+
|
|
3
|
+
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%}";
|
|
4
|
+
const DigiMediaImageStyle0 = mediaImageCss;
|
|
5
|
+
|
|
6
|
+
const MediaImage = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.afOnLoad = createEvent(this, "afOnLoad", 7);
|
|
10
|
+
this.isPlaceholderLoaded = false;
|
|
11
|
+
this.hasSetSrc = false;
|
|
12
|
+
this.hasAspectRatio = false;
|
|
13
|
+
this.paddedBoxPadding = '0%';
|
|
14
|
+
this.isLoaded = false;
|
|
15
|
+
this.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=';
|
|
16
|
+
this.srcset = undefined;
|
|
17
|
+
this.afObserverOptions = {
|
|
18
|
+
rootMargin: '200px',
|
|
19
|
+
threshold: 0
|
|
20
|
+
};
|
|
21
|
+
this.afSrc = undefined;
|
|
22
|
+
this.afSrcset = undefined;
|
|
23
|
+
this.afAlt = undefined;
|
|
24
|
+
this.afTitle = undefined;
|
|
25
|
+
this.afAriaLabel = undefined;
|
|
26
|
+
this.afWidth = undefined;
|
|
27
|
+
this.afHeight = undefined;
|
|
28
|
+
this.afFullwidth = undefined;
|
|
29
|
+
this.afUnlazy = false;
|
|
30
|
+
}
|
|
31
|
+
srcChangeHandler() {
|
|
32
|
+
this.setImageSrc();
|
|
33
|
+
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
if (this.afUnlazy) {
|
|
36
|
+
this.setImageSrc();
|
|
37
|
+
}
|
|
38
|
+
// Add padded box to wrapper if width and height props exists
|
|
39
|
+
if (this.afWidth && this.afHeight) {
|
|
40
|
+
this.hasAspectRatio = true;
|
|
41
|
+
this.setPaddedBox();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
setImageSrc() {
|
|
45
|
+
this.src = this.afSrc;
|
|
46
|
+
this.srcset = this.afSrcset;
|
|
47
|
+
this.hasSetSrc = true;
|
|
48
|
+
}
|
|
49
|
+
setPaddedBox() {
|
|
50
|
+
this.paddedBoxPadding =
|
|
51
|
+
(parseInt(this.afHeight, 10) / parseInt(this.afWidth, 10)) * 100 + '%';
|
|
52
|
+
}
|
|
53
|
+
intersectHandler() {
|
|
54
|
+
if (this.afUnlazy) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
this.setImageSrc();
|
|
58
|
+
}
|
|
59
|
+
loadHandler(e) {
|
|
60
|
+
if (this.afUnlazy) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (this.isPlaceholderLoaded) {
|
|
64
|
+
this.isLoaded = true;
|
|
65
|
+
this.afOnLoad.emit(e);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.isPlaceholderLoaded = true;
|
|
69
|
+
}
|
|
70
|
+
get cssModifiers() {
|
|
71
|
+
return {
|
|
72
|
+
'digi-media-image--unlazy': this.afUnlazy,
|
|
73
|
+
'digi-media-image--loaded': this.isLoaded,
|
|
74
|
+
'digi-media-image--aspect-ratio': this.hasAspectRatio,
|
|
75
|
+
'digi-media-image--fullwidth': this.afFullwidth
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
get cssInlineStyles() {
|
|
79
|
+
return {
|
|
80
|
+
'--digi--media-image--padded-box': this.paddedBoxPadding
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return (h("host", { key: 'd73ca369f146ceee58517820156c254eb0fdb0d3' }, h("div", { key: '93419395e2c892dd7a727314d9969cfa4b486142', class: Object.assign({ 'digi-media-image': true }, this.cssModifiers), style: {
|
|
85
|
+
'--digi--media-image--width': this.afWidth
|
|
86
|
+
? `${this.afWidth}px`
|
|
87
|
+
: null
|
|
88
|
+
} }, h("digi-util-intersection-observer", { key: '1ef7fbf526107cd283b77eafdc6dae8d01b925c5', class: "digi-media-image__observer", onAfOnIntersect: () => this.intersectHandler(), afOnce: true, afOptions: this.afObserverOptions }), this.hasAspectRatio && (h("div", { key: '265b145a1c4adbd92945f0f7ea5c245a315a2d69', class: "digi-media-image__padded-box", style: this.cssInlineStyles })), 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' }))));
|
|
89
|
+
}
|
|
90
|
+
static get watchers() { return {
|
|
91
|
+
"afSrc": ["srcChangeHandler"]
|
|
92
|
+
}; }
|
|
93
|
+
};
|
|
94
|
+
MediaImage.style = DigiMediaImageStyle0;
|
|
95
|
+
|
|
96
|
+
const UtilIntersectionObserver = class {
|
|
97
|
+
constructor(hostRef) {
|
|
98
|
+
registerInstance(this, hostRef);
|
|
99
|
+
this.afOnChange = createEvent(this, "afOnChange", 7);
|
|
100
|
+
this.afOnIntersect = createEvent(this, "afOnIntersect", 7);
|
|
101
|
+
this.afOnUnintersect = createEvent(this, "afOnUnintersect", 7);
|
|
102
|
+
this._observer = null;
|
|
103
|
+
this._hasIntersected = false;
|
|
104
|
+
this._isObserving = false;
|
|
105
|
+
this.afOnce = false;
|
|
106
|
+
this.afOptions = {
|
|
107
|
+
rootMargin: '0px',
|
|
108
|
+
threshold: 0
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
afOptionsWatcher(newValue) {
|
|
112
|
+
this._afOptions =
|
|
113
|
+
typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
|
|
114
|
+
}
|
|
115
|
+
componentWillLoad() {
|
|
116
|
+
this.afOptionsWatcher(this.afOptions);
|
|
117
|
+
this.initObserver();
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
if (this._isObserving) {
|
|
121
|
+
this.removeObserver();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
initObserver() {
|
|
125
|
+
this._observer = new IntersectionObserver(([entry]) => {
|
|
126
|
+
if (entry && entry.isIntersecting) {
|
|
127
|
+
this.intersectionHandler();
|
|
128
|
+
if (this.afOnce) {
|
|
129
|
+
this.removeObserver();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else if (entry && this._hasIntersected) {
|
|
133
|
+
this.unintersectionHandler();
|
|
134
|
+
}
|
|
135
|
+
}, this._afOptions);
|
|
136
|
+
this._observer.observe(this.$el);
|
|
137
|
+
this._isObserving = true;
|
|
138
|
+
}
|
|
139
|
+
removeObserver() {
|
|
140
|
+
this._observer.disconnect();
|
|
141
|
+
this._isObserving = false;
|
|
142
|
+
}
|
|
143
|
+
intersectionHandler() {
|
|
144
|
+
this.afOnChange.emit(true);
|
|
145
|
+
this.afOnIntersect.emit();
|
|
146
|
+
this._hasIntersected = true;
|
|
147
|
+
}
|
|
148
|
+
unintersectionHandler() {
|
|
149
|
+
this.afOnChange.emit(false);
|
|
150
|
+
this.afOnUnintersect.emit();
|
|
151
|
+
this._hasIntersected = false;
|
|
152
|
+
}
|
|
153
|
+
render() {
|
|
154
|
+
return h("slot", { key: '4d011168ecb730b4ab3e78df5781f0577b614ebb' });
|
|
155
|
+
}
|
|
156
|
+
get $el() { return getElement(this); }
|
|
157
|
+
static get watchers() { return {
|
|
158
|
+
"afOptions": ["afOptionsWatcher"]
|
|
159
|
+
}; }
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export { MediaImage as digi_media_image, UtilIntersectionObserver as digi_util_intersection_observer };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-148a7577.js';
|
|
2
2
|
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
3
3
|
import './badge-notification-shape.enum-e15a6245.js';
|
|
4
|
-
import './typography-variation.enum-
|
|
4
|
+
import './typography-variation.enum-8c3ff25c.js';
|
|
5
5
|
import './badge-status-variation.enum-8d6370ff.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
6
|
+
import './button-size.enum-d5ff6ff3.js';
|
|
7
|
+
import './button-type.enum-5250ae0b.js';
|
|
8
8
|
import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
|
|
9
9
|
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
10
10
|
import './bar-chart-variation.enum-97c0b47f.js';
|
|
11
|
+
import './code-example-variation.enum-e9f9fced.js';
|
|
11
12
|
import './code-variation.enum-1eee7c7a.js';
|
|
12
13
|
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
13
14
|
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
@@ -15,6 +16,7 @@ import './expandable-faq-variation.enum-6934c367.js';
|
|
|
15
16
|
import './footer-card-variation.enum-cc732148.js';
|
|
16
17
|
import './form-checkbox-variation.enum-83e906fc.js';
|
|
17
18
|
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
19
|
+
import './form-input-search-variation.enum-f9d669f2.js';
|
|
18
20
|
import './form-input-type.enum-3da3db27.js';
|
|
19
21
|
import './form-input-variation.enum-64d9450f.js';
|
|
20
22
|
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
@@ -23,6 +25,7 @@ import './form-textarea-variation.enum-05017e8e.js';
|
|
|
23
25
|
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
24
26
|
import './info-card-multi-type.enum-07ee124f.js';
|
|
25
27
|
import './info-card-variation.enum-2ccc52c1.js';
|
|
28
|
+
import './layout-container-max-width.enum-c40018ac.js';
|
|
26
29
|
import './layout-block-variation.enum-b7a20db4.js';
|
|
27
30
|
import './layout-columns-variation.enum-34f7754e.js';
|
|
28
31
|
import './link-button-variation.enum-84d4976f.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-148a7577.js';
|
|
2
|
+
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
3
|
+
|
|
4
|
+
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)}";
|
|
5
|
+
const DigiNavigationSidebarButtonStyle0 = navigationSidebarButtonCss;
|
|
6
|
+
|
|
7
|
+
const NavigationSidebarButton = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.afOnToggle = createEvent(this, "afOnToggle", 7);
|
|
11
|
+
this.isActive = false;
|
|
12
|
+
this.afText = undefined;
|
|
13
|
+
this.afAriaLabel = undefined;
|
|
14
|
+
this.afId = randomIdGenerator('digi-navigation-sidebar-button');
|
|
15
|
+
}
|
|
16
|
+
toggleHandler() {
|
|
17
|
+
this.isActive = !this.isActive;
|
|
18
|
+
this.afOnToggle.emit(this.isActive);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (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, h("digi-icon-bars", { key: '1d3b9f381d2c90cf25a7c7d7a9f394f617575be7', slot: "icon" })));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
NavigationSidebarButton.style = DigiNavigationSidebarButtonStyle0;
|
|
25
|
+
|
|
26
|
+
export { NavigationSidebarButton as digi_navigation_sidebar_button };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-148a7577.js';
|
|
2
2
|
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
3
|
-
import { N as NotificationAlertHeadingLevel,
|
|
3
|
+
import { N as NotificationAlertHeadingLevel, p as NotificationAlertSize, q as NotificationAlertVariation, u as TypographyVariation } from './typography-variation.enum-8c3ff25c.js';
|
|
4
4
|
import './badge-notification-shape.enum-e15a6245.js';
|
|
5
5
|
import './badge-status-variation.enum-8d6370ff.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
6
|
+
import './button-size.enum-d5ff6ff3.js';
|
|
7
|
+
import './button-type.enum-5250ae0b.js';
|
|
8
8
|
import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
|
|
9
9
|
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
10
10
|
import './bar-chart-variation.enum-97c0b47f.js';
|
|
11
|
+
import './code-example-variation.enum-e9f9fced.js';
|
|
11
12
|
import './code-variation.enum-1eee7c7a.js';
|
|
12
13
|
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
13
14
|
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
@@ -15,6 +16,7 @@ import './expandable-faq-variation.enum-6934c367.js';
|
|
|
15
16
|
import './footer-card-variation.enum-cc732148.js';
|
|
16
17
|
import './form-checkbox-variation.enum-83e906fc.js';
|
|
17
18
|
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
19
|
+
import './form-input-search-variation.enum-f9d669f2.js';
|
|
18
20
|
import './form-input-type.enum-3da3db27.js';
|
|
19
21
|
import './form-input-variation.enum-64d9450f.js';
|
|
20
22
|
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
@@ -23,6 +25,7 @@ import './form-textarea-variation.enum-05017e8e.js';
|
|
|
23
25
|
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
24
26
|
import './info-card-multi-type.enum-07ee124f.js';
|
|
25
27
|
import './info-card-variation.enum-2ccc52c1.js';
|
|
28
|
+
import './layout-container-max-width.enum-c40018ac.js';
|
|
26
29
|
import './layout-block-variation.enum-b7a20db4.js';
|
|
27
30
|
import './layout-columns-variation.enum-34f7754e.js';
|
|
28
31
|
import './link-button-variation.enum-84d4976f.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { h, r as registerInstance, H as Host, g as getElement } from './index-148a7577.js';
|
|
2
|
-
import { E as ErrorPageStatusCodes } from './typography-variation.enum-
|
|
2
|
+
import { E as ErrorPageStatusCodes } from './typography-variation.enum-8c3ff25c.js';
|
|
3
3
|
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
4
4
|
import './badge-notification-shape.enum-e15a6245.js';
|
|
5
5
|
import './badge-status-variation.enum-8d6370ff.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
6
|
+
import './button-size.enum-d5ff6ff3.js';
|
|
7
|
+
import './button-type.enum-5250ae0b.js';
|
|
8
8
|
import './button-variation.enum-94fffdd6.js';
|
|
9
9
|
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
10
10
|
import './bar-chart-variation.enum-97c0b47f.js';
|
|
11
|
+
import './code-example-variation.enum-e9f9fced.js';
|
|
11
12
|
import './code-variation.enum-1eee7c7a.js';
|
|
12
13
|
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
13
14
|
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
@@ -15,6 +16,7 @@ import './expandable-faq-variation.enum-6934c367.js';
|
|
|
15
16
|
import './footer-card-variation.enum-cc732148.js';
|
|
16
17
|
import './form-checkbox-variation.enum-83e906fc.js';
|
|
17
18
|
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
19
|
+
import './form-input-search-variation.enum-f9d669f2.js';
|
|
18
20
|
import './form-input-type.enum-3da3db27.js';
|
|
19
21
|
import './form-input-variation.enum-64d9450f.js';
|
|
20
22
|
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
@@ -23,6 +25,7 @@ import './form-textarea-variation.enum-05017e8e.js';
|
|
|
23
25
|
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
24
26
|
import './info-card-multi-type.enum-07ee124f.js';
|
|
25
27
|
import './info-card-variation.enum-2ccc52c1.js';
|
|
28
|
+
import './layout-container-max-width.enum-c40018ac.js';
|
|
26
29
|
import './layout-block-variation.enum-b7a20db4.js';
|
|
27
30
|
import './layout-columns-variation.enum-34f7754e.js';
|
|
28
31
|
import './link-button-variation.enum-84d4976f.js';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-148a7577.js';
|
|
2
|
+
import './badge-notification-shape.enum-e15a6245.js';
|
|
3
|
+
import { T as TitleLogoVariation } from './typography-variation.enum-8c3ff25c.js';
|
|
4
|
+
import './badge-status-variation.enum-8d6370ff.js';
|
|
5
|
+
import './button-size.enum-d5ff6ff3.js';
|
|
6
|
+
import './button-type.enum-5250ae0b.js';
|
|
7
|
+
import './button-variation.enum-94fffdd6.js';
|
|
8
|
+
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
9
|
+
import './bar-chart-variation.enum-97c0b47f.js';
|
|
10
|
+
import './code-example-variation.enum-e9f9fced.js';
|
|
11
|
+
import './code-variation.enum-1eee7c7a.js';
|
|
12
|
+
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
13
|
+
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
14
|
+
import './expandable-faq-variation.enum-6934c367.js';
|
|
15
|
+
import './footer-card-variation.enum-cc732148.js';
|
|
16
|
+
import './form-checkbox-variation.enum-83e906fc.js';
|
|
17
|
+
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
18
|
+
import './form-input-search-variation.enum-f9d669f2.js';
|
|
19
|
+
import './form-input-type.enum-3da3db27.js';
|
|
20
|
+
import './form-input-variation.enum-64d9450f.js';
|
|
21
|
+
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
22
|
+
import './form-select-variation.enum-f2f6098d.js';
|
|
23
|
+
import './form-textarea-variation.enum-05017e8e.js';
|
|
24
|
+
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
25
|
+
import './info-card-multi-type.enum-07ee124f.js';
|
|
26
|
+
import './info-card-variation.enum-2ccc52c1.js';
|
|
27
|
+
import './layout-container-max-width.enum-c40018ac.js';
|
|
28
|
+
import './layout-block-variation.enum-b7a20db4.js';
|
|
29
|
+
import './layout-columns-variation.enum-34f7754e.js';
|
|
30
|
+
import './link-button-variation.enum-84d4976f.js';
|
|
31
|
+
import './list-type.enum-fbb331ad.js';
|
|
32
|
+
import './loader-skeleton-variation.enum-f9f867b4.js';
|
|
33
|
+
import './loader-spinner-size.enum-0b246fa0.js';
|
|
34
|
+
import './logo-variation.enum-5b68b79f.js';
|
|
35
|
+
import './media-figure-alignment.enum-a1d36567.js';
|
|
36
|
+
import './navigation-sidebar-variation.enum-8fead764.js';
|
|
37
|
+
import './navigation-vertical-menu-variation.enum-c30b0ea9.js';
|
|
38
|
+
import './progress-indicator-variation.enum-b12ba50a.js';
|
|
39
|
+
import './progress-list-item-variation.enum-384b9a3a.js';
|
|
40
|
+
import './progress-list-variation.enum-300bd89d.js';
|
|
41
|
+
import './progressbar-variation.enum-40adaab4.js';
|
|
42
|
+
import './quote-image-inner-position.enum-8e9b1e65.js';
|
|
43
|
+
import './table-variation.enum-dd9366b6.js';
|
|
44
|
+
import './tag-media-icon.enum-fefa191c.js';
|
|
45
|
+
import './tag-size.enum-403e0cd8.js';
|
|
46
|
+
import './tools-feedback-banner-type.enum-74b4e580.js';
|
|
47
|
+
import './tools-feedback-rating-variation.enum-29058ff2.js';
|
|
48
|
+
import './tools-theme-provider.brand.enum-8c5a98c9.js';
|
|
49
|
+
import './typography-heading-jumbo-variation.enum-eb737f1b.js';
|
|
50
|
+
import './typography-meta-variation.enum-1f7c2878.js';
|
|
51
|
+
import './typography-time-variation.enum-34c830ef.js';
|
|
52
|
+
import { U as UtilBreakpointObserverBreakpoints } from './util-breakpoint-observer-breakpoints.enum-6d004731.js';
|
|
53
|
+
|
|
54
|
+
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}";
|
|
55
|
+
const DigiTitleLogoStyle0 = titleLogoCss;
|
|
56
|
+
|
|
57
|
+
const TitleLogo = class {
|
|
58
|
+
constructor(hostRef) {
|
|
59
|
+
registerInstance(this, hostRef);
|
|
60
|
+
this.handleWindowResize = () => {
|
|
61
|
+
this.titleLogoVariation = this.setLogoVariation(window.innerWidth);
|
|
62
|
+
};
|
|
63
|
+
this.isMobile = undefined;
|
|
64
|
+
this.isTablet = undefined;
|
|
65
|
+
this.titleLogoVariation = undefined;
|
|
66
|
+
this.afAriaLabel = undefined;
|
|
67
|
+
this.afLogoBreakpoint = undefined;
|
|
68
|
+
}
|
|
69
|
+
setLogoVariation(width) {
|
|
70
|
+
if (this.isMobile)
|
|
71
|
+
return TitleLogoVariation.MOBILE;
|
|
72
|
+
const isNarrow = this.afLogoBreakpoint
|
|
73
|
+
? width < this.afLogoBreakpoint
|
|
74
|
+
: this.isTablet;
|
|
75
|
+
if (isNarrow) {
|
|
76
|
+
return this.hasTwoRowLogoName
|
|
77
|
+
? TitleLogoVariation.TWO_ROWS
|
|
78
|
+
: TitleLogoVariation.ONE_ROW;
|
|
79
|
+
}
|
|
80
|
+
return this.hasOneRowLogoName
|
|
81
|
+
? TitleLogoVariation.ONE_ROW
|
|
82
|
+
: TitleLogoVariation.TWO_ROWS;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Find out if we have one or both of the possible logo variations
|
|
86
|
+
* Throw an error if we have none
|
|
87
|
+
*/
|
|
88
|
+
componentWillLoad() {
|
|
89
|
+
this.hasOneRowLogoName = !!this.hostElement.querySelector('[slot="logo-one-row"]');
|
|
90
|
+
this.hasTwoRowLogoName = !!this.hostElement.querySelector('[slot="logo-two-rows"]');
|
|
91
|
+
if (!this.hasOneRowLogoName && !this.hasTwoRowLogoName) {
|
|
92
|
+
throw new Error('Du behöver ange minst en variant av logo-text');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* We need a custom resize listener here, since we're
|
|
97
|
+
* not only relying on breakpoints
|
|
98
|
+
*/
|
|
99
|
+
componentDidLoad() {
|
|
100
|
+
if (window) {
|
|
101
|
+
this.handleWindowResize();
|
|
102
|
+
window.addEventListener('resize', this.handleWindowResize, { passive: true });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Let's clean up as well
|
|
107
|
+
*/
|
|
108
|
+
disconnectedCallback() {
|
|
109
|
+
if (window) {
|
|
110
|
+
window.removeEventListener('resize', this.handleWindowResize);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
handleBreakpointObserver(e) {
|
|
114
|
+
this.isMobile = e.detail.value === UtilBreakpointObserverBreakpoints.SMALL;
|
|
115
|
+
this.isTablet = e.detail.value === UtilBreakpointObserverBreakpoints.MEDIUM;
|
|
116
|
+
}
|
|
117
|
+
get cssModifiers() {
|
|
118
|
+
return {
|
|
119
|
+
'digi-title-logo--mobile': this.titleLogoVariation === TitleLogoVariation.MOBILE,
|
|
120
|
+
'digi-title-logo--one-row': this.titleLogoVariation === TitleLogoVariation.ONE_ROW,
|
|
121
|
+
'digi-title-logo--two-rows': this.titleLogoVariation === TitleLogoVariation.TWO_ROWS
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
return (h("div", { key: 'f2d92667466100ff385d2918a8396c95d32cb22c', class: Object.assign({ 'digi-title-logo': true }, this.cssModifiers) }, h("digi-util-breakpoint-observer", { key: 'd0a0692c5386725c0ce2fca5c4a6913b8710fa1c', onAfOnChange: (e) => this.handleBreakpointObserver(e) }), h("div", { key: 'a0a36fd875d4fc2d6874f53ae49ac2e9f17e273f', class: "digi-title-logo-symbol" }, h("svg", { key: '489404f99e4b411bd66cc274b60a7fc83bffa126', height: "44px", width: "44px", viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img" }, 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" }))), h("div", { key: '46a1b7b8fd35718591d29093da200d1f79fab483', class: "digi-title-logo-name-wrapper" }, h("slot", { key: 'ec09ce755fcb0bf00045c947199c7c9cda9de689', name: "logo-one-row" }), h("slot", { key: '27eca2b9520cee673f0042d729c4d20a31406a72', name: "logo-two-rows" }))));
|
|
126
|
+
}
|
|
127
|
+
get hostElement() { return getElement(this); }
|
|
128
|
+
};
|
|
129
|
+
TitleLogo.style = DigiTitleLogoStyle0;
|
|
130
|
+
|
|
131
|
+
export { TitleLogo as digi_title_logo };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-148a7577.js';
|
|
2
2
|
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
3
|
-
import {
|
|
3
|
+
import { t as FeedbackVariation, s as ToolsFeedbackType, r as ToolsFeedbackHeadingLevel } from './typography-variation.enum-8c3ff25c.js';
|
|
4
4
|
import { L as LayoutBlockVariation } from './layout-block-variation.enum-b7a20db4.js';
|
|
5
5
|
import './badge-notification-shape.enum-e15a6245.js';
|
|
6
6
|
import './badge-status-variation.enum-8d6370ff.js';
|
|
7
|
-
import { B as ButtonSize } from './
|
|
8
|
-
import './
|
|
7
|
+
import { B as ButtonSize } from './button-size.enum-d5ff6ff3.js';
|
|
8
|
+
import './button-type.enum-5250ae0b.js';
|
|
9
9
|
import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
|
|
10
10
|
import './calendar-week-view-heading-level.enum-6774297c.js';
|
|
11
11
|
import './bar-chart-variation.enum-97c0b47f.js';
|
|
12
|
+
import './code-example-variation.enum-e9f9fced.js';
|
|
12
13
|
import './code-variation.enum-1eee7c7a.js';
|
|
13
14
|
import './expandable-accordion-header-level.enum-85681e2f.js';
|
|
14
15
|
import './expandable-faq-item-variation.enum-a8cb225b.js';
|
|
@@ -16,6 +17,7 @@ import './expandable-faq-variation.enum-6934c367.js';
|
|
|
16
17
|
import './footer-card-variation.enum-cc732148.js';
|
|
17
18
|
import './form-checkbox-variation.enum-83e906fc.js';
|
|
18
19
|
import './form-file-upload-variation.enum-9c49ec5e.js';
|
|
20
|
+
import './form-input-search-variation.enum-f9d669f2.js';
|
|
19
21
|
import './form-input-type.enum-3da3db27.js';
|
|
20
22
|
import './form-input-variation.enum-64d9450f.js';
|
|
21
23
|
import './form-radiogroup-validation.enum-d790fc66.js';
|
|
@@ -24,6 +26,7 @@ import './form-textarea-variation.enum-05017e8e.js';
|
|
|
24
26
|
import './form-validation-message-variation.enum-bcef8a9d.js';
|
|
25
27
|
import './info-card-multi-type.enum-07ee124f.js';
|
|
26
28
|
import './info-card-variation.enum-2ccc52c1.js';
|
|
29
|
+
import './layout-container-max-width.enum-c40018ac.js';
|
|
27
30
|
import './layout-columns-variation.enum-34f7754e.js';
|
|
28
31
|
import './link-button-variation.enum-84d4976f.js';
|
|
29
32
|
import './list-type.enum-fbb331ad.js';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-148a7577.js';
|
|
2
|
+
import { U as UtilBreakpointObserverBreakpoints } from './util-breakpoint-observer-breakpoints.enum-6d004731.js';
|
|
3
|
+
|
|
4
|
+
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)}}";
|
|
5
|
+
const DigiUtilBreakpointObserverStyle0 = utilBreakpointObserverCss;
|
|
6
|
+
|
|
7
|
+
const UtilBreakpointObserver = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.afOnChange = createEvent(this, "afOnChange", 7);
|
|
11
|
+
this.afOnSmall = createEvent(this, "afOnSmall", 7);
|
|
12
|
+
this.afOnMedium = createEvent(this, "afOnMedium", 7);
|
|
13
|
+
this.afOnLarge = createEvent(this, "afOnLarge", 7);
|
|
14
|
+
this.afOnXLarge = createEvent(this, "afOnXLarge", 7);
|
|
15
|
+
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
this.handleBreakpoint();
|
|
18
|
+
}
|
|
19
|
+
handleBreakpoint(e) {
|
|
20
|
+
const observerCSSVariables = window.getComputedStyle(this._observer);
|
|
21
|
+
const value = observerCSSVariables.getPropertyValue('--digi--util-breakpoint-observer--breakpoint');
|
|
22
|
+
this.afOnChange.emit({ value, e });
|
|
23
|
+
switch (value) {
|
|
24
|
+
case UtilBreakpointObserverBreakpoints.SMALL:
|
|
25
|
+
this.afOnSmall.emit({ value, e });
|
|
26
|
+
break;
|
|
27
|
+
case UtilBreakpointObserverBreakpoints.MEDIUM:
|
|
28
|
+
this.afOnMedium.emit({ value, e });
|
|
29
|
+
break;
|
|
30
|
+
case UtilBreakpointObserverBreakpoints.LARGE:
|
|
31
|
+
this.afOnLarge.emit({ value, e });
|
|
32
|
+
break;
|
|
33
|
+
case UtilBreakpointObserverBreakpoints.XLARGE:
|
|
34
|
+
this.afOnXLarge.emit({ value, e });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return (h(Host, { key: '7b728b39d3e64e3a144adbe5ba87aa0f88660225' }, h("div", { key: '28597939c55c61b83bda94e62de142f11ec482ad', class: "digi-util-breakpoint-observer" }, h("div", { key: 'de1f70aeefeaeceaf797695f1d2877df7fa80a1f', ref: (el) => (this._observer = el), onTransitionEnd: (e) => this.handleBreakpoint(e), class: "digi-util-breakpoint-observer__observer" }), h("slot", { key: '5ac72c8a1b44611705374e4150c6624baf49a489' }))));
|
|
39
|
+
}
|
|
40
|
+
get hostElement() { return getElement(this); }
|
|
41
|
+
};
|
|
42
|
+
UtilBreakpointObserver.style = DigiUtilBreakpointObserverStyle0;
|
|
43
|
+
|
|
44
|
+
export { UtilBreakpointObserver as digi_util_breakpoint_observer };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-148a7577.js';
|
|
2
|
+
import { K as KEY_CODE, k as keyboardHandler } from './keyboardHandler.util-383c0054.js';
|
|
3
|
+
|
|
4
|
+
const UtilKeydownHandler = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this.afOnEsc = createEvent(this, "afOnEsc", 7);
|
|
8
|
+
this.afOnEnter = createEvent(this, "afOnEnter", 7);
|
|
9
|
+
this.afOnTab = createEvent(this, "afOnTab", 7);
|
|
10
|
+
this.afOnSpace = createEvent(this, "afOnSpace", 7);
|
|
11
|
+
this.afOnShiftTab = createEvent(this, "afOnShiftTab", 7);
|
|
12
|
+
this.afOnUp = createEvent(this, "afOnUp", 7);
|
|
13
|
+
this.afOnDown = createEvent(this, "afOnDown", 7);
|
|
14
|
+
this.afOnLeft = createEvent(this, "afOnLeft", 7);
|
|
15
|
+
this.afOnRight = createEvent(this, "afOnRight", 7);
|
|
16
|
+
this.afOnHome = createEvent(this, "afOnHome", 7);
|
|
17
|
+
this.afOnEnd = createEvent(this, "afOnEnd", 7);
|
|
18
|
+
this.afOnKeyDown = createEvent(this, "afOnKeyDown", 7);
|
|
19
|
+
}
|
|
20
|
+
keydownHandler(e) {
|
|
21
|
+
const key = keyboardHandler(e);
|
|
22
|
+
switch (key) {
|
|
23
|
+
case KEY_CODE.SHIFT_TAB:
|
|
24
|
+
this.afOnShiftTab.emit(e);
|
|
25
|
+
break;
|
|
26
|
+
case KEY_CODE.DOWN_ARROW:
|
|
27
|
+
this.afOnDown.emit(e);
|
|
28
|
+
this.afOnKeyDown.emit(e);
|
|
29
|
+
break;
|
|
30
|
+
case KEY_CODE.UP_ARROW:
|
|
31
|
+
this.afOnUp.emit(e);
|
|
32
|
+
this.afOnKeyDown.emit(e);
|
|
33
|
+
break;
|
|
34
|
+
case KEY_CODE.LEFT_ARROW:
|
|
35
|
+
this.afOnLeft.emit(e);
|
|
36
|
+
this.afOnKeyDown.emit(e);
|
|
37
|
+
break;
|
|
38
|
+
case KEY_CODE.RIGHT_ARROW:
|
|
39
|
+
this.afOnRight.emit(e);
|
|
40
|
+
this.afOnKeyDown.emit(e);
|
|
41
|
+
break;
|
|
42
|
+
case KEY_CODE.ENTER:
|
|
43
|
+
this.afOnEnter.emit(e);
|
|
44
|
+
this.afOnKeyDown.emit(e);
|
|
45
|
+
break;
|
|
46
|
+
case KEY_CODE.ESCAPE:
|
|
47
|
+
this.afOnEsc.emit(e);
|
|
48
|
+
this.afOnKeyDown.emit(e);
|
|
49
|
+
break;
|
|
50
|
+
case KEY_CODE.TAB:
|
|
51
|
+
this.afOnTab.emit(e);
|
|
52
|
+
this.afOnKeyDown.emit(e);
|
|
53
|
+
break;
|
|
54
|
+
case KEY_CODE.SPACE:
|
|
55
|
+
this.afOnSpace.emit(e);
|
|
56
|
+
this.afOnKeyDown.emit(e);
|
|
57
|
+
break;
|
|
58
|
+
case KEY_CODE.HOME:
|
|
59
|
+
this.afOnHome.emit(e);
|
|
60
|
+
this.afOnKeyDown.emit(e);
|
|
61
|
+
break;
|
|
62
|
+
case KEY_CODE.END:
|
|
63
|
+
this.afOnEnd.emit(e);
|
|
64
|
+
this.afOnKeyDown.emit(e);
|
|
65
|
+
break;
|
|
66
|
+
case KEY_CODE.ANY:
|
|
67
|
+
this.afOnKeyDown.emit(e);
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
this.afOnKeyDown.emit(e);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
return h("slot", { key: '41770384646aa3319a1c531bb6f9f0199ec049ac' });
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { UtilKeydownHandler as digi_util_keydown_handler };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
var ButtonType;
|
|
2
|
-
(function (ButtonType) {
|
|
3
|
-
ButtonType["BUTTON"] = "button";
|
|
4
|
-
ButtonType["SUBMIT"] = "submit";
|
|
5
|
-
ButtonType["RESET"] = "reset";
|
|
6
|
-
})(ButtonType || (ButtonType = {}));
|
|
7
|
-
|
|
8
1
|
var FormInputSearchVariation;
|
|
9
2
|
(function (FormInputSearchVariation) {
|
|
10
3
|
FormInputSearchVariation["SMALL"] = "small";
|
|
@@ -12,4 +5,4 @@ var FormInputSearchVariation;
|
|
|
12
5
|
FormInputSearchVariation["LARGE"] = "large";
|
|
13
6
|
})(FormInputSearchVariation || (FormInputSearchVariation = {}));
|
|
14
7
|
|
|
15
|
-
export {
|
|
8
|
+
export { FormInputSearchVariation as F };
|