scb-wc-test 0.1.11 → 0.1.13
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/all.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +34 -32
- package/mvc/components/all.js +1 -0
- package/mvc/components/scb-accordion/scb-accordion-item.js +21 -61
- package/mvc/components/scb-app-bar/scb-app-bar.js +1 -1
- package/mvc/components/scb-avatar/scb-avatar.js +1 -1
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +1 -1
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +1 -1
- package/mvc/components/scb-button/scb-button.js +1 -1
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +165 -126
- package/mvc/components/scb-card/scb-card.js +223 -217
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +1 -1
- package/mvc/components/scb-checkbox/scb-checkbox.js +9 -11
- package/mvc/components/scb-chips/scb-chip.js +1 -1
- package/mvc/components/scb-dialog/scb-dialog.js +2 -2
- package/mvc/components/scb-divider/scb-divider.js +43 -53
- package/mvc/components/scb-drawer/scb-drawer-item.js +2 -2
- package/mvc/components/scb-drawer/scb-drawer-section.js +4 -4
- package/mvc/components/scb-drawer/scb-drawer.js +1 -1
- package/mvc/components/scb-drawer/scb-sub-drawer.js +1 -1
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +1 -1
- package/mvc/components/scb-fact-card/scb-fact-card.js +68 -55
- package/mvc/components/scb-footer/scb-footer-section.js +2 -2
- package/mvc/components/scb-footer/scb-footer.js +1 -1
- package/mvc/components/scb-grid/scb-grid-item.js +5 -3
- package/mvc/components/scb-grid/scb-grid.js +27 -10
- package/mvc/components/scb-grid/scb-stack.js +10 -6
- package/mvc/components/scb-header/scb-header-drawer-group.js +1 -1
- package/mvc/components/scb-header/scb-header-drawer-item.js +1 -1
- package/mvc/components/scb-header/scb-header-tab.js +1 -1
- package/mvc/components/scb-header/scb-header-utility.js +1 -1
- package/mvc/components/scb-header/scb-header.js +53 -49
- package/mvc/components/scb-icon-button/scb-icon-button.js +45 -80
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +84 -58
- package/mvc/components/scb-link/scb-link.js +39 -16
- package/mvc/components/scb-list/scb-list-item.js +115 -37
- package/mvc/components/scb-list/scb-list.js +16 -7
- package/mvc/components/scb-menu/scb-menu-item.js +1 -1
- package/mvc/components/scb-menu/scb-menu.js +1 -1
- package/mvc/components/scb-menu/scb-sub-menu.js +1 -1
- package/mvc/components/scb-notification/scb-notification.js +1 -1
- package/mvc/components/scb-notification-card/scb-notification-card.js +187 -0
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +1 -1
- package/mvc/components/scb-radio-button/scb-radio-button.js +29 -36
- package/mvc/components/scb-radio-button/scb-radio-group.js +1 -1
- package/mvc/components/scb-search/scb-search.js +48 -37
- package/mvc/components/scb-snackbar/scb-snackbar.js +8 -8
- package/mvc/components/scb-status-pill/scb-status-pill.js +1 -1
- package/mvc/components/scb-switch/scb-switch.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 +1 -1
- package/mvc/components/scb-textfield/scb-textfield.js +1 -1
- package/mvc/components/scb-toc/scb-toc-item.js +1 -1
- package/mvc/components/scb-toc/scb-toc.js +2 -2
- package/mvc/components/scb-tooltip/scb-tooltip.js +1 -1
- package/mvc/vendor/vendor-material.js +232 -312
- package/mvc/vendor/vendor.js +19 -23
- package/package.json +6 -2
- package/scb-accordion/scb-accordion-item.js +47 -98
- package/scb-calendar-card/scb-calendar-card.d.ts +6 -4
- package/scb-calendar-card/scb-calendar-card.js +207 -154
- package/scb-card/scb-card.d.ts +8 -3
- package/scb-card/scb-card.js +265 -250
- package/scb-checkbox/scb-checkbox.d.ts +1 -0
- package/scb-checkbox/scb-checkbox.js +56 -49
- package/scb-divider/scb-divider.d.ts +16 -4
- package/scb-divider/scb-divider.js +63 -69
- package/scb-fact-card/scb-fact-card.d.ts +8 -7
- package/scb-fact-card/scb-fact-card.js +100 -78
- package/scb-grid/scb-grid-item.d.ts +7 -2
- package/scb-grid/scb-grid-item.js +47 -33
- package/scb-grid/scb-grid.d.ts +7 -3
- package/scb-grid/scb-grid.js +57 -21
- package/scb-grid/scb-stack.d.ts +5 -1
- package/scb-grid/scb-stack.js +57 -31
- package/scb-header/scb-header.d.ts +1 -2
- package/scb-header/scb-header.js +154 -162
- package/scb-icon-button/scb-icon-button.d.ts +15 -11
- package/scb-icon-button/scb-icon-button.js +149 -132
- package/scb-keyfigure-card/scb-keyfigure-card.d.ts +6 -1
- package/scb-keyfigure-card/scb-keyfigure-card.js +139 -93
- package/scb-link/scb-link.d.ts +1 -0
- package/scb-link/scb-link.js +65 -38
- package/scb-list/scb-list-item.d.ts +8 -5
- package/scb-list/scb-list-item.js +183 -73
- package/scb-list/scb-list.d.ts +5 -0
- package/scb-list/scb-list.js +71 -21
- package/scb-notification-card/scb-notification-card.d.ts +18 -0
- package/scb-notification-card/scb-notification-card.js +264 -0
- package/scb-radio-button/scb-radio-button.js +46 -53
- package/scb-search/scb-search.d.ts +8 -0
- package/scb-search/scb-search.js +176 -139
- package/scb-wc-test.bundle.js +1870 -1546
package/scb-card/scb-card.js
CHANGED
|
@@ -1,143 +1,131 @@
|
|
|
1
1
|
import { css as p, LitElement as h, html as t } from "lit";
|
|
2
|
-
import { property as
|
|
2
|
+
import { property as s, customElement as v } from "lit/decorators.js";
|
|
3
3
|
import "@material/web/icon/icon.js";
|
|
4
4
|
import "@material/web/ripple/ripple.js";
|
|
5
5
|
import "../scb-list/scb-list.js";
|
|
6
6
|
import "../scb-button/scb-button.js";
|
|
7
|
-
var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor,
|
|
8
|
-
for (var
|
|
9
|
-
(o = a[n]) && (
|
|
10
|
-
return
|
|
7
|
+
var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (a, r, c, l) => {
|
|
8
|
+
for (var d = l > 1 ? void 0 : l ? b(r, c) : r, n = a.length - 1, o; n >= 0; n--)
|
|
9
|
+
(o = a[n]) && (d = (l ? o(r, c, d) : o(d)) || d);
|
|
10
|
+
return l && d && m(r, c, d), d;
|
|
11
11
|
};
|
|
12
12
|
let i = class extends h {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.type = "", this.variant = "", this.direction = "", this.mediaType = "", this.mediaHref = "", this.cardHref = "", this.label = "", this.subLabel = "", this.supportingText = "", this.commentsText = "", this.comments = 0, this.likesText = "", this.likes = 0;
|
|
14
|
+
super(...arguments), this.type = "", this.variant = "", this.direction = "", this.mediaType = "", this.mediaHref = "", this.cardHref = "", this.label = "", this.subLabel = "", this.supportingText = "", this.commentsText = "", this.comments = 0, this.likesText = "", this.likes = 0, this.fullHeight = !1, this.fullWidth = !1, this.stretch = !1;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
const a = this.variant ? `${this.variant.toLowerCase()}` : "", r = this.direction ? `${this.direction.toLowerCase()}` : "",
|
|
17
|
+
const a = this.variant ? `${this.variant.toLowerCase()}` : "", r = this.direction ? `${this.direction.toLowerCase()}` : "", c = this.cardHref ? "clickable" : "", l = this.mediaType ? `${this.mediaType.toLowerCase()}` : "";
|
|
18
18
|
switch (this.type) {
|
|
19
19
|
case "standard":
|
|
20
20
|
return t`
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
<div class="scb-card ${a} ${r} ${c}">
|
|
22
|
+
${this.cardHref ? t`<md-ripple></md-ripple>` : ""}
|
|
23
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
24
|
+
<div class="full-content">
|
|
25
|
+
<div class="top-content">
|
|
26
|
+
${this.label ? t`
|
|
27
|
+
<div class="header">
|
|
28
|
+
${this.cardHref ? t`<a href="${this.cardHref}" tabindex="0">${this.label}</a><md-icon>arrow_forward</md-icon>` : this.label}
|
|
29
|
+
</div>` : ""}
|
|
30
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
31
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
32
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
`;
|
|
37
37
|
case "list":
|
|
38
38
|
return t`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
39
|
+
<div class="scb-card ${a} vertical ${c}">
|
|
40
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
41
|
+
<div class="full-content">
|
|
42
|
+
<div class="top-content">
|
|
43
|
+
${this.label ? t`<div class="header">${this.label}</div>` : ""}
|
|
44
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
45
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
46
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
47
|
+
</div>
|
|
48
|
+
<div class="content list">
|
|
49
|
+
<slot></slot>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
56
53
|
`;
|
|
57
54
|
case "social":
|
|
58
55
|
return t`
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
56
|
+
<div class="scb-card ${a} ${r} ${c}">
|
|
57
|
+
${this.cardHref ? t`<md-ripple></md-ripple>` : ""}
|
|
58
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
59
|
+
<div class="full-content">
|
|
60
|
+
<div class="top-content">
|
|
61
|
+
${this.label ? t`
|
|
62
|
+
<div class="header">
|
|
63
|
+
${this.cardHref ? t`<a href="${this.cardHref}" tabindex="0">${this.label}</a><md-icon>arrow_forward</md-icon>` : this.label}
|
|
64
|
+
</div>` : ""}
|
|
65
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
66
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
67
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
68
|
+
</div>
|
|
69
|
+
<div class="content">
|
|
70
|
+
<div class="social-metrics">
|
|
71
|
+
<span class="comments"><md-icon>mode_comment</md-icon> <span>${this.commentsText}: ${this.comments}</span></span>
|
|
72
|
+
<span class="likes"><md-icon>thumb_up</md-icon> <span>${this.likesText}: ${this.likes}</span></span>
|
|
79
73
|
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
80
77
|
`;
|
|
81
78
|
case "link":
|
|
82
79
|
return t`
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
80
|
+
<div class="scb-card ${a} ${r} ${c}">
|
|
81
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
82
|
+
<div class="full-content">
|
|
83
|
+
<div class="top-content">
|
|
84
|
+
${this.label ? t`<div class="header">${this.label}</div>` : ""}
|
|
85
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
86
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
87
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
88
|
+
</div>
|
|
89
|
+
<div class="content links">
|
|
90
|
+
<slot></slot>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
100
94
|
`;
|
|
101
95
|
case "action":
|
|
102
96
|
return t`
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</div>
|
|
118
|
-
<div class="content actions">
|
|
119
|
-
<slot></slot>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
97
|
+
<div class="scb-card ${a} ${r} ${c}">
|
|
98
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
99
|
+
<div class="full-content">
|
|
100
|
+
<div class="top-content">
|
|
101
|
+
${this.label ? t`<div class="header">${this.label}</div>` : ""}
|
|
102
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
103
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
104
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
105
|
+
</div>
|
|
106
|
+
<div class="content actions">
|
|
107
|
+
<slot></slot>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
123
111
|
`;
|
|
124
112
|
default:
|
|
125
113
|
return t`
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</div>
|
|
114
|
+
<div class="scb-card ${a} ${r} ${c}">
|
|
115
|
+
${this.cardHref ? t`<md-ripple></md-ripple>` : ""}
|
|
116
|
+
${this.mediaHref ? t`<img src="${this.mediaHref}" class="${l}" alt="" ?hidden=${!this.mediaHref} />` : ""}
|
|
117
|
+
<div class="full-content">
|
|
118
|
+
<div class="top-content">
|
|
119
|
+
${this.label ? t`
|
|
120
|
+
<div class="header">
|
|
121
|
+
${this.cardHref ? t`<a href="${this.cardHref}" tabindex="0">${this.label}</a><md-icon>arrow_forward</md-icon>` : this.label}
|
|
122
|
+
</div>` : ""}
|
|
123
|
+
${this.subLabel ? t`<div class="sub-label">${this.subLabel}</div>` : ""}
|
|
124
|
+
${this.supportingText ? t`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
125
|
+
${this.date ? t`<div class="date">${this.date}</div>` : ""}
|
|
126
|
+
</div>
|
|
140
127
|
</div>
|
|
128
|
+
</div>
|
|
141
129
|
`;
|
|
142
130
|
}
|
|
143
131
|
}
|
|
@@ -151,193 +139,220 @@ let i = class extends h {
|
|
|
151
139
|
}
|
|
152
140
|
};
|
|
153
141
|
i.styles = p`
|
|
154
|
-
/* Min-bredder per variant (override-ningsbara via CSS custom props) */
|
|
155
|
-
:host{ --scb-card-min-w: 360px; }
|
|
156
|
-
|
|
157
142
|
:host {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
display: flex;
|
|
166
|
-
max-width: var(--scb-card-min-w);
|
|
167
|
-
position: relative;
|
|
168
|
-
background: transparent;
|
|
169
|
-
border-radius: var(--md-sys-shape-corner-large);
|
|
170
|
-
background: var(--md-sys-color-surface);
|
|
143
|
+
--scb-card-max-w: 360px;
|
|
144
|
+
display: block;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
inline-size: 100%;
|
|
147
|
+
min-inline-size: 0;
|
|
148
|
+
max-inline-size: var(--scb-card-max-w);
|
|
149
|
+
height: auto;
|
|
171
150
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
display: flex;
|
|
186
|
-
align-items: center;
|
|
187
|
-
gap: var(--spacing-2);
|
|
188
|
-
}
|
|
189
|
-
.scb-card.outlined {
|
|
190
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
151
|
+
:host([type="standard"]) { --scb-card-max-w: var(--scb-card-standard-max-w, 360px); }
|
|
152
|
+
:host([type="list"]) { --scb-card-max-w: var(--scb-card-list-max-w, 360px); }
|
|
153
|
+
:host([type="social"]) { --scb-card-max-w: var(--scb-card-social-max-w, 360px); }
|
|
154
|
+
:host([type="link"]) { --scb-card-max-w: var(--scb-card-link-max-w, 360px); }
|
|
155
|
+
:host([type="action"]) { --scb-card-max-w: var(--scb-card-action-max-w, 360px); }
|
|
156
|
+
|
|
157
|
+
:host([full-width]) { max-inline-size: none; }
|
|
158
|
+
:host([stretch]),
|
|
159
|
+
:host([full-height]) { block-size: 100%; }
|
|
160
|
+
|
|
161
|
+
:host([stretch]) .scb-card,
|
|
162
|
+
:host([full-height]) .scb-card {
|
|
163
|
+
block-size: 100%;
|
|
191
164
|
}
|
|
192
|
-
|
|
193
|
-
|
|
165
|
+
|
|
166
|
+
.scb-card {
|
|
167
|
+
color: var(--md-sys-color-on-surface);
|
|
168
|
+
display: flex;
|
|
169
|
+
position: relative;
|
|
170
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
171
|
+
background: var(--md-sys-color-surface);
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
inline-size: 100%;
|
|
174
|
+
min-inline-size: 0;
|
|
175
|
+
max-inline-size: 100%;
|
|
176
|
+
overflow: hidden;
|
|
194
177
|
}
|
|
195
|
-
|
|
196
|
-
|
|
178
|
+
|
|
179
|
+
.scb-card.outlined { border: 1px solid var(--md-sys-color-outline-variant); }
|
|
180
|
+
.scb-card.filled { background: var(--md-sys-color-surface-dim); }
|
|
181
|
+
.scb-card.vertical { flex-direction: column; }
|
|
182
|
+
.scb-card.clickable{ cursor: pointer; }
|
|
183
|
+
|
|
184
|
+
md-ripple {
|
|
185
|
+
position: absolute;
|
|
186
|
+
inset: 0;
|
|
187
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
188
|
+
pointer-events: none;
|
|
197
189
|
}
|
|
198
|
-
|
|
199
|
-
|
|
190
|
+
|
|
191
|
+
.full-content { padding: var(--spacing-7) var(--spacing-6); }
|
|
192
|
+
.top-content {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
gap: var(--spacing-3);
|
|
196
|
+
min-inline-size: 0;
|
|
200
197
|
}
|
|
201
198
|
|
|
202
|
-
/* Textstilar */
|
|
203
199
|
.header {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
.header a {
|
|
213
|
-
color: inherit;
|
|
214
|
-
text-decoration: none;
|
|
200
|
+
font-size: var(--md-sys-typescale-headline-small-size);
|
|
201
|
+
font-weight: var(--weight-bold);
|
|
202
|
+
line-height: var(--md-sys-typescale-headline-small-line-height);
|
|
203
|
+
letter-spacing: var(--md-sys-typescale-headline-small-Tracking);
|
|
204
|
+
display: flex;
|
|
205
|
+
justify-content: space-between;
|
|
206
|
+
align-items: center;
|
|
207
|
+
min-inline-size: 0;
|
|
215
208
|
}
|
|
209
|
+
.header a { color: inherit; text-decoration: none; }
|
|
216
210
|
.sub-label {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
211
|
+
font-size: var(--md-sys-typescale-title-medium-size);
|
|
212
|
+
font-weight: var(--weight-semibold);
|
|
213
|
+
line-height: var(--md-sys-typescale-title-medium-line-height);
|
|
214
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
|
|
221
215
|
}
|
|
222
216
|
.supporting-text {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
218
|
+
line-height: var(--md-sys-typescale-body-large-line-height);
|
|
219
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking);
|
|
226
220
|
}
|
|
227
221
|
.date {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
.full-content {
|
|
233
|
-
padding: var(--spacing-7) var(--spacing-6);
|
|
234
|
-
}
|
|
235
|
-
md-ripple {
|
|
236
|
-
border-radius: var(--md-sys-shape-corner-large);
|
|
237
|
-
}
|
|
238
|
-
.top-content {
|
|
239
|
-
display: flex;
|
|
240
|
-
flex-direction: column;
|
|
241
|
-
gap: var(--spacing-3);
|
|
242
|
-
|
|
222
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
223
|
+
line-height: var(--md-sys-typescale-body-medium-line-height);
|
|
224
|
+
letter-spacing: var(--md-sys-typescale-body-medium-Tracking);
|
|
243
225
|
}
|
|
226
|
+
|
|
244
227
|
.scb-card img {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
228
|
+
display: block;
|
|
229
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
230
|
+
inline-size: 100%;
|
|
231
|
+
max-inline-size: 100%;
|
|
232
|
+
height: auto;
|
|
233
|
+
object-fit: cover;
|
|
248
234
|
}
|
|
249
|
-
.scb-card img.avatar{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
235
|
+
.scb-card img.avatar {
|
|
236
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
237
|
+
width: var(--icon-size-large);
|
|
238
|
+
height: var(--icon-size-large);
|
|
239
|
+
margin: var(--spacing-7) 0 0 var(--spacing-6);
|
|
240
|
+
inline-size: auto;
|
|
241
|
+
object-fit: cover;
|
|
254
242
|
}
|
|
255
243
|
.scb-card img.avatar + .full-content {
|
|
256
|
-
|
|
244
|
+
padding: var(--spacing-5) var(--spacing-6) var(--spacing-7) var(--spacing-6);
|
|
257
245
|
}
|
|
258
246
|
|
|
259
|
-
/* Horisontella kortspecifika stilar */
|
|
260
247
|
.scb-card.horizontal {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
248
|
+
flex-direction: row;
|
|
249
|
+
inline-size: 100%;
|
|
250
|
+
max-inline-size: 100%;
|
|
264
251
|
}
|
|
265
252
|
.scb-card.horizontal .full-content {
|
|
266
|
-
|
|
267
|
-
|
|
253
|
+
padding: var(--spacing-6) var(--spacing-6) var(--spacing-6) 0;
|
|
254
|
+
inline-size: 100%;
|
|
255
|
+
min-inline-size: 0;
|
|
268
256
|
}
|
|
269
|
-
.scb-card.horizontal img{
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
border-radius: var(--md-sys-shape-corner-full);
|
|
276
|
-
width: var(--icon-size-large);
|
|
277
|
-
height: var(--icon-size-large);
|
|
278
|
-
margin: var(--spacing-6) 0 var(--spacing-6) var(--spacing-6);
|
|
257
|
+
.scb-card.horizontal img {
|
|
258
|
+
height: 133px;
|
|
259
|
+
width: auto;
|
|
260
|
+
margin: var(--spacing-6);
|
|
261
|
+
object-fit: cover;
|
|
262
|
+
flex: 0 0 auto;
|
|
279
263
|
}
|
|
280
264
|
|
|
281
|
-
.
|
|
282
|
-
|
|
265
|
+
.social-metrics {
|
|
266
|
+
display: flex;
|
|
267
|
+
margin-top: var(--spacing-4);
|
|
268
|
+
gap: var(--spacing-5);
|
|
269
|
+
flex-wrap: wrap;
|
|
270
|
+
}
|
|
271
|
+
.social-metrics md-icon {
|
|
272
|
+
width: var(--scale-05);
|
|
273
|
+
height: var(--scale-05);
|
|
274
|
+
font-size: var(--md-sys-typescale-title-large-size);
|
|
275
|
+
vertical-align: middle;
|
|
283
276
|
}
|
|
277
|
+
.comments, .likes {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: var(--spacing-2);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.scb-card .content.list { margin-top: var(--spacing-7); }
|
|
284
284
|
.scb-card .content.actions ::slotted(*) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
285
|
+
margin-top: var(--spacing-7);
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-wrap: wrap;
|
|
288
|
+
gap: var(--spacing-3);
|
|
289
289
|
}
|
|
290
290
|
.scb-card .content.links ::slotted(*) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
margin-top: var(--spacing-3);
|
|
292
|
+
display: flex;
|
|
293
|
+
flex-direction: column;
|
|
294
|
+
gap: var(--spacing-3);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
.scb-card:not(.filled) .content.list ::slotted(scb-list) {
|
|
298
|
+
--scb-list-bg: var(--md-sys-color-surface);
|
|
299
|
+
}
|
|
300
|
+
.scb-card.filled .content.list ::slotted(scb-list) {
|
|
301
|
+
--scb-list-bg: var(--md-sys-color-surface-dim);
|
|
302
|
+
}
|
|
297
303
|
`;
|
|
298
|
-
|
|
299
|
-
|
|
304
|
+
e([
|
|
305
|
+
s({ type: String })
|
|
300
306
|
], i.prototype, "type", 2);
|
|
301
|
-
|
|
302
|
-
|
|
307
|
+
e([
|
|
308
|
+
s({ type: String })
|
|
303
309
|
], i.prototype, "variant", 2);
|
|
304
|
-
|
|
305
|
-
|
|
310
|
+
e([
|
|
311
|
+
s({ type: String })
|
|
306
312
|
], i.prototype, "direction", 2);
|
|
307
|
-
|
|
308
|
-
|
|
313
|
+
e([
|
|
314
|
+
s({ type: String, attribute: "media-type" })
|
|
309
315
|
], i.prototype, "mediaType", 2);
|
|
310
|
-
|
|
311
|
-
|
|
316
|
+
e([
|
|
317
|
+
s({ type: String, attribute: "media-href" })
|
|
312
318
|
], i.prototype, "mediaHref", 2);
|
|
313
|
-
|
|
314
|
-
|
|
319
|
+
e([
|
|
320
|
+
s({ type: String, attribute: "card-href" })
|
|
315
321
|
], i.prototype, "cardHref", 2);
|
|
316
|
-
|
|
317
|
-
|
|
322
|
+
e([
|
|
323
|
+
s({ type: String })
|
|
318
324
|
], i.prototype, "label", 2);
|
|
319
|
-
|
|
320
|
-
|
|
325
|
+
e([
|
|
326
|
+
s({ type: String, attribute: "sub-label" })
|
|
321
327
|
], i.prototype, "subLabel", 2);
|
|
322
|
-
|
|
323
|
-
|
|
328
|
+
e([
|
|
329
|
+
s({ type: String, attribute: "supporting-text" })
|
|
324
330
|
], i.prototype, "supportingText", 2);
|
|
325
|
-
|
|
326
|
-
|
|
331
|
+
e([
|
|
332
|
+
s({ type: Date, reflect: !0 })
|
|
327
333
|
], i.prototype, "date", 2);
|
|
328
|
-
|
|
329
|
-
|
|
334
|
+
e([
|
|
335
|
+
s({ type: String, attribute: "social-comments-text" })
|
|
330
336
|
], i.prototype, "commentsText", 2);
|
|
331
|
-
|
|
332
|
-
|
|
337
|
+
e([
|
|
338
|
+
s({ type: Number, attribute: "social-comments", reflect: !0 })
|
|
333
339
|
], i.prototype, "comments", 2);
|
|
334
|
-
|
|
335
|
-
|
|
340
|
+
e([
|
|
341
|
+
s({ type: String, attribute: "social-likes-text" })
|
|
336
342
|
], i.prototype, "likesText", 2);
|
|
337
|
-
|
|
338
|
-
|
|
343
|
+
e([
|
|
344
|
+
s({ type: Number, attribute: "social-likes", reflect: !0 })
|
|
339
345
|
], i.prototype, "likes", 2);
|
|
340
|
-
|
|
346
|
+
e([
|
|
347
|
+
s({ type: Boolean, reflect: !0, attribute: "full-height" })
|
|
348
|
+
], i.prototype, "fullHeight", 2);
|
|
349
|
+
e([
|
|
350
|
+
s({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
351
|
+
], i.prototype, "fullWidth", 2);
|
|
352
|
+
e([
|
|
353
|
+
s({ type: Boolean, reflect: !0 })
|
|
354
|
+
], i.prototype, "stretch", 2);
|
|
355
|
+
i = e([
|
|
341
356
|
v("scb-card")
|
|
342
357
|
], i);
|
|
343
358
|
export {
|
|
@@ -9,6 +9,7 @@ export declare class ScbCheckbox extends LitElement {
|
|
|
9
9
|
connectedCallback(): void;
|
|
10
10
|
protected firstUpdated(): void;
|
|
11
11
|
protected updated(changed: PropertyValues): void;
|
|
12
|
+
private __syncInnerAria;
|
|
12
13
|
static styles: import('lit').CSSResult;
|
|
13
14
|
render(): TemplateResult;
|
|
14
15
|
}
|