@sbb-esta/lyne-elements 3.12.1 → 3.13.0
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/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +4 -4
- package/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +4 -4
- package/button/common.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.d.ts +1 -0
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +126 -126
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common/card-action-common.js +3 -8
- package/checkbox/common.js +1 -1
- package/checkbox-common-C5r-MPLc.js +5 -0
- package/checkbox.js +1 -1
- package/core/a11y/interactivity-checker.js +0 -7
- package/core/a11y/live-announcer.js +0 -7
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -0
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.js +1 -1
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/core/mixins.js +2 -2
- package/core/styles/core.scss +4 -0
- package/core.css +2 -0
- package/custom-elements.json +24 -179
- package/date-input/date-input.component.d.ts +1 -0
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +2 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +3 -3
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.d.ts +1 -0
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +4 -4
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common/card-action-common.js +15 -8
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-Dy_ofVhp.js → checkbox-common-Cq9DLK37.js} +3 -3
- package/development/checkbox.js +1 -1
- package/development/core/a11y/interactivity-checker.js +1 -8
- package/development/core/a11y/live-announcer.js +1 -8
- package/development/core/config/config.d.ts +5 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -0
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/core/mixins.js +2 -2
- package/development/date-input/date-input.component.d.ts +1 -0
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +3 -2
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -2
- package/development/flip-card/flip-card/flip-card.component.js +2 -2
- package/development/form-field/form-field/form-field.component.js +1 -1
- package/development/header/common/header-action-common.js +1 -1
- package/development/{icon-sidebar-button-common-BGrKtvyM.js → icon-sidebar-button-common-CaOV-n8E.js} +2 -2
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.js +1 -1
- package/development/link/common.js +1 -1
- package/development/{link-common-BDFF9Oiz.js → link-common-B9KyXHCd.js} +3 -3
- package/development/link.js +1 -1
- package/development/menu/common/menu-action-common.js +4 -4
- package/development/navigation/common/navigation-action-common.js +1 -1
- package/development/option/option/option.component.js +2 -2
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +7 -24
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +2 -3
- package/development/paginator/paginator/paginator.component.d.ts +0 -6
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +6 -21
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +63 -13
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-CgM3kQSW.js → radio-button-common-DWGEcWfZ.js} +3 -3
- package/development/radio-button.js +1 -1
- package/development/select/select.component.d.ts +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +8 -5
- package/development/sidebar/common.js +1 -1
- package/development/sidebar.js +1 -1
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +1 -1
- package/development/teaser/teaser.component.js +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle-check/toggle-check.component.js +2 -2
- package/development/{transparent-button-DdSaBp_-.js → transparent-button-BUTXbd7W.js} +3 -3
- package/development/visual-checkbox/visual-checkbox.component.js +2 -2
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +5 -5
- package/flip-card/flip-card/flip-card.component.js +8 -8
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/{icon-sidebar-button-common-XcKoF2SP.js → icon-sidebar-button-common-D_doPv2r.js} +1 -1
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.js +1 -1
- package/link/common.js +1 -1
- package/{link-common-nA3q92jp.js → link-common-CfSIg7al.js} +8 -8
- package/link.js +1 -1
- package/menu/common/menu-action-common.js +8 -8
- package/navigation/common/navigation-action-common.js +1 -1
- package/off-brand-theme.css +2 -0
- package/option/option/option.component.js +18 -18
- package/package.json +1 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common/paginator-common.js +30 -46
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +1 -2
- package/paginator/paginator/paginator.component.d.ts +0 -6
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +45 -57
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +72 -74
- package/radio-button/common.js +1 -1
- package/radio-button-common-BHR2tjCF.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +2 -0
- package/select/select.component.d.ts +1 -1
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +25 -23
- package/sidebar/common.js +1 -1
- package/sidebar.js +1 -1
- package/standard-theme.css +2 -0
- package/stepper/step-label/step-label.component.js +4 -4
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tag/tag/tag.component.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/time-input/time-input.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +9 -9
- package/toggle-check/toggle-check.component.js +1 -1
- package/transparent-button-CBNZHS9a.js +9 -0
- package/visual-checkbox/visual-checkbox.component.js +18 -18
- package/checkbox-common-gjHkSAmN.js +0 -5
- package/radio-button-common-Bw2t3Sxz.js +0 -5
- package/transparent-button-DJIkG5hj.js +0 -9
|
@@ -2,34 +2,34 @@ var K = (a) => {
|
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
4
|
var Q = (a, n, g) => n.has(a) || K("Cannot " + g);
|
|
5
|
-
var c = (a, n, g) => (Q(a, n, "read from private field"), g ? g.call(a) : n.get(a)), h = (a, n, g) => n.has(a) ? K("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, g), s = (a, n, g,
|
|
5
|
+
var c = (a, n, g) => (Q(a, n, "read from private field"), g ? g.call(a) : n.get(a)), h = (a, n, g) => n.has(a) ? K("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, g), s = (a, n, g, I) => (Q(a, n, "write to private field"), I ? I.call(a, g) : n.set(a, g), g);
|
|
6
6
|
import { __runInitializers as l, __esDecorate as o } from "tslib";
|
|
7
7
|
import { html as V } from "lit";
|
|
8
8
|
import { property as b } from "lit/decorators.js";
|
|
9
9
|
import { sbbInputModalityDetector as W } from "../../core/a11y/input-modality-detector.js";
|
|
10
10
|
import { SbbLanguageController as X } from "../../core/controllers.js";
|
|
11
|
-
import { forceType as
|
|
11
|
+
import { forceType as z } from "../../core/decorators.js";
|
|
12
12
|
import { isLean as Y } from "../../core/dom.js";
|
|
13
13
|
import { i18nPage as Z, i18nPaginatorSelected as C, i18nPreviousPage as ee, i18nNextPage as te } from "../../core/i18n.js";
|
|
14
14
|
import { SbbNegativeMixin as ie, SbbDisabledMixin as ae, SbbElementInternalsMixin as se } from "../../core/mixins.js";
|
|
15
15
|
import "../../button/mini-button.js";
|
|
16
16
|
import "../../button/mini-button-group.js";
|
|
17
17
|
import "../../divider.js";
|
|
18
|
-
const
|
|
19
|
-
var p,
|
|
20
|
-
let g = ie(ae(se(a))),
|
|
18
|
+
const me = (a) => (() => {
|
|
19
|
+
var p, u, d, P, x, _, m, y, r;
|
|
20
|
+
let g = ie(ae(se(a))), I, f = [], v = [], L, S = [], N = [], k, M = [], $ = [], w, R = [], O = [], B, D = [], U = [], j, q = [], E = [], T, A = [], F = [], G, H = [], J = [];
|
|
21
21
|
return r = class extends g {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
24
|
h(this, p);
|
|
25
|
-
h(this, d);
|
|
26
25
|
h(this, u);
|
|
26
|
+
h(this, d);
|
|
27
27
|
h(this, P);
|
|
28
28
|
h(this, x);
|
|
29
|
-
h(this, m);
|
|
30
29
|
h(this, _);
|
|
30
|
+
h(this, m);
|
|
31
31
|
h(this, y);
|
|
32
|
-
s(this, p, l(this,
|
|
32
|
+
s(this, p, l(this, f, 0)), s(this, u, (l(this, v), l(this, S, 10))), s(this, d, (l(this, N), l(this, M, 0))), s(this, P, (l(this, $), l(this, R, "start"))), s(this, x, (l(this, O), l(this, D, Y() ? "s" : "m"))), s(this, _, (l(this, U), l(this, q, ""))), s(this, m, (l(this, E), l(this, A, ""))), s(this, y, (l(this, F), l(this, H, ""))), this.language = (l(this, J), new X(this));
|
|
33
33
|
}
|
|
34
34
|
/** Total number of items. */
|
|
35
35
|
get length() {
|
|
@@ -40,17 +40,17 @@ const _e = (a) => (() => {
|
|
|
40
40
|
}
|
|
41
41
|
/** Number of items per page. */
|
|
42
42
|
get pageSize() {
|
|
43
|
-
return c(this,
|
|
43
|
+
return c(this, u);
|
|
44
44
|
}
|
|
45
45
|
set pageSize(t) {
|
|
46
|
-
s(this,
|
|
46
|
+
s(this, u, t);
|
|
47
47
|
}
|
|
48
48
|
/** Current page index. */
|
|
49
49
|
get pageIndex() {
|
|
50
|
-
return c(this,
|
|
50
|
+
return c(this, d);
|
|
51
51
|
}
|
|
52
52
|
set pageIndex(t) {
|
|
53
|
-
s(this,
|
|
53
|
+
s(this, d, t);
|
|
54
54
|
}
|
|
55
55
|
/** Position of the prev/next buttons. */
|
|
56
56
|
get pagerPosition() {
|
|
@@ -74,20 +74,20 @@ const _e = (a) => (() => {
|
|
|
74
74
|
* Can be set for cases like a carousel, where `slide` or `image` fits better.
|
|
75
75
|
*/
|
|
76
76
|
get accessibilityPageLabel() {
|
|
77
|
-
return c(this,
|
|
77
|
+
return c(this, _);
|
|
78
78
|
}
|
|
79
79
|
set accessibilityPageLabel(t) {
|
|
80
|
-
s(this,
|
|
80
|
+
s(this, _, t);
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Accessibility label for the previous page. Defaults to `previous page`.
|
|
84
84
|
* Can be set for cases like a carousel, where `slide` or `image` fits better.
|
|
85
85
|
*/
|
|
86
86
|
get accessibilityPreviousPageLabel() {
|
|
87
|
-
return c(this,
|
|
87
|
+
return c(this, m);
|
|
88
88
|
}
|
|
89
89
|
set accessibilityPreviousPageLabel(t) {
|
|
90
|
-
s(this,
|
|
90
|
+
s(this, m, t);
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Accessibility label for the next page. Defaults to `next page`.
|
|
@@ -104,9 +104,9 @@ const _e = (a) => (() => {
|
|
|
104
104
|
let e = null;
|
|
105
105
|
if (t.has("length") && this.length !== t.get("length") && (this.length = isNaN(this.length) || this.length < 0 ? 0 : this.length, this.pageIndex = this._coercePageIndexInRange(this.pageIndex)), t.has("pageSize") && this.pageSize !== t.get("pageSize")) {
|
|
106
106
|
const i = t.get("pageSize");
|
|
107
|
-
this.pageSize = isNaN(this.pageSize) || this.pageSize < 0 ? 0 : this.pageSize, i && (this.pageIndex = Math.floor(this.pageIndex * i / this.pageSize) || 0), e = this.pageIndex;
|
|
107
|
+
this.pageSize = isNaN(this.pageSize) || this.pageSize < 0 ? 0 : this.pageSize, i && !t.has("pageIndex") && (this.pageIndex = Math.floor(this.pageIndex * i / this.pageSize) || 0), e = this.pageIndex;
|
|
108
108
|
}
|
|
109
|
-
t.has("pageIndex") && this.pageIndex !== t.get("pageIndex") && (this.pageIndex = this._coercePageIndexInRange(this.pageIndex), e = t.get("pageIndex")), e !== null && this.
|
|
109
|
+
t.has("pageIndex") && this.pageIndex !== t.get("pageIndex") && (this.pageIndex = this._coercePageIndexInRange(this.pageIndex), e = t.get("pageIndex")), e !== null && this._emitPageEvent(e);
|
|
110
110
|
}
|
|
111
111
|
updated(t) {
|
|
112
112
|
super.updated(t), this.shadowRoot.querySelector("sbb-screen-reader-only#status").textContent = this._currentPageLabel();
|
|
@@ -118,10 +118,6 @@ const _e = (a) => (() => {
|
|
|
118
118
|
_currentPageLabel() {
|
|
119
119
|
return `${this.accessibilityPageLabel ? this.accessibilityPageLabel : Z[this.language.current]} ${this.pageIndex + 1} ${C[this.language.current]}.`;
|
|
120
120
|
}
|
|
121
|
-
changeAndEmitPage(t) {
|
|
122
|
-
const e = this.pageIndex;
|
|
123
|
-
this.pageIndex = t, this.emitPageEvent(e);
|
|
124
|
-
}
|
|
125
121
|
/** Advances to the next page if it exists. */
|
|
126
122
|
nextPage() {
|
|
127
123
|
this.pageIndex = this.pageIndex + 1;
|
|
@@ -158,20 +154,8 @@ const _e = (a) => (() => {
|
|
|
158
154
|
numberOfPages() {
|
|
159
155
|
return this.pageSize ? Math.ceil(this.length / this.pageSize) : 0;
|
|
160
156
|
}
|
|
161
|
-
|
|
162
|
-
this.dispatchEvent(new CustomEvent("page", {
|
|
163
|
-
bubbles: !0,
|
|
164
|
-
composed: !0,
|
|
165
|
-
detail: {
|
|
166
|
-
previousPageIndex: t,
|
|
167
|
-
pageIndex: e ?? this.pageIndex,
|
|
168
|
-
length: this.length,
|
|
169
|
-
pageSize: this.pageSize
|
|
170
|
-
}
|
|
171
|
-
}));
|
|
172
|
-
}
|
|
173
|
-
_emitPrivatePageEvent(t) {
|
|
174
|
-
this.hasUpdated && this.dispatchEvent(new CustomEvent("ɵpage", {
|
|
157
|
+
_emitPageEvent(t) {
|
|
158
|
+
this.hasUpdated && this.dispatchEvent(new CustomEvent("page", {
|
|
175
159
|
bubbles: !0,
|
|
176
160
|
composed: !0,
|
|
177
161
|
detail: {
|
|
@@ -191,7 +175,7 @@ const _e = (a) => (() => {
|
|
|
191
175
|
icon-name="chevron-small-left-small"
|
|
192
176
|
?disabled=${this.disabled || !this.hasPreviousPage()}
|
|
193
177
|
@click=${() => {
|
|
194
|
-
this.
|
|
178
|
+
this.previousPage(), !this.hasPreviousPage() && W.mostRecentModality === "keyboard" && this.shadowRoot?.getElementById("sbb-paginator-next-page").focus();
|
|
195
179
|
}}
|
|
196
180
|
></sbb-mini-button>
|
|
197
181
|
<sbb-divider orientation="vertical"></sbb-divider>
|
|
@@ -201,7 +185,7 @@ const _e = (a) => (() => {
|
|
|
201
185
|
icon-name="chevron-small-right-small"
|
|
202
186
|
?disabled=${this.disabled || !this.hasNextPage()}
|
|
203
187
|
@click=${() => {
|
|
204
|
-
this.
|
|
188
|
+
this.nextPage(), !this.hasNextPage() && W.mostRecentModality === "keyboard" && this.shadowRoot?.getElementById("sbb-paginator-prev-page").focus();
|
|
205
189
|
}}
|
|
206
190
|
></sbb-mini-button>
|
|
207
191
|
</sbb-mini-button-group>
|
|
@@ -213,27 +197,27 @@ const _e = (a) => (() => {
|
|
|
213
197
|
<sbb-screen-reader-only id="status" role="status"></sbb-screen-reader-only>
|
|
214
198
|
`;
|
|
215
199
|
}
|
|
216
|
-
}, p = new WeakMap(),
|
|
200
|
+
}, p = new WeakMap(), u = new WeakMap(), d = new WeakMap(), P = new WeakMap(), x = new WeakMap(), _ = new WeakMap(), m = new WeakMap(), y = new WeakMap(), (() => {
|
|
217
201
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
218
|
-
|
|
202
|
+
I = [z(), b({ type: Number })], L = [z(), b({ attribute: "page-size", type: Number })], k = [z(), b({ attribute: "page-index", type: Number })], w = [b({ attribute: "pager-position", reflect: !0 })], B = [b({ reflect: !0 })], j = [z(), b({ attribute: "accessibility-page-label" })], T = [z(), b({ attribute: "accessibility-previous-page-label" })], G = [z(), b({ attribute: "accessibility-next-page-label" })], o(r, null, I, { kind: "accessor", name: "length", static: !1, private: !1, access: { has: (e) => "length" in e, get: (e) => e.length, set: (e, i) => {
|
|
219
203
|
e.length = i;
|
|
220
|
-
} }, metadata: t },
|
|
204
|
+
} }, metadata: t }, f, v), o(r, null, L, { kind: "accessor", name: "pageSize", static: !1, private: !1, access: { has: (e) => "pageSize" in e, get: (e) => e.pageSize, set: (e, i) => {
|
|
221
205
|
e.pageSize = i;
|
|
222
206
|
} }, metadata: t }, S, N), o(r, null, k, { kind: "accessor", name: "pageIndex", static: !1, private: !1, access: { has: (e) => "pageIndex" in e, get: (e) => e.pageIndex, set: (e, i) => {
|
|
223
207
|
e.pageIndex = i;
|
|
224
208
|
} }, metadata: t }, M, $), o(r, null, w, { kind: "accessor", name: "pagerPosition", static: !1, private: !1, access: { has: (e) => "pagerPosition" in e, get: (e) => e.pagerPosition, set: (e, i) => {
|
|
225
209
|
e.pagerPosition = i;
|
|
226
|
-
} }, metadata: t },
|
|
210
|
+
} }, metadata: t }, R, O), o(r, null, B, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, i) => {
|
|
227
211
|
e.size = i;
|
|
228
|
-
} }, metadata: t },
|
|
212
|
+
} }, metadata: t }, D, U), o(r, null, j, { kind: "accessor", name: "accessibilityPageLabel", static: !1, private: !1, access: { has: (e) => "accessibilityPageLabel" in e, get: (e) => e.accessibilityPageLabel, set: (e, i) => {
|
|
229
213
|
e.accessibilityPageLabel = i;
|
|
230
|
-
} }, metadata: t },
|
|
214
|
+
} }, metadata: t }, q, E), o(r, null, T, { kind: "accessor", name: "accessibilityPreviousPageLabel", static: !1, private: !1, access: { has: (e) => "accessibilityPreviousPageLabel" in e, get: (e) => e.accessibilityPreviousPageLabel, set: (e, i) => {
|
|
231
215
|
e.accessibilityPreviousPageLabel = i;
|
|
232
|
-
} }, metadata: t },
|
|
216
|
+
} }, metadata: t }, A, F), o(r, null, G, { kind: "accessor", name: "accessibilityNextPageLabel", static: !1, private: !1, access: { has: (e) => "accessibilityNextPageLabel" in e, get: (e) => e.accessibilityNextPageLabel, set: (e, i) => {
|
|
233
217
|
e.accessibilityNextPageLabel = i;
|
|
234
218
|
} }, metadata: t }, H, J), t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
235
219
|
})(), r.role = "group", r;
|
|
236
220
|
})();
|
|
237
221
|
export {
|
|
238
|
-
|
|
222
|
+
me as SbbPaginatorCommonElementMixin
|
|
239
223
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-paginator.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/paginator/compact-paginator/compact-paginator.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AASvC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,6BAA6B,CAAC;;AAErC;;GAEG;AACH,qBAEM,0BAA2B,SAAQ,+BAA0C;IACjF,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"compact-paginator.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/paginator/compact-paginator/compact-paginator.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AASvC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,6BAA6B,CAAC;;AAErC;;GAEG;AACH,qBAEM,0BAA2B,SAAQ,+BAA0C;IACjF,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE1C;IAEX,OAAO,CAAC,kBAAkB;cAiBP,eAAe,IAAI,cAAc;CASrD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
|
|
@@ -38,8 +38,7 @@ let S = (() => {
|
|
|
38
38
|
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
39
39
|
b(null, r = { value: e }, n, { kind: "class", name: e.name, metadata: s }, null, i), e = r.value, s && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
|
|
40
40
|
})(), t.styles = f, t.events = {
|
|
41
|
-
page: "page"
|
|
42
|
-
ɵpage: "ɵpage"
|
|
41
|
+
page: "page"
|
|
43
42
|
}, c(e, i), e;
|
|
44
43
|
})();
|
|
45
44
|
export {
|
|
@@ -32,12 +32,6 @@ export declare class SbbPaginatorElement extends SbbPaginatorElement_base {
|
|
|
32
32
|
/** Creates an array of consecutive numbers given the length and the starting value. */
|
|
33
33
|
private _range;
|
|
34
34
|
private _handleKeyUp;
|
|
35
|
-
/**
|
|
36
|
-
* A `pageSize` change would trigger a `pageIndex` change via `willUpdate`;
|
|
37
|
-
* this triggers a `ɵpage` event, but it's late for the `page` event,
|
|
38
|
-
* so the checks on the `pageIndex` changes are done here, and possibly the event is emitted.
|
|
39
|
-
*/
|
|
40
|
-
private _setPageSizeFromSizeOptionsSelect;
|
|
41
35
|
private _renderItemPerPageTemplate;
|
|
42
36
|
private _renderPageNumbers;
|
|
43
37
|
protected renderPaginator(): TemplateResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginator.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/paginator/paginator/paginator.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAYb,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,6BAA6B,CAAC;;AAIrC;;GAEG;AACH,qBAEM,mBAAoB,SAAQ,wBAA0C;IAC1E,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"paginator.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/paginator/paginator/paginator.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAYb,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,6BAA6B,CAAC;;AAIrC;;GAEG;AACH,qBAEM,mBAAoB,SAAQ,wBAA0C;IAC1E,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE1C;IAEX,wCAAwC;IACxC,SACgB,eAAe,EAAE,MAAM,EAAE,CAAM;IAE/C;;;OAGG;IACH,SAAmF,aAAa,EAC5F,OAAO,GACP,KAAK,CAAW;IAEpB;;;OAGG;IACH,SAEgB,8BAA8B,EAAE,MAAM,CAAM;IAE5D,OAAO,CAAC,aAAa,CAAuB;cAEzB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAezE,2CAA2C;IAC3C,OAAO,CAAC,gBAAgB;IAIxB;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IA2B7B,uFAAuF;IACvF,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,0BAA0B;IAkClC,OAAO,CAAC,kBAAkB;cAmCP,eAAe,IAAI,cAAc;CAiBrD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,eAAe,EAAE,mBAAmB,CAAC;KACtC;CACF"}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
var
|
|
1
|
+
var O = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as D, property as
|
|
9
|
-
import { repeat as
|
|
10
|
-
import { sbbInputModalityDetector as
|
|
11
|
-
import { forceType as
|
|
4
|
+
var L = (t, i, r) => i.has(t) || O("Cannot " + r);
|
|
5
|
+
var u = (t, i, r) => (L(t, i, "read from private field"), r ? r.call(t) : i.get(t)), h = (t, i, r) => i.has(t) ? O("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, r), p = (t, i, r, o) => (L(t, i, "write to private field"), o ? o.call(t, r) : i.set(t, r), r);
|
|
6
|
+
import { __runInitializers as g, __esDecorate as v } from "tslib";
|
|
7
|
+
import { css as F, LitElement as T, nothing as E, html as b } from "lit";
|
|
8
|
+
import { customElement as D, property as _ } from "lit/decorators.js";
|
|
9
|
+
import { repeat as j } from "lit/directives/repeat.js";
|
|
10
|
+
import { sbbInputModalityDetector as N } from "../../core/a11y.js";
|
|
11
|
+
import { forceType as M } from "../../core/decorators.js";
|
|
12
12
|
import { i18nItemsPerPage as V, i18nPage as B } from "../../core/i18n.js";
|
|
13
13
|
import { SbbPaginatorCommonElementMixin as G } from "../common.js";
|
|
14
14
|
import "../../form-field.js";
|
|
15
15
|
import "../../select.js";
|
|
16
16
|
import "../../option.js";
|
|
17
17
|
import "../../screen-reader-only.js";
|
|
18
|
-
const H =
|
|
18
|
+
const H = F`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-paginator-height: var(--sbb-size-element-m);--sbb-paginator-page-color: var(--sbb-color-metal);--sbb-paginator-page-color: light-dark(var(--sbb-color-metal), var(--sbb-color-smoke));--sbb-paginator-page-background-color: transparent;--sbb-paginator-page-border-width: 0;--sbb-paginator-page-border-style: none;--sbb-paginator-page-border-color: none;--sbb-paginator-page-cursor: var(--sbb-cursor-pointer);--sbb-paginator-page-inset: 0;--sbb-paginator-animation-easing: var(--sbb-animation-easing);--sbb-paginator-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-paginator-justify-content: start;--sbb-paginator-wrapping-group-wrap: wrap-reverse;--sbb-paginator-wrap: wrap}:host([size=s]){--sbb-paginator-height: var(--sbb-size-element-xs)}:host([negative]){--sbb-paginator-page-color: var(--sbb-color-5);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([pager-position=end]){--sbb-paginator-justify-content: end;--sbb-paginator-wrapping-group-wrap: wrap;--sbb-paginator-wrap: wrap-reverse}.sbb-paginator,.sbb-paginator__wrapping-group{display:flex;gap:var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);justify-content:var(--sbb-paginator-justify-content)}.sbb-paginator{flex-wrap:var(--sbb-paginator-wrap);min-height:var(--sbb-paginator-height)}.sbb-paginator__wrapping-group{flex-wrap:var(--sbb-paginator-wrapping-group-wrap)}.sbb-paginator__page-size-options{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;gap:var(--sbb-spacing-fixed-2x);white-space:nowrap;color:var(--sbb-paginator-page-color)}.sbb-paginator__page-size-options sbb-select{--sbb-text-font-size: var(--sbb-font-size-text-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);color:var(--sbb-form-field-text-color);font-size:var(--sbb-form-field-input-text-size);padding-inline-end:var(--sbb-form-field-select-inline-padding-end)}.sbb-paginator__pages{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;align-items:center;justify-content:center;gap:var(--sbb-spacing-fixed-1x);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sbb-paginator__page--ellipsis,.sbb-paginator__page--number{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);position:relative;color:var(--sbb-paginator-page-color)}.sbb-paginator__page--ellipsis-item,.sbb-paginator__page--number-item{display:flex;justify-content:center;align-items:center;width:var(--sbb-size-element-xxs);height:var(--sbb-size-element-xxs)}.sbb-paginator__page--number-item{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);position:relative;cursor:var(--sbb-paginator-page-cursor);outline:none!important;color:var(--sbb-paginator-page-color);transition:color var(--sbb-paginator-animation-duration) var(--sbb-paginator-animation-easing)}.sbb-paginator__page--number-item:before{content:"";position:absolute;background-color:var(--sbb-paginator-page-background-color);border:var(--sbb-paginator-page-border-width) var(--sbb-paginator-page-border-style) var(--sbb-paginator-page-border-color);border-radius:var(--sbb-border-radius-infinity);inset:var(--sbb-paginator-page-inset);transition-property:background-color,border,inset;transition-duration:var(--sbb-paginator-animation-duration);transition-timing-function:var(--sbb-paginator-animation-easing)}.sbb-paginator__page--number-item:focus-visible:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-border-width-2x)}.sbb-paginator__page--number-item[data-selected]{font-weight:700;--sbb-paginator-page-color: var(--sbb-color-3);--sbb-paginator-page-border-width: var(--sbb-border-width-2x);--sbb-paginator-page-border-style: solid;--sbb-paginator-page-border-color: var(--sbb-border-color-2)}:host([negative]) .sbb-paginator__page--number-item[data-selected]{--sbb-paginator-page-color: var(--sbb-color-3-negative);--sbb-paginator-page-border-color: var(--sbb-border-color-2-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item[data-selected]{--sbb-paginator-page-border-color: Highlight !important}}.sbb-paginator__page--number-item:disabled{--sbb-paginator-page-color: var(--sbb-color-5);--sbb-paginator-page-border-style: dashed;--sbb-paginator-page-border-color: var(--sbb-border-color-5);--sbb-paginator-page-background-color: var(--sbb-background-color-3);--sbb-paginator-page-cursor: var(--sbb-cursor-default)}.sbb-paginator__page--number-item:disabled:not([data-selected]){--sbb-paginator-page-border-width: var(--sbb-border-width-1x)}:host([negative]) .sbb-paginator__page--number-item:disabled{--sbb-paginator-page-color: var(--sbb-color-5);--sbb-paginator-page-background-color: var(--sbb-background-color-3-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item:disabled{--sbb-paginator-page-border-color: GrayText;--sbb-paginator-page-color: GrayText;--sbb-paginator-page-background-color: Canvas}}@media(any-hover:hover){.sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: var(--sbb-background-color-3);--sbb-paginator-page-inset: calc(var(--sbb-border-width-2x) * -1);--sbb-paginator-translate-y-content-hover: -.0625rem}:host([negative]) .sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: var(--sbb-background-color-3-negative)}}@media(any-hover:hover)and (forced-colors:active){.sbb-paginator__page--number-item:not(:disabled):hover{--sbb-paginator-page-background-color: Highlight !important}}.sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-page-color: var(--sbb-color-3);--sbb-paginator-page-background-color: var(--sbb-background-color-4);--sbb-paginator-page-inset: 0;--sbb-paginator-translate-y-content-hover: 0}:host([negative]) .sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-page-color: var(--sbb-color-3-negative);--sbb-paginator-page-background-color: var(--sbb-background-color-4-negative)}@media(forced-colors:active){.sbb-paginator__page--number-item:not(:disabled):active{--sbb-paginator-page-background-color: Highlight !important}}.sbb-paginator__page--number-item-label{transition:transform var(--sbb-paginator-animation-duration) var(--sbb-paginator-animation-easing);transform:translateY(var(--sbb-paginator-translate-y-content-hover, 0rem))}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`, m = 3;
|
|
19
19
|
let ie = (() => {
|
|
20
|
-
var l, c, d,
|
|
21
|
-
let t = [D("sbb-paginator")], i, r = [],
|
|
22
|
-
return
|
|
20
|
+
var l, c, d, s;
|
|
21
|
+
let t = [D("sbb-paginator")], i, r = [], o, f = G(T), y, x = [], P = [], z, w = [], k = [], I, S = [], $ = [];
|
|
22
|
+
return s = class extends f {
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
h(this, l);
|
|
26
|
+
h(this, c);
|
|
27
|
+
h(this, d);
|
|
28
|
+
p(this, l, g(this, x, [])), p(this, c, (g(this, P), g(this, w, "start"))), p(this, d, (g(this, k), g(this, S, ""))), this._markForFocus = (g(this, $), null);
|
|
29
29
|
}
|
|
30
30
|
/** The available `pageSize` choices. */
|
|
31
31
|
get pageSizeOptions() {
|
|
32
|
-
return
|
|
32
|
+
return u(this, l);
|
|
33
33
|
}
|
|
34
34
|
set pageSizeOptions(e) {
|
|
35
|
-
|
|
35
|
+
p(this, l, e);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Position of the prev/next buttons: if `pageSizeOptions` is set,
|
|
39
39
|
* the sbb-select for the pageSize change will be positioned oppositely, with the page numbers always in the center.
|
|
40
40
|
*/
|
|
41
41
|
get pagerPosition() {
|
|
42
|
-
return
|
|
42
|
+
return u(this, c);
|
|
43
43
|
}
|
|
44
44
|
set pagerPosition(e) {
|
|
45
|
-
|
|
45
|
+
p(this, c, e);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Accessibility label for the items per page. Defaults to `Items per page.`.
|
|
49
49
|
* Can be set for cases like a carousel, where `slide` or `image` fits better.
|
|
50
50
|
*/
|
|
51
51
|
get accessibilityItemsPerPageLabel() {
|
|
52
|
-
return
|
|
52
|
+
return u(this, d);
|
|
53
53
|
}
|
|
54
54
|
set accessibilityItemsPerPageLabel(e) {
|
|
55
|
-
|
|
55
|
+
p(this, d, e);
|
|
56
56
|
}
|
|
57
57
|
updated(e) {
|
|
58
|
-
if (super.updated(e), this._markForFocus &&
|
|
59
|
-
const a = this._getVisiblePages().find((
|
|
58
|
+
if (super.updated(e), this._markForFocus && N.mostRecentModality === "keyboard") {
|
|
59
|
+
const a = this._getVisiblePages().find((n) => this.pageIndex === +n.getAttribute("data-index"));
|
|
60
60
|
a && a.focus(), this._markForFocus = null;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -88,23 +88,12 @@ let ie = (() => {
|
|
|
88
88
|
}
|
|
89
89
|
/** Creates an array of consecutive numbers given the length and the starting value. */
|
|
90
90
|
_range(e, a = 0) {
|
|
91
|
-
return Array.from({ length: e }, (
|
|
91
|
+
return Array.from({ length: e }, (n, A) => A + a);
|
|
92
92
|
}
|
|
93
93
|
_handleKeyUp(e) {
|
|
94
94
|
if (e.key !== " " && e.key !== "Enter")
|
|
95
95
|
return;
|
|
96
|
-
this._getVisiblePages().find((
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* A `pageSize` change would trigger a `pageIndex` change via `willUpdate`;
|
|
100
|
-
* this triggers a `ɵpage` event, but it's late for the `page` event,
|
|
101
|
-
* so the checks on the `pageIndex` changes are done here, and possibly the event is emitted.
|
|
102
|
-
*/
|
|
103
|
-
_setPageSizeFromSizeOptionsSelect(e) {
|
|
104
|
-
const a = this.pageSize, s = this.pageIndex;
|
|
105
|
-
this.pageSize = e;
|
|
106
|
-
const u = Math.floor(this.pageIndex * a / this.pageSize) || 0;
|
|
107
|
-
s !== u && this.emitPageEvent(s, u);
|
|
96
|
+
this._getVisiblePages().find((n) => n === e.target) && (this._markForFocus = this.pageIndex);
|
|
108
97
|
}
|
|
109
98
|
_renderItemPerPageTemplate() {
|
|
110
99
|
return this.pageSizeOptions && this.pageSizeOptions.length > 0 ? b`
|
|
@@ -122,18 +111,18 @@ let ie = (() => {
|
|
|
122
111
|
id="select"
|
|
123
112
|
?disabled=${this.disabled}
|
|
124
113
|
value=${this.pageSizeOptions?.find((e) => e === this.pageSize) ?? this.pageSizeOptions[0]}
|
|
125
|
-
@change=${(e) => this.
|
|
114
|
+
@change=${(e) => this.pageSize = +e.target.value}
|
|
126
115
|
>
|
|
127
|
-
${
|
|
116
|
+
${j(this.pageSizeOptions, (e) => b`<sbb-option value=${e}>${e}</sbb-option>`)}
|
|
128
117
|
</sbb-select>
|
|
129
118
|
</sbb-form-field>
|
|
130
119
|
</div>
|
|
131
|
-
` :
|
|
120
|
+
` : E;
|
|
132
121
|
}
|
|
133
122
|
_renderPageNumbers() {
|
|
134
123
|
return b`
|
|
135
124
|
<ul class="sbb-paginator__pages">
|
|
136
|
-
${
|
|
125
|
+
${j(this._getVisiblePagesIndex(), (e) => e === "ellipsis" ? b`
|
|
137
126
|
<li class="sbb-paginator__page--ellipsis">
|
|
138
127
|
<span class="sbb-paginator__page--ellipsis-item">…</span>
|
|
139
128
|
</li>
|
|
@@ -145,8 +134,8 @@ let ie = (() => {
|
|
|
145
134
|
class="sbb-paginator__page--number-item"
|
|
146
135
|
data-index=${e}
|
|
147
136
|
aria-label="${this.accessibilityPageLabel ? this.accessibilityPageLabel : B[this.language.current]} ${e + 1}"
|
|
148
|
-
aria-current=${this.pageIndex === e ? "true" :
|
|
149
|
-
@click=${() => this.
|
|
137
|
+
aria-current=${this.pageIndex === e ? "true" : E}
|
|
138
|
+
@click=${() => this.selectPage(e)}
|
|
150
139
|
@keyup=${this._handleKeyUp}
|
|
151
140
|
>
|
|
152
141
|
<span class="sbb-paginator__page--number-item-label">${e + 1}</span>
|
|
@@ -169,19 +158,18 @@ let ie = (() => {
|
|
|
169
158
|
</div>
|
|
170
159
|
`;
|
|
171
160
|
}
|
|
172
|
-
}, l = new WeakMap(), c = new WeakMap(), d = new WeakMap(),
|
|
173
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
174
|
-
|
|
175
|
-
a.pageSizeOptions =
|
|
176
|
-
} }, metadata: e },
|
|
177
|
-
a.pagerPosition =
|
|
178
|
-
} }, metadata: e },
|
|
179
|
-
a.accessibilityItemsPerPageLabel =
|
|
180
|
-
} }, metadata: e },
|
|
181
|
-
})(),
|
|
182
|
-
page: "page"
|
|
183
|
-
|
|
184
|
-
}, p(n, r), n;
|
|
161
|
+
}, l = new WeakMap(), c = new WeakMap(), d = new WeakMap(), o = s, (() => {
|
|
162
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
163
|
+
y = [_({ attribute: "page-size-options", type: Array })], z = [_({ attribute: "pager-position", reflect: !0 })], I = [M(), _({ attribute: "accessibility-items-per-page-label" })], v(s, null, y, { kind: "accessor", name: "pageSizeOptions", static: !1, private: !1, access: { has: (a) => "pageSizeOptions" in a, get: (a) => a.pageSizeOptions, set: (a, n) => {
|
|
164
|
+
a.pageSizeOptions = n;
|
|
165
|
+
} }, metadata: e }, x, P), v(s, null, z, { kind: "accessor", name: "pagerPosition", static: !1, private: !1, access: { has: (a) => "pagerPosition" in a, get: (a) => a.pagerPosition, set: (a, n) => {
|
|
166
|
+
a.pagerPosition = n;
|
|
167
|
+
} }, metadata: e }, w, k), v(s, null, I, { kind: "accessor", name: "accessibilityItemsPerPageLabel", static: !1, private: !1, access: { has: (a) => "accessibilityItemsPerPageLabel" in a, get: (a) => a.accessibilityItemsPerPageLabel, set: (a, n) => {
|
|
168
|
+
a.accessibilityItemsPerPageLabel = n;
|
|
169
|
+
} }, metadata: e }, S, $), v(null, i = { value: o }, t, { kind: "class", name: o.name, metadata: e }, null, r), o = i.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
170
|
+
})(), s.styles = H, s.events = {
|
|
171
|
+
page: "page"
|
|
172
|
+
}, g(o, r), o;
|
|
185
173
|
})();
|
|
186
174
|
export {
|
|
187
175
|
ie as SbbPaginatorElement
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/popover/popover/popover.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KA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