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
|
@@ -1,190 +1,243 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
var
|
|
4
|
-
for (var
|
|
5
|
-
(
|
|
6
|
-
return
|
|
1
|
+
import { css as p, LitElement as h, html as o } from "lit";
|
|
2
|
+
import { property as i, customElement as f } from "lit/decorators.js";
|
|
3
|
+
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, t = (r, l, n, s) => {
|
|
4
|
+
for (var a = s > 1 ? void 0 : s ? v(l, n) : l, d = r.length - 1, c; d >= 0; d--)
|
|
5
|
+
(c = r[d]) && (a = (s ? c(l, n, a) : c(a)) || a);
|
|
6
|
+
return s && a && g(l, n, a), a;
|
|
7
7
|
};
|
|
8
8
|
let e = class extends h {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this.variant = "default", this.direction = "horizontal", this.
|
|
10
|
+
super(...arguments), this.variant = "default", this.direction = "horizontal", this.title = "", this.subtitle = "", this.supportingText = "", this.cardHref = "", this.cardHrefNav = "", this.showMedia = null, this.fullHeight = !1, this.fullWidth = !1, this.stretch = !1;
|
|
11
11
|
}
|
|
12
|
-
// Ladda in md-icon + md-ripple on-demand (första gången komponenten mountas)
|
|
13
12
|
async firstUpdated() {
|
|
14
13
|
e.__iconLoaded || (await import("@material/web/icon/icon.js"), e.__iconLoaded = !0), e.__rippleLoaded || (await import("@material/web/ripple/ripple.js"), e.__rippleLoaded = !0);
|
|
15
14
|
}
|
|
16
15
|
render() {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
16
|
+
const r = this.variant ? `${this.variant.toLowerCase()}` : "", l = this.direction ? `${this.direction.toLowerCase()}` : "", n = this.cardHref ? "clickable" : "", s = 1, a = "Jan";
|
|
17
|
+
return o`
|
|
19
18
|
<div
|
|
20
|
-
class="calendar-card ${
|
|
19
|
+
class="calendar-card ${l} ${n} ${r}"
|
|
21
20
|
role="${this.cardHref ? "link" : "group"}"
|
|
22
|
-
aria-label="${this.
|
|
21
|
+
aria-label="${this.title || "Kalenderkort"}"
|
|
23
22
|
tabindex="${this.cardHref ? "0" : "-1"}"
|
|
24
|
-
@click="${this.cardHref ?
|
|
23
|
+
@click="${this.cardHref ? this._handleHrefNavigation : null}"
|
|
25
24
|
@keydown="${this.cardHref ? this._onKeyDown : null}"
|
|
26
25
|
style="cursor: ${this.cardHref ? "pointer" : "default"};"
|
|
27
26
|
>
|
|
28
|
-
${this.cardHref ?
|
|
29
|
-
${this.showMedia ?
|
|
30
|
-
<div class="media" aria-label="Datum: ${
|
|
31
|
-
<div class="day">${
|
|
32
|
-
<div class="month">${
|
|
27
|
+
${this.cardHref ? o`<md-ripple></md-ripple>` : ""}
|
|
28
|
+
${this.showMedia ? o`
|
|
29
|
+
<div class="media" aria-label="Datum: ${s} ${a}">
|
|
30
|
+
<div class="day">${s}</div>
|
|
31
|
+
<div class="month">${a}</div>
|
|
33
32
|
</div>` : ""}
|
|
34
33
|
<div class="container">
|
|
35
34
|
<div class="header-container">
|
|
36
|
-
<div class="header">${this.
|
|
37
|
-
${this.cardHref ?
|
|
35
|
+
<div class="header">${this.title}</div>
|
|
36
|
+
${this.cardHref ? o`<md-icon>arrow_forward</md-icon>` : ""}
|
|
38
37
|
</div>
|
|
39
|
-
${this.subtitle ?
|
|
40
|
-
${this.supportingText ?
|
|
38
|
+
${this.subtitle ? o`<div class="subtitle">${this.subtitle}</div>` : ""}
|
|
39
|
+
${this.supportingText ? o`<div class="supporting-text">${this.supportingText}</div>` : ""}
|
|
41
40
|
</div>
|
|
42
41
|
</div>
|
|
43
42
|
`;
|
|
44
43
|
}
|
|
45
|
-
_onKeyDown(
|
|
46
|
-
(
|
|
44
|
+
_onKeyDown(r) {
|
|
45
|
+
(r.key === "Enter" || r.key === " ") && this.cardHref && (window.open(this.cardHref, "_self"), r.preventDefault());
|
|
46
|
+
}
|
|
47
|
+
_handleHrefNavigation() {
|
|
48
|
+
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"));
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
e.__iconLoaded = !1;
|
|
50
52
|
e.__rippleLoaded = !1;
|
|
51
|
-
e.styles =
|
|
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
|
-
|
|
53
|
+
e.styles = p`
|
|
54
|
+
:host { display:block; }
|
|
55
|
+
|
|
56
|
+
:host([stretch]) { block-size: 100%; }
|
|
57
|
+
:host([stretch]) .calendar-card { block-size: 100%; }
|
|
58
|
+
|
|
59
|
+
:host([full-height]) { block-size: 100%; }
|
|
60
|
+
:host([full-height]) .calendar-card { block-size: 100%; }
|
|
61
|
+
|
|
62
|
+
:host([full-width]) { max-width: none; width: 100%; }
|
|
63
|
+
:host([full-width]) .calendar-card.horizontal,
|
|
64
|
+
:host([full-width]) .calendar-card.vertical {
|
|
65
|
+
max-width: none;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.calendar-card {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
|
|
73
|
+
position: relative;
|
|
74
|
+
display: flex;
|
|
75
|
+
color: var(--md-sys-color-on-surface, #0F0865);
|
|
76
|
+
font-family: var(--brand, Inter);
|
|
77
|
+
font-style: normal;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: flex-start;
|
|
80
|
+
gap: var(--spacing-spacing-3, 8px);
|
|
81
|
+
align-self: stretch;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.calendar-card.vertical {
|
|
87
|
+
max-width: var(--scb-calendar-card-max-w, 360px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.calendar-card.horizontal {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
max-width: none;
|
|
93
|
+
width: 100%;
|
|
94
|
+
gap: var(--spacing-spacing-6, 20px);
|
|
95
|
+
min-block-size: 112px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.calendar-card.outlined {
|
|
99
|
+
border-radius: var(--radius-large, 16px);
|
|
100
|
+
border: 1px solid var(--md-sys-color-outline-variant, #CCC);
|
|
101
|
+
background: var(--md-sys-color-surface, #FFF);
|
|
102
|
+
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.calendar-card.filled {
|
|
106
|
+
border-radius: var(--radius-large, 16px);
|
|
107
|
+
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
108
|
+
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.calendar-card.filled .media {
|
|
112
|
+
background: var(--md-sys-color-surface, #FFF);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
md-ripple { border-radius: var(--radius-l, 16px); }
|
|
116
|
+
|
|
117
|
+
.media {
|
|
118
|
+
display: flex;
|
|
119
|
+
width: var(--spacing-spacing-11, 64px);
|
|
120
|
+
min-width: var(--spacing-spacing-11, 64px);
|
|
121
|
+
max-width: var(--spacing-spacing-11, 64px);
|
|
122
|
+
height: var(--spacing-spacing-11, 64px);
|
|
123
|
+
padding: var(--spacing-spacing-0, 0) 0;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--spacing-spacing-2, 4px);
|
|
128
|
+
border-radius: var(--radius-small, 8px);
|
|
129
|
+
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
130
|
+
}
|
|
131
|
+
.calendar-card.horizontal .media { align-self: center; }
|
|
132
|
+
|
|
133
|
+
.media .day {
|
|
134
|
+
font-size: var(--scale-07, 28px);
|
|
135
|
+
font-weight: var(--weight-bold, 700);
|
|
136
|
+
line-height: 100%;
|
|
137
|
+
letter-spacing: -0.6px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.media .month {
|
|
141
|
+
font-size: var(--scale-02, 14px);
|
|
142
|
+
font-weight: var(--weight-regular, 400);
|
|
143
|
+
line-height: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.container {
|
|
147
|
+
flex: 1 1 auto;
|
|
148
|
+
min-width: 0;
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
gap: var(--spacing-spacing-2, 4px);
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.header-container {
|
|
156
|
+
width: 100%;
|
|
157
|
+
flex: 0 0 auto;
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: 10px;
|
|
161
|
+
padding-top: var(--spacing-pacing-1, 2px);
|
|
162
|
+
color:inherit;
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
min-block-size: 32px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.header {
|
|
168
|
+
font-size: var(--md-sys-typescale-headline-small-size, 24px);
|
|
169
|
+
font-weight: var(--weight-bold, 700);
|
|
170
|
+
line-height: var(--md-sys-typescale-headline-small-line-height2, 30px);
|
|
171
|
+
letter-spacing: var(--md-sys-typescale-headline-small-tracking, -0.6px);
|
|
172
|
+
flex: 1 1 0;
|
|
173
|
+
min-width: 0;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
text-overflow: ellipsis;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.header-container md-icon {
|
|
180
|
+
inline-size: 20px;
|
|
181
|
+
block-size: 20px;
|
|
182
|
+
flex: 0 0 auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.subtitle {
|
|
186
|
+
font-size: var(--md-sys-typescale-title-medium-size, 18px);
|
|
187
|
+
font-weight: var(--weight-semibold, 600);
|
|
188
|
+
line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
|
|
189
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
text-overflow: ellipsis;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.supporting-text {
|
|
196
|
+
font-size: var(--md-sys-typescale-body-large-size, 18px);
|
|
197
|
+
font-weight: var(--weight-regular, 400);
|
|
198
|
+
line-height: var(--md-sys-typescale-body-large-line-height, 26px);
|
|
199
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking, -0.3px);
|
|
200
|
+
display: -webkit-box;
|
|
201
|
+
-webkit-line-clamp: 2;
|
|
202
|
+
-webkit-box-orient: vertical;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
}
|
|
164
205
|
`;
|
|
165
|
-
|
|
166
|
-
|
|
206
|
+
t([
|
|
207
|
+
i({ type: String, reflect: !0 })
|
|
167
208
|
], e.prototype, "variant", 2);
|
|
168
|
-
|
|
169
|
-
|
|
209
|
+
t([
|
|
210
|
+
i({ type: String, reflect: !0 })
|
|
170
211
|
], e.prototype, "direction", 2);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
], e.prototype, "
|
|
174
|
-
|
|
175
|
-
|
|
212
|
+
t([
|
|
213
|
+
i({ type: String })
|
|
214
|
+
], e.prototype, "title", 2);
|
|
215
|
+
t([
|
|
216
|
+
i({ type: String })
|
|
176
217
|
], e.prototype, "subtitle", 2);
|
|
177
|
-
|
|
178
|
-
|
|
218
|
+
t([
|
|
219
|
+
i({ type: String, attribute: "supporting-text" })
|
|
179
220
|
], e.prototype, "supportingText", 2);
|
|
180
|
-
|
|
181
|
-
|
|
221
|
+
t([
|
|
222
|
+
i({ type: String, attribute: "card-href" })
|
|
182
223
|
], e.prototype, "cardHref", 2);
|
|
183
|
-
|
|
184
|
-
|
|
224
|
+
t([
|
|
225
|
+
i({ type: String, attribute: "card-href-nav" })
|
|
226
|
+
], e.prototype, "cardHrefNav", 2);
|
|
227
|
+
t([
|
|
228
|
+
i({ type: Boolean, reflect: !0, attribute: "show-media" })
|
|
185
229
|
], e.prototype, "showMedia", 2);
|
|
186
|
-
|
|
187
|
-
|
|
230
|
+
t([
|
|
231
|
+
i({ type: Boolean, reflect: !0, attribute: "full-height" })
|
|
232
|
+
], e.prototype, "fullHeight", 2);
|
|
233
|
+
t([
|
|
234
|
+
i({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
235
|
+
], e.prototype, "fullWidth", 2);
|
|
236
|
+
t([
|
|
237
|
+
i({ type: Boolean, reflect: !0 })
|
|
238
|
+
], e.prototype, "stretch", 2);
|
|
239
|
+
e = t([
|
|
240
|
+
f("scb-calendar-card")
|
|
188
241
|
], e);
|
|
189
242
|
export {
|
|
190
243
|
e as ScbCalendarCard
|
package/scb-card/scb-card.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* Enkel kort-komponent för SCB-designsystemet
|
|
4
|
-
*/
|
|
5
2
|
export declare class ScbCard extends LitElement {
|
|
6
3
|
type: string;
|
|
7
4
|
variant: string;
|
|
@@ -17,7 +14,15 @@ export declare class ScbCard extends LitElement {
|
|
|
17
14
|
comments: number;
|
|
18
15
|
likesText: string;
|
|
19
16
|
likes: number;
|
|
17
|
+
fullHeight: boolean;
|
|
18
|
+
fullWidth: boolean;
|
|
19
|
+
stretch: boolean;
|
|
20
20
|
static styles: import('lit').CSSResult;
|
|
21
21
|
render(): import('lit-html').TemplateResult<1>;
|
|
22
22
|
firstUpdated(): void;
|
|
23
23
|
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'scb-card': ScbCard;
|
|
27
|
+
}
|
|
28
|
+
}
|