scb-wc-test 0.1.105 → 0.1.107
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-accordion/scb-accordion.js +8 -2
- package/mvc/components/scb-avatar/scb-avatar.js +19 -10
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -3
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +13 -7
- package/mvc/components/scb-button/scb-button.js +34 -32
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +13 -11
- package/mvc/components/scb-card/scb-card.js +44 -41
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +15 -13
- package/mvc/components/scb-checkbox/scb-checkbox.js +6 -6
- package/mvc/components/scb-chip/scb-chip.js +27 -7
- package/mvc/components/scb-divider/scb-divider.js +41 -15
- package/mvc/components/scb-fact-card/scb-fact-card.js +37 -18
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +71 -43
- package/mvc/components/scb-icon-button/scb-icon-button.js +16 -10
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -4
- package/mvc/components/scb-list/scb-list.js +3 -3
- package/mvc/components/scb-notification-card/scb-notification-card.js +5 -5
- package/mvc/components/scb-pagination/scb-pagination.js +165 -107
- package/mvc/components/scb-radio-button/scb-radio-group.js +22 -11
- package/mvc/components/scb-search/scb-search.js +84 -32
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +15 -13
- package/mvc/components/scb-status-pill/scb-status-pill.js +17 -13
- package/mvc/components/scb-stepper/scb-stepper.js +32 -29
- package/mvc/components/scb-switch/scb-switch.js +11 -8
- package/mvc/components/scb-tabs/scb-tabs.js +22 -19
- package/mvc/components/scb-textfield/scb-textfield.js +14 -10
- package/mvc/components/scb-toc/scb-toc.js +6 -3
- package/mvc/components/scb-viz/scb-viz.js +188 -178
- package/package.json +2 -2
- package/scb-accordion/scb-accordion.d.ts +13 -0
- package/scb-accordion/scb-accordion.js +53 -21
- package/scb-avatar/scb-avatar.d.ts +6 -0
- package/scb-avatar/scb-avatar.js +96 -61
- package/scb-breadcrumb/scb-breadcrumb-item.js +8 -9
- package/scb-breadcrumb/scb-breadcrumb.d.ts +6 -0
- package/scb-breadcrumb/scb-breadcrumb.js +61 -30
- package/scb-button/scb-button.d.ts +10 -0
- package/scb-button/scb-button.js +89 -65
- package/scb-calendar-card/scb-calendar-card.d.ts +5 -0
- package/scb-calendar-card/scb-calendar-card.js +79 -55
- package/scb-card/scb-card.d.ts +5 -0
- package/scb-card/scb-card.js +165 -140
- package/scb-checkbox/scb-checkbox-group.d.ts +3 -1
- package/scb-checkbox/scb-checkbox-group.js +59 -40
- package/scb-checkbox/scb-checkbox.d.ts +11 -0
- package/scb-checkbox/scb-checkbox.js +78 -56
- package/scb-chip/scb-chip.d.ts +24 -0
- package/scb-chip/scb-chip.js +137 -65
- package/scb-divider/scb-divider.d.ts +14 -0
- package/scb-divider/scb-divider.js +91 -43
- package/scb-fact-card/scb-fact-card.d.ts +10 -0
- package/scb-fact-card/scb-fact-card.js +135 -94
- package/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +10 -0
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +179 -120
- package/scb-icon-button/scb-icon-button.d.ts +10 -1
- package/scb-icon-button/scb-icon-button.js +88 -59
- package/scb-keyfigure-card/scb-keyfigure-card.d.ts +10 -0
- package/scb-keyfigure-card/scb-keyfigure-card.js +76 -52
- package/scb-list/scb-list.d.ts +7 -1
- package/scb-list/scb-list.js +62 -40
- package/scb-notification-card/scb-notification-card.d.ts +5 -0
- package/scb-notification-card/scb-notification-card.js +56 -39
- package/scb-pagination/scb-pagination.d.ts +12 -1
- package/scb-pagination/scb-pagination.js +235 -147
- package/scb-radio-button/scb-radio-group.d.ts +14 -3
- package/scb-radio-button/scb-radio-group.js +120 -67
- package/scb-search/scb-search.d.ts +15 -2
- package/scb-search/scb-search.js +152 -69
- package/scb-segmented-button/scb-segmented-button.d.ts +45 -4
- package/scb-segmented-button/scb-segmented-button.js +163 -72
- package/scb-status-pill/scb-status-pill.d.ts +12 -1
- package/scb-status-pill/scb-status-pill.js +51 -27
- package/scb-stepper/scb-stepper.d.ts +11 -3
- package/scb-stepper/scb-stepper.js +134 -101
- package/scb-switch/scb-switch.d.ts +21 -2
- package/scb-switch/scb-switch.js +97 -45
- package/scb-tabs/scb-tabs.d.ts +8 -0
- package/scb-tabs/scb-tabs.js +74 -44
- package/scb-textfield/scb-textfield.d.ts +7 -0
- package/scb-textfield/scb-textfield.js +43 -16
- package/scb-toc/scb-toc.d.ts +10 -1
- package/scb-toc/scb-toc.js +49 -18
- package/scb-viz/scb-viz.d.ts +10 -3
- package/scb-viz/scb-viz.js +278 -236
- package/scb-wc-test.bundle.js +1184 -901
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as d, LitElement as h, html as a } from "lit";
|
|
2
|
+
import { property as c, customElement as b } from "lit/decorators.js";
|
|
3
3
|
import "../scb-link/scb-link.js";
|
|
4
4
|
import "../scb-button/scb-button.js";
|
|
5
5
|
import "../scb-icon-button/scb-icon-button.js";
|
|
6
6
|
import "@material/web/icon/icon.js";
|
|
7
7
|
import "@material/web/focus/md-focus-ring.js";
|
|
8
|
-
var u = Object.defineProperty,
|
|
9
|
-
for (var
|
|
10
|
-
(
|
|
11
|
-
return i &&
|
|
8
|
+
var u = Object.defineProperty, m = Object.getOwnPropertyDescriptor, p = (n, e, r, i) => {
|
|
9
|
+
for (var l = i > 1 ? void 0 : i ? m(e, r) : e, g = n.length - 1, s; g >= 0; g--)
|
|
10
|
+
(s = n[g]) && (l = (i ? s(e, r, l) : s(l)) || l);
|
|
11
|
+
return i && l && u(e, r, l), l;
|
|
12
12
|
};
|
|
13
13
|
let o = class extends h {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.variant = "icon-text", this.page = 1, this.totalPages = 0, this.pagingHref = "/products?page=", this.paginationAriaLabel = "Paginering", this.currentAriaLabel = "Nuvarande sida, ", this.pagingNumberAriaLabel = "Gå till sida ", this.isNarrow = window.innerWidth <= 768, this._onResize = () => {
|
|
15
|
+
super(...arguments), this.variant = "icon-text", this.page = 1, this.totalPages = 0, this.pagingHref = "/products?page=", this.paginationAriaLabel = "Paginering", this.currentAriaLabel = "Nuvarande sida, ", this.pagingNumberAriaLabel = "Gå till sida ", this.isNarrow = window.innerWidth <= 768, this.spacing = "", this.spacingTop = "", this.spacingBottom = "", this._onResize = () => {
|
|
16
16
|
this.isNarrow = window.innerWidth <= 768;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -28,83 +28,163 @@ let o = class extends h {
|
|
|
28
28
|
disconnectedCallback() {
|
|
29
29
|
super.disconnectedCallback(), window.removeEventListener("resize", this._onResize);
|
|
30
30
|
}
|
|
31
|
+
__resolveSpacingToken(n) {
|
|
32
|
+
const e = (n ?? "").trim();
|
|
33
|
+
return e ? /^(?:[0-9]|1[0-4])$/.test(e) ? `var(--spacing-${e})` : e : "";
|
|
34
|
+
}
|
|
35
|
+
__applySpacing() {
|
|
36
|
+
const n = this.__resolveSpacingToken(this.spacingTop || this.spacing), e = this.__resolveSpacingToken(this.spacingBottom || this.spacing);
|
|
37
|
+
n ? this.style.marginBlockStart = n : this.style.removeProperty("margin-block-start"), e ? this.style.marginBlockEnd = e : this.style.removeProperty("margin-block-end");
|
|
38
|
+
}
|
|
39
|
+
updated(n) {
|
|
40
|
+
super.updated(n), (n.has("spacing") || n.has("spacingTop") || n.has("spacingBottom")) && this.__applySpacing();
|
|
41
|
+
}
|
|
31
42
|
render() {
|
|
32
43
|
if (this.totalPages === 0) return null;
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<
|
|
44
|
-
|
|
44
|
+
const n = this.variant ? `${this.variant.toLowerCase()}` : "", e = [], { page: r, totalPages: i } = this, l = window.innerWidth <= 768, g = l ? 1 : 2, s = (t) => t === r ? a`
|
|
45
|
+
<li>
|
|
46
|
+
<span
|
|
47
|
+
class="page-number active"
|
|
48
|
+
aria-current="page"
|
|
49
|
+
aria-label="${this.currentAriaLabel} ${t}"
|
|
50
|
+
>${t}</span
|
|
51
|
+
>
|
|
52
|
+
</li>
|
|
53
|
+
` : a`
|
|
54
|
+
<li>
|
|
55
|
+
<scb-link
|
|
56
|
+
class="page-number${t === r ? " active" : ""}"
|
|
45
57
|
@click=${() => {
|
|
46
58
|
this.page = t, this.dispatchEvent(new CustomEvent("page-change", { detail: { page: t } }));
|
|
47
59
|
}}
|
|
48
|
-
aria-current=${t ===
|
|
60
|
+
aria-current=${t === r ? "page" : void 0}
|
|
49
61
|
aria-label="${this.pagingNumberAriaLabel} ${t}"
|
|
50
62
|
href=${this.pagingHref}${t}
|
|
51
|
-
?disabled=${t ===
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
63
|
+
?disabled=${t === r}
|
|
64
|
+
>${t}</scb-link
|
|
65
|
+
>
|
|
66
|
+
</li>
|
|
67
|
+
`;
|
|
55
68
|
if (i <= 8)
|
|
56
69
|
for (let t = 1; t <= i; t++)
|
|
57
|
-
e.push(
|
|
58
|
-
else if (e.push(
|
|
59
|
-
for (let t = 2; t <= 5; t++) e.push(
|
|
60
|
-
i > 6 ? (e.push(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
e.push(
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
e.push(s(t));
|
|
71
|
+
else if (e.push(s(1)), r <= 4 && !l) {
|
|
72
|
+
for (let t = 2; t <= 5; t++) e.push(s(t));
|
|
73
|
+
i > 6 ? (e.push(
|
|
74
|
+
a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
|
|
75
|
+
), e.push(s(i))) : i === 6 && e.push(s(i));
|
|
76
|
+
} else if (r <= 3 && l) {
|
|
77
|
+
for (let t = 2; t <= 3; t++) e.push(s(t));
|
|
78
|
+
i > 4 ? (e.push(
|
|
79
|
+
a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
|
|
80
|
+
), e.push(s(i))) : i === 4 && e.push(s(i));
|
|
81
|
+
} else if (r >= i - (g + 1)) {
|
|
82
|
+
e.push(
|
|
83
|
+
a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
|
|
84
|
+
);
|
|
85
|
+
for (let t = i - g * 2; t <= i; t++)
|
|
86
|
+
t > 1 && e.push(s(t));
|
|
68
87
|
} else {
|
|
69
|
-
e.push(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
88
|
+
e.push(
|
|
89
|
+
a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
|
|
90
|
+
);
|
|
91
|
+
for (let t = r - g; t <= r + g; t++)
|
|
92
|
+
t > 1 && t < i && e.push(s(t));
|
|
93
|
+
e.push(
|
|
94
|
+
a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
|
|
95
|
+
), e.push(s(i));
|
|
73
96
|
}
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
97
|
+
return l ? a`
|
|
98
|
+
<nav aria-label="${this.paginationAriaLabel}" class="pagination ${n}">
|
|
99
|
+
<div class="pagination-row">
|
|
100
|
+
<div class="prev">
|
|
101
|
+
${this.variant === "icon" ? a`<scb-icon-button
|
|
102
|
+
icon="chevron_left"
|
|
103
|
+
@click=${this._prevPage}
|
|
104
|
+
?disabled=${this.page === 1}
|
|
105
|
+
aria-label="Föregående sida"
|
|
106
|
+
></scb-icon-button>` : a`<scb-button
|
|
107
|
+
variant="text"
|
|
108
|
+
label="Föregående"
|
|
109
|
+
icon="chevron_left"
|
|
110
|
+
@click=${this._prevPage}
|
|
111
|
+
?disabled=${this.page === 1}
|
|
112
|
+
aria-label="Föregående sida"
|
|
113
|
+
></scb-button>`}
|
|
86
114
|
</div>
|
|
115
|
+
<ol>
|
|
116
|
+
${e}
|
|
117
|
+
</ol>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="next">
|
|
120
|
+
${this.variant === "icon" ? a`<scb-icon-button
|
|
121
|
+
icon="chevron_right"
|
|
122
|
+
@click=${this._nextPage}
|
|
123
|
+
?disabled=${this.page === this.totalPages}
|
|
124
|
+
aria-label="Nästa sida"
|
|
125
|
+
></scb-icon-button>` : a`<scb-button
|
|
126
|
+
variant="text"
|
|
127
|
+
label="Nästa"
|
|
128
|
+
icon="chevron_right"
|
|
129
|
+
iconPosition="right"
|
|
130
|
+
@click=${this._nextPage}
|
|
131
|
+
?disabled=${this.page === this.totalPages}
|
|
132
|
+
aria-label="Nästa sida"
|
|
133
|
+
trailing-icon
|
|
134
|
+
></scb-button>`}
|
|
135
|
+
</div>
|
|
87
136
|
</nav>
|
|
88
137
|
` : a`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
138
|
+
<nav aria-label="${this.paginationAriaLabel}" class="pagination ${n}">
|
|
139
|
+
<div class="pagination-row">
|
|
140
|
+
<div class="prev">
|
|
141
|
+
${this.variant === "icon" ? a`<scb-icon-button
|
|
142
|
+
icon="chevron_left"
|
|
143
|
+
@click=${this._prevPage}
|
|
144
|
+
?disabled=${this.page === 1}
|
|
145
|
+
aria-label="Föregående sida"
|
|
146
|
+
></scb-icon-button>` : a`<scb-button
|
|
147
|
+
variant="text"
|
|
148
|
+
label="Föregående"
|
|
149
|
+
icon="chevron_left"
|
|
150
|
+
@click=${this._prevPage}
|
|
151
|
+
?disabled=${this.page === 1}
|
|
152
|
+
aria-label="Föregående sida"
|
|
153
|
+
></scb-button>`}
|
|
154
|
+
</div>
|
|
155
|
+
<ol>
|
|
156
|
+
${e}
|
|
157
|
+
</ol>
|
|
158
|
+
<div class="next">
|
|
159
|
+
${this.variant === "icon" ? a`<scb-icon-button
|
|
160
|
+
icon="chevron_right"
|
|
161
|
+
@click=${this._nextPage}
|
|
162
|
+
?disabled=${this.page === this.totalPages}
|
|
163
|
+
aria-label="Nästa sida"
|
|
164
|
+
></scb-icon-button>` : a`<scb-button
|
|
165
|
+
variant="text"
|
|
166
|
+
label="Nästa"
|
|
167
|
+
icon="chevron_right"
|
|
168
|
+
iconPosition="right"
|
|
169
|
+
@click=${this._nextPage}
|
|
170
|
+
?disabled=${this.page === this.totalPages}
|
|
171
|
+
aria-label="Nästa sida"
|
|
172
|
+
trailing-icon
|
|
173
|
+
></scb-button>`}
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</nav>
|
|
177
|
+
`;
|
|
103
178
|
}
|
|
104
179
|
};
|
|
105
180
|
o.styles = [
|
|
106
|
-
|
|
107
|
-
|
|
181
|
+
d`
|
|
182
|
+
:host {
|
|
183
|
+
display: block;
|
|
184
|
+
width: 100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host .pagination {
|
|
108
188
|
--md-text-button-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
109
189
|
--md-text-button-pressed-state-layer-color: var(--md-sys-color-on-surface, #0F0865);
|
|
110
190
|
--md-text-button-focus-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
@@ -113,68 +193,68 @@ o.styles = [
|
|
|
113
193
|
--md-text-button-label-text-weight: var(--weight-regular, 400);
|
|
114
194
|
--md-text-button-label-text-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
|
|
115
195
|
--md-text-button-label-text-size: var(--md-sys-typescale-body-medium-size, 16px);
|
|
116
|
-
--md-text-button-icon-color
|
|
117
|
-
--md-text-button-focus-icon-color
|
|
118
|
-
--md-text-button-hover-icon-color
|
|
119
|
-
--md-text-button-pressed-icon-color
|
|
196
|
+
--md-text-button-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
197
|
+
--md-text-button-focus-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
198
|
+
--md-text-button-hover-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
199
|
+
--md-text-button-pressed-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
120
200
|
--scb-link-decoration: none;
|
|
121
201
|
--scb-link-color: var(--md-sys-color-on-surface, #0F0865);
|
|
122
202
|
|
|
123
203
|
scb-link.page-number a {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
display: inline-flex;
|
|
127
207
|
}
|
|
128
|
-
|
|
208
|
+
}
|
|
129
209
|
|
|
130
|
-
|
|
210
|
+
.pagination {
|
|
131
211
|
width: 100%;
|
|
132
212
|
display: flex;
|
|
133
213
|
flex-direction: column;
|
|
134
214
|
gap: 0;
|
|
135
|
-
|
|
136
|
-
|
|
215
|
+
}
|
|
216
|
+
.pagination-row {
|
|
137
217
|
width: 100%;
|
|
138
218
|
display: flex;
|
|
139
219
|
flex-direction: row;
|
|
140
220
|
align-items: center;
|
|
141
221
|
gap: 4px;
|
|
142
|
-
|
|
143
|
-
|
|
222
|
+
}
|
|
223
|
+
.pagination-row .prev {
|
|
144
224
|
display: flex;
|
|
145
225
|
justify-content: flex-start;
|
|
146
226
|
width: auto;
|
|
147
|
-
|
|
148
|
-
|
|
227
|
+
}
|
|
228
|
+
.pagination-row ol {
|
|
149
229
|
width: auto;
|
|
150
230
|
display: flex;
|
|
151
231
|
flex-direction: row;
|
|
152
|
-
justify-content: flex-start;
|
|
232
|
+
justify-content: flex-start;
|
|
153
233
|
gap: 4px;
|
|
154
234
|
margin: 0;
|
|
155
235
|
padding: 0;
|
|
156
236
|
list-style: none;
|
|
157
|
-
|
|
158
|
-
|
|
237
|
+
}
|
|
238
|
+
.pagination-row ol li {
|
|
159
239
|
min-width: 40px;
|
|
160
240
|
min-height: 40px;
|
|
161
241
|
display: flex;
|
|
162
242
|
align-items: center;
|
|
163
243
|
justify-content: center;
|
|
164
|
-
|
|
165
|
-
|
|
244
|
+
}
|
|
245
|
+
.pagination-row .next {
|
|
166
246
|
display: flex;
|
|
167
247
|
justify-content: flex-start;
|
|
168
|
-
align-items: center;
|
|
248
|
+
align-items: center;
|
|
169
249
|
width: auto;
|
|
170
|
-
margin-top: 0;
|
|
171
|
-
|
|
172
|
-
|
|
250
|
+
margin-top: 0;
|
|
251
|
+
}
|
|
252
|
+
scb-link.page-number a {
|
|
173
253
|
cursor: pointer;
|
|
174
254
|
text-decoration: none;
|
|
175
255
|
display: inline-flex;
|
|
176
|
-
|
|
177
|
-
|
|
256
|
+
}
|
|
257
|
+
.page-number.active {
|
|
178
258
|
display: inline-flex;
|
|
179
259
|
align-items: center;
|
|
180
260
|
justify-content: center;
|
|
@@ -184,79 +264,87 @@ o.styles = [
|
|
|
184
264
|
text-align: center;
|
|
185
265
|
width: 40px;
|
|
186
266
|
height: 40px;
|
|
187
|
-
|
|
188
|
-
|
|
267
|
+
}
|
|
268
|
+
.page-number.active {
|
|
189
269
|
font-family: var(--brand-font, 'Inter', sans-serif);
|
|
190
|
-
|
|
191
|
-
|
|
270
|
+
}
|
|
271
|
+
.ellipsis {
|
|
192
272
|
margin: 0 4px;
|
|
193
273
|
color: #888;
|
|
194
274
|
user-select: none;
|
|
195
275
|
pointer-events: none;
|
|
196
|
-
|
|
197
|
-
|
|
276
|
+
}
|
|
277
|
+
scb-button[disabled] {
|
|
198
278
|
opacity: 0.5;
|
|
199
279
|
pointer-events: none;
|
|
200
280
|
}
|
|
201
281
|
|
|
202
|
-
@media (max-width: 768px) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
282
|
+
@media (max-width: 768px) {
|
|
283
|
+
.pagination .prev {
|
|
284
|
+
display: flex;
|
|
285
|
+
justify-content: flex-start;
|
|
286
|
+
}
|
|
287
|
+
.pagination .next {
|
|
288
|
+
width: 100%;
|
|
289
|
+
margin-top: 8px;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
213
292
|
|
|
214
|
-
@media (max-width: 390px) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
`
|
|
293
|
+
@media (max-width: 390px) {
|
|
294
|
+
.pagination-row {
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
gap: 0;
|
|
297
|
+
}
|
|
298
|
+
.pagination-row .prev {
|
|
299
|
+
width: 100%;
|
|
300
|
+
margin-bottom: 8px;
|
|
301
|
+
align-items: center;
|
|
302
|
+
}
|
|
303
|
+
.pagination-row ol {
|
|
304
|
+
width: 100%;
|
|
305
|
+
align-items: center;
|
|
306
|
+
}
|
|
307
|
+
.pagination-row .next {
|
|
308
|
+
width: 100%;
|
|
309
|
+
margin-top: 8px;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
`
|
|
234
313
|
];
|
|
235
|
-
|
|
236
|
-
|
|
314
|
+
p([
|
|
315
|
+
c({ type: String })
|
|
237
316
|
], o.prototype, "variant", 2);
|
|
238
|
-
|
|
239
|
-
|
|
317
|
+
p([
|
|
318
|
+
c({ type: Number })
|
|
240
319
|
], o.prototype, "page", 2);
|
|
241
|
-
|
|
242
|
-
|
|
320
|
+
p([
|
|
321
|
+
c({ type: Number, attribute: "total-pages" })
|
|
243
322
|
], o.prototype, "totalPages", 2);
|
|
244
|
-
|
|
245
|
-
|
|
323
|
+
p([
|
|
324
|
+
c({ type: String, attribute: "paging-href" })
|
|
246
325
|
], o.prototype, "pagingHref", 2);
|
|
247
|
-
|
|
248
|
-
|
|
326
|
+
p([
|
|
327
|
+
c({ type: String, attribute: "pagination-aria-label" })
|
|
249
328
|
], o.prototype, "paginationAriaLabel", 2);
|
|
250
|
-
|
|
251
|
-
|
|
329
|
+
p([
|
|
330
|
+
c({ type: String, attribute: "current-aria-label" })
|
|
252
331
|
], o.prototype, "currentAriaLabel", 2);
|
|
253
|
-
|
|
254
|
-
|
|
332
|
+
p([
|
|
333
|
+
c({ type: String, attribute: "paging-number-aria-label" })
|
|
255
334
|
], o.prototype, "pagingNumberAriaLabel", 2);
|
|
256
|
-
|
|
257
|
-
|
|
335
|
+
p([
|
|
336
|
+
c({ type: Boolean })
|
|
258
337
|
], o.prototype, "isNarrow", 2);
|
|
259
|
-
|
|
338
|
+
p([
|
|
339
|
+
c({ type: String })
|
|
340
|
+
], o.prototype, "spacing", 2);
|
|
341
|
+
p([
|
|
342
|
+
c({ type: String, attribute: "spacing-top" })
|
|
343
|
+
], o.prototype, "spacingTop", 2);
|
|
344
|
+
p([
|
|
345
|
+
c({ type: String, attribute: "spacing-bottom" })
|
|
346
|
+
], o.prototype, "spacingBottom", 2);
|
|
347
|
+
o = p([
|
|
260
348
|
b("scb-pagination")
|
|
261
349
|
], o);
|
|
262
350
|
export {
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
export declare class ScbRadioGroup extends LitElement {
|
|
3
3
|
#private;
|
|
4
|
+
static formAssociated: boolean;
|
|
4
5
|
name: string;
|
|
5
6
|
orientation: 'vertical' | 'horizontal';
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
ariaLabel: string | null;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/** Avstånd mellan radioknappar i gruppen ägs av CSS-variabeln --scb-radio-gap. */
|
|
10
|
+
/** Styr vertikalt avstånd till omgivande innehåll (samma modell som scb-checkbox-group). */
|
|
11
|
+
spacing: string;
|
|
12
|
+
spacingTop: string;
|
|
13
|
+
spacingBottom: string;
|
|
14
|
+
/** Håller gruppens aktuella värde, speglar value på den radio-knapp som är vald. */
|
|
11
15
|
value: string;
|
|
16
|
+
private _internals;
|
|
17
|
+
private _form;
|
|
18
|
+
private _formResetHandler;
|
|
19
|
+
private _initialValue;
|
|
20
|
+
constructor();
|
|
12
21
|
static styles: import('lit').CSSResult;
|
|
13
22
|
render(): import('lit-html').TemplateResult<1>;
|
|
14
23
|
firstUpdated(): void;
|
|
15
24
|
disconnectedCallback(): void;
|
|
16
25
|
updated(changed: Map<string, unknown>): void;
|
|
26
|
+
formDisabledCallback(disabled: boolean): void;
|
|
27
|
+
private __syncFormValue;
|
|
17
28
|
}
|
|
18
29
|
declare global {
|
|
19
30
|
interface HTMLElementTagNameMap {
|