scb-wc-test 0.1.23 → 0.1.24
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/mvc/components/scb-calendar-card/scb-calendar-card.js +223 -195
- package/mvc/components/scb-card/scb-card.js +148 -101
- package/mvc/components/scb-checkbox/scb-checkbox.js +6 -6
- package/mvc/components/scb-drawer/scb-drawer-item.js +1 -1
- package/mvc/components/scb-drawer/scb-drawer-section.js +2 -2
- package/mvc/components/scb-drawer/scb-drawer.js +88 -80
- package/mvc/components/scb-drawer/scb-sub-drawer.js +3 -3
- package/mvc/components/scb-fact-card/scb-fact-card.js +68 -16
- package/mvc/components/scb-footer/scb-footer.js +20 -13
- package/mvc/components/scb-header/scb-header.js +13 -14
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +31 -22
- package/mvc/components/scb-list/scb-list-item.js +22 -11
- package/mvc/components/scb-search/scb-search.js +1 -1
- package/mvc/components/scb-tabs/scb-primary-tab.js +1 -1
- package/mvc/components/scb-tabs/scb-secondary-tab.js +1 -1
- package/mvc/components/scb-tabs/scb-tabs.js +2 -2
- package/mvc/vendor/vendor-material.js +118 -118
- package/mvc/vendor/vendor.js +1 -1
- package/package.json +2 -2
- package/scb-calendar-card/scb-calendar-card.d.ts +14 -3
- package/scb-calendar-card/scb-calendar-card.js +259 -211
- package/scb-card/scb-card.d.ts +11 -6
- package/scb-card/scb-card.js +227 -170
- package/scb-checkbox/scb-checkbox.d.ts +1 -0
- package/scb-checkbox/scb-checkbox.js +57 -53
- package/scb-drawer/scb-drawer.d.ts +3 -26
- package/scb-drawer/scb-drawer.js +123 -120
- package/scb-drawer/scb-sub-drawer.js +4 -4
- package/scb-fact-card/scb-fact-card.d.ts +12 -5
- package/scb-fact-card/scb-fact-card.js +142 -73
- package/scb-footer/scb-footer.d.ts +2 -0
- package/scb-footer/scb-footer.js +52 -40
- package/scb-header/scb-header.d.ts +9 -0
- package/scb-header/scb-header.js +196 -173
- package/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
- package/scb-keyfigure-card/scb-keyfigure-card.js +69 -46
- package/scb-list/scb-list-item.js +51 -40
- package/scb-wc-test.bundle.js +741 -584
|
@@ -1,198 +1,226 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<div class="
|
|
20
|
-
<div class="header"
|
|
21
|
-
|
|
2
|
+
import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as g,x as c,t as m}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(n,o,a){try{customElements.get(n)||s(n,o,a)}catch(d){var l=String(d||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var f=Object.defineProperty,y=Object.getOwnPropertyDescriptor,t=(i,s,n,o)=>{for(var a=o>1?void 0:o?y(s,n):s,l=i.length-1,d;l>=0;l--)(d=i[l])&&(a=(o?d(s,n,a):d(a))||a);return o&&a&&f(s,n,a),a};let e=class extends g{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch"}async firstUpdated(){e.__iconLoaded||(await h(()=>import("../../vendor/vendor-material.js").then(i=>i.i),__vite__mapDeps([0,1]),import.meta.url),e.__iconLoaded=!0),e.__rippleLoaded||(await h(()=>import("../../vendor/vendor-material.js").then(i=>i.r),__vite__mapDeps([0,1]),import.meta.url),e.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const i=this.variant?`${this.variant.toLowerCase()}`:"",s=this.direction?`${this.direction.toLowerCase()}`:"",n=this.cardHref?"clickable":"",o=1,a="Jan";return c`
|
|
3
|
+
<div
|
|
4
|
+
class="calendar-card ${s} ${n} ${i}"
|
|
5
|
+
role="${this.cardHref?"link":"group"}"
|
|
6
|
+
aria-label="${this.title||"Kalenderkort"}"
|
|
7
|
+
tabindex="${this.cardHref?"0":"-1"}"
|
|
8
|
+
@click="${this.cardHref?this._handleHrefNavigation:null}"
|
|
9
|
+
@keydown="${this.cardHref?this._onKeyDown:null}"
|
|
10
|
+
style="cursor: ${this.cardHref?"pointer":"default"};"
|
|
11
|
+
>
|
|
12
|
+
${this.cardHref?c`<md-ripple></md-ripple>`:""}
|
|
13
|
+
${this.showMedia?c`
|
|
14
|
+
<div class="media" aria-label="Datum: ${o} ${a}">
|
|
15
|
+
<div class="day">${o}</div>
|
|
16
|
+
<div class="month">${a}</div>
|
|
17
|
+
</div>
|
|
18
|
+
`:""}
|
|
19
|
+
<div class="container">
|
|
20
|
+
<div class="header-container">
|
|
21
|
+
<div class="header">${this.title}</div>
|
|
22
|
+
${this.cardHref?c`<md-icon>arrow_forward</md-icon>`:""}
|
|
23
|
+
</div>
|
|
24
|
+
${this.subtitle?c`<div class="subtitle">${this.subtitle}</div>`:""}
|
|
25
|
+
${this.supportingText?c`<div class="supporting-text">${this.supportingText}</div>`:""}
|
|
22
26
|
</div>
|
|
23
|
-
${this.subtitle?c`<div class="subtitle">${this.subtitle}</div>`:""}
|
|
24
|
-
${this.supportingText?c`<div class="supporting-text">${this.supportingText}</div>`:""}
|
|
25
27
|
</div>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
28
|
+
<md-focus-ring></md-focus-ring>
|
|
29
|
+
`}__applyInnerSizing(){const i=this.renderRoot.querySelector(".calendar-card");if(!i)return;this.width&&this.width.trim()!==""?(i.style.inlineSize="100%",i.style.maxInlineSize="100%"):(i.style.removeProperty("inline-size"),i.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?i.style.blockSize="100%":i.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?i.style.maxBlockSize="100%":i.style.removeProperty("max-block-size")}_onKeyDown(i){(i.key==="Enter"||i.key===" ")&&this.cardHref&&(window.open(this.cardHref,"_self"),i.preventDefault())}_handleHrefNavigation(){this.cardHref&&(this.cardHrefNav==="tab"?window.open(this.cardHref,"_blank"):this.cardHrefNav==="window"?window.open(this.cardHref,"_blank","noopener,noreferrer,width=800,height=600"):window.open(this.cardHref,"_self"))}updated(i){i.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),i.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),i.has("minWidth")&&(this.minWidth?this.style.minInlineSize=this.minWidth:this.style.removeProperty("min-inline-size")),i.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),i.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),i.has("minHeight")&&(this.minHeight?this.style.minBlockSize=this.minHeight:this.style.removeProperty("min-block-size")),(i.has("width")||i.has("height")||i.has("maxHeight")||i.has("sizing"))&&this.__applyInnerSizing()}};e.__iconLoaded=!1;e.__rippleLoaded=!1;e.styles=p`
|
|
30
|
+
:host {
|
|
31
|
+
display: block;
|
|
32
|
+
position: relative;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
inline-size: 100%;
|
|
35
|
+
min-inline-size: 0;
|
|
36
|
+
padding: var(--scb-calendar-card-focus-ring-gap, 4px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([sizing="stretch"]) {
|
|
40
|
+
inline-size: 100%;
|
|
41
|
+
block-size: 100%;
|
|
42
|
+
max-inline-size: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([sizing="content-width"]) {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
inline-size: auto;
|
|
48
|
+
block-size: auto;
|
|
49
|
+
}
|
|
50
|
+
:host([sizing="content-width"]) .calendar-card {
|
|
51
|
+
inline-size: max-content;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([sizing="content-height"]) {
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
block-size: auto;
|
|
57
|
+
max-inline-size: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
md-focus-ring {
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset: 0;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
display: none;
|
|
65
|
+
border-radius: var(--scb-calendar-card-focus-ring-radius, var(--radius-large, 16px));
|
|
66
|
+
}
|
|
67
|
+
:host(:focus-within) md-focus-ring {
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.calendar-card {
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
|
|
75
|
+
position: relative;
|
|
76
|
+
display: flex;
|
|
77
|
+
color: var(--md-sys-color-on-surface, #0F0865);
|
|
78
|
+
font-family: var(--brand, Inter);
|
|
79
|
+
font-style: normal;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
align-items: flex-start;
|
|
82
|
+
gap: var(--spacing-spacing-3, 8px);
|
|
83
|
+
align-self: stretch;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
|
|
86
|
+
|
|
87
|
+
inline-size: 100%;
|
|
88
|
+
max-inline-size: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.calendar-card:focus,
|
|
92
|
+
.calendar-card:focus-visible { outline: none; }
|
|
93
|
+
|
|
94
|
+
.calendar-card.horizontal {
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
max-width: none;
|
|
98
|
+
width: 100%;
|
|
99
|
+
gap: var(--spacing-spacing-6, 20px);
|
|
100
|
+
min-block-size: 112px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.calendar-card.outlined {
|
|
104
|
+
border-radius: var(--radius-large, 16px);
|
|
105
|
+
border: 1px solid var(--md-sys-color-outline-variant, #CCC);
|
|
106
|
+
background: var(--md-sys-color-surface, #FFF);
|
|
107
|
+
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.calendar-card.filled {
|
|
111
|
+
border-radius: var(--radius-large, 16px);
|
|
112
|
+
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
113
|
+
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.calendar-card.filled .media {
|
|
117
|
+
background: var(--md-sys-color-surface, #FFF);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
md-ripple { border-radius: var(--radius-l, 16px); }
|
|
121
|
+
|
|
122
|
+
.media {
|
|
123
|
+
display: flex;
|
|
124
|
+
width: var(--spacing-spacing-11, 64px);
|
|
125
|
+
min-width: var(--spacing-spacing-11, 64px);
|
|
126
|
+
max-width: var(--spacing-spacing-11, 64px);
|
|
127
|
+
height: var(--spacing-spacing-11, 64px);
|
|
128
|
+
padding: var(--spacing-spacing-0, 0) 0;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: var(--spacing-spacing-2, 4px);
|
|
133
|
+
border-radius: var(--radius-small, 8px);
|
|
134
|
+
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.calendar-card.horizontal .media { align-self: flex-start; }
|
|
138
|
+
|
|
139
|
+
.media .day {
|
|
140
|
+
font-size: var(--scale-07, 28px);
|
|
141
|
+
font-weight: var(--weight-bold, 700);
|
|
142
|
+
line-height: 100%;
|
|
143
|
+
letter-spacing: -0.6px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.media .month {
|
|
147
|
+
font-size: var(--scale-02, 14px);
|
|
148
|
+
font-weight: var(--weight-regular, 400);
|
|
149
|
+
line-height: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.container {
|
|
153
|
+
flex: 1 1 auto;
|
|
154
|
+
min-width: 0;
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
gap: var(--spacing-spacing-2, 4px);
|
|
158
|
+
width: 100%;
|
|
159
|
+
align-self: flex-start;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.header-container {
|
|
163
|
+
width: 100%;
|
|
164
|
+
flex: 0 0 auto;
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: 10px;
|
|
168
|
+
padding-top: var(--spacing-pacing-1, 2px);
|
|
169
|
+
color: inherit;
|
|
170
|
+
text-decoration: none;
|
|
171
|
+
min-block-size: 32px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.header {
|
|
175
|
+
font-size: var(--md-sys-typescale-headline-small-size, 24px);
|
|
176
|
+
font-weight: var(--weight-bold, 700);
|
|
177
|
+
line-height: var(--md-sys-typescale-headline-small-line-height2, 30px);
|
|
178
|
+
letter-spacing: var(--md-sys-typescale-headline-small-tracking, -0.6px);
|
|
179
|
+
flex: 1 1 auto;
|
|
180
|
+
min-inline-size: 0;
|
|
181
|
+
|
|
182
|
+
white-space: normal;
|
|
183
|
+
word-break: normal;
|
|
184
|
+
overflow-wrap: break-word;
|
|
185
|
+
hyphens: auto;
|
|
186
|
+
|
|
187
|
+
overflow: visible;
|
|
188
|
+
text-overflow: clip;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.header-container md-icon {
|
|
192
|
+
inline-size: 20px;
|
|
193
|
+
block-size: 20px;
|
|
194
|
+
flex: 0 0 auto;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.subtitle {
|
|
198
|
+
font-size: var(--md-sys-typescale-title-medium-size, 18px);
|
|
199
|
+
font-weight: var(--weight-semibold, 600);
|
|
200
|
+
line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
|
|
201
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
|
|
202
|
+
|
|
203
|
+
white-space: normal;
|
|
204
|
+
word-break: normal;
|
|
205
|
+
overflow-wrap: break-word;
|
|
206
|
+
hyphens: manual;
|
|
207
|
+
|
|
208
|
+
overflow: visible;
|
|
209
|
+
text-overflow: clip;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.supporting-text {
|
|
213
|
+
font-size: var(--md-sys-typescale-body-large-size, 18px);
|
|
214
|
+
font-weight: var(--weight-regular, 400);
|
|
215
|
+
line-height: var(--md-sys-typescale-body-large-line-height, 26px);
|
|
216
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking, -0.3px);
|
|
217
|
+
|
|
218
|
+
white-space: normal;
|
|
219
|
+
word-break: normal;
|
|
220
|
+
overflow-wrap: break-word;
|
|
221
|
+
hyphens: manual;
|
|
222
|
+
|
|
223
|
+
overflow: visible;
|
|
224
|
+
text-overflow: clip;
|
|
225
|
+
}
|
|
226
|
+
`;t([r({type:String,reflect:!0})],e.prototype,"variant",2);t([r({type:String,reflect:!0})],e.prototype,"direction",2);t([r({type:String})],e.prototype,"title",2);t([r({type:String})],e.prototype,"subtitle",2);t([r({type:String,attribute:"supporting-text"})],e.prototype,"supportingText",2);t([r({type:String,attribute:"card-href"})],e.prototype,"cardHref",2);t([r({type:String,attribute:"card-href-nav"})],e.prototype,"cardHrefNav",2);t([r({type:Boolean,reflect:!0,attribute:"show-media"})],e.prototype,"showMedia",2);t([r({type:String})],e.prototype,"width",2);t([r({type:String,attribute:"max-width"})],e.prototype,"maxWidth",2);t([r({type:String,attribute:"min-width"})],e.prototype,"minWidth",2);t([r({type:String})],e.prototype,"height",2);t([r({type:String,attribute:"max-height"})],e.prototype,"maxHeight",2);t([r({type:String,attribute:"min-height"})],e.prototype,"minHeight",2);t([r({type:String,reflect:!0})],e.prototype,"sizing",2);e=t([m("scb-calendar-card")],e);
|