aptechka 0.68.10 → 0.69.1
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/lib/billboard/BillboardCounterElement.d.ts +10 -0
- package/lib/billboard/BillboardElement.d.ts +9 -3
- package/lib/billboard/BillboardSetButtonElement.d.ts +1 -1
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.d.ts +1 -0
- package/lib/billboard/index.js +233 -179
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +302 -302
- package/package.json +1 -1
package/lib/billboard/index.js
CHANGED
|
@@ -1,266 +1,319 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var rt = (h) => {
|
|
2
|
+
throw TypeError(h);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var t = (
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var et = (h, n, e) => n.has(h) || rt("Cannot " + e);
|
|
5
|
+
var t = (h, n, e) => (et(h, n, "read from private field"), e ? e.call(h) : n.get(h)), s = (h, n, e) => n.has(h) ? rt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(h) : n.set(h, e), l = (h, n, e, i) => (et(h, n, "write to private field"), i ? i.call(h, e) : n.set(h, e), e), c = (h, n, e) => (et(h, n, "access private method"), e);
|
|
6
|
+
var P = (h, n, e) => new Promise((i, r) => {
|
|
7
|
+
var a = (M) => {
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
} catch (
|
|
11
|
-
r(
|
|
9
|
+
_(e.next(M));
|
|
10
|
+
} catch (tt) {
|
|
11
|
+
r(tt);
|
|
12
12
|
}
|
|
13
|
-
},
|
|
13
|
+
}, y = (M) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
r(
|
|
15
|
+
_(e.throw(M));
|
|
16
|
+
} catch (tt) {
|
|
17
|
+
r(tt);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
}, _ = (M) => M.done ? i(M.value) : Promise.resolve(M.value).then(a, y);
|
|
20
|
+
_((e = e.apply(h, n)).next());
|
|
21
21
|
});
|
|
22
|
-
import { a as
|
|
23
|
-
import { w as
|
|
24
|
-
import { b as
|
|
22
|
+
import { a as st, i as Y } from "../index-Bv9zgfdb.js";
|
|
23
|
+
import { w as nt } from "../custom-elements-DBnCK7Zx.js";
|
|
24
|
+
import { b as Z } from "../dom-CVWzyXPH.js";
|
|
25
25
|
import "construct-style-sheets-polyfill";
|
|
26
|
-
import { CSSProperty as
|
|
27
|
-
import { d as
|
|
28
|
-
import { s as
|
|
29
|
-
import { c as
|
|
30
|
-
import { l as
|
|
31
|
-
var
|
|
32
|
-
class
|
|
26
|
+
import { CSSProperty as z } from "../css-property/index.js";
|
|
27
|
+
import { d as ut } from "../events-CsVF98U6.js";
|
|
28
|
+
import { s as bt } from "../gestures-CcXV6fCp.js";
|
|
29
|
+
import { c as mt } from "../math-BOBiC4TN.js";
|
|
30
|
+
import { l as ht } from "../number-CumqY64S.js";
|
|
31
|
+
var m, I, O, f, at, ot, ct, it;
|
|
32
|
+
class lt {
|
|
33
|
+
constructor(n, e) {
|
|
34
|
+
s(this, f);
|
|
35
|
+
s(this, m);
|
|
36
|
+
s(this, I, null);
|
|
37
|
+
s(this, O, !1);
|
|
38
|
+
this.element = n, l(this, m, e);
|
|
39
|
+
}
|
|
40
|
+
destroy() {
|
|
41
|
+
c(this, f, it).call(this);
|
|
42
|
+
}
|
|
43
|
+
updateClasses(n) {
|
|
44
|
+
const e = n === t(this, m).counter;
|
|
45
|
+
t(this, O) && !e ? this.element.classList.add("was-current") : this.element.classList.remove("was-current"), c(this, f, ct).call(this), c(this, f, it).call(this), n === t(this, m).counter ? c(this, f, at).call(this) : n < t(this, m).counter ? this.element.classList.add("previous") : this.element.classList.add("next"), c(this, f, ot).call(this, n);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
m = new WeakMap(), I = new WeakMap(), O = new WeakMap(), f = new WeakSet(), at = function() {
|
|
49
|
+
l(this, O, !0), this.element.classList.add("current"), l(this, I, requestAnimationFrame(() => {
|
|
50
|
+
this.element.classList.add("current-active");
|
|
51
|
+
}));
|
|
52
|
+
}, ot = function(n) {
|
|
53
|
+
n === ht(t(this, m).counter - 1, t(this, m).length) ? this.element.classList.add("previous-sibling") : n === (t(this, m).counter + 1) % t(this, m).length && this.element.classList.add("next-sibling");
|
|
54
|
+
}, ct = function() {
|
|
55
|
+
this.element.classList.remove(
|
|
56
|
+
"current",
|
|
57
|
+
"previous",
|
|
58
|
+
"next",
|
|
59
|
+
"previous-sibling",
|
|
60
|
+
"next-sibling",
|
|
61
|
+
"current-active"
|
|
62
|
+
);
|
|
63
|
+
}, it = function() {
|
|
64
|
+
t(this, I) && (cancelAnimationFrame(t(this, I)), l(this, I, null));
|
|
65
|
+
};
|
|
66
|
+
var F, S, L, C, k, T, B, p, o, b, D, u, dt, U, $, V, K, W, X;
|
|
67
|
+
class R extends HTMLElement {
|
|
33
68
|
constructor() {
|
|
34
69
|
super(...arguments);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
70
|
+
s(this, u);
|
|
71
|
+
s(this, F, new z(this, "--resize", !0));
|
|
72
|
+
s(this, S, new z(this, "--loop", !0));
|
|
73
|
+
s(this, L, new z(this, "--autoplay", !1));
|
|
74
|
+
s(this, C, new z(this, "--swipe", "x"));
|
|
75
|
+
s(this, k);
|
|
76
|
+
s(this, T, !1);
|
|
77
|
+
s(this, B, []);
|
|
78
|
+
s(this, p, /* @__PURE__ */ new Map());
|
|
79
|
+
s(this, o, -1);
|
|
80
|
+
s(this, b, 0);
|
|
81
|
+
s(this, D, []);
|
|
82
|
+
s(this, $, (e) => {
|
|
83
|
+
l(this, T, e.isIntersecting), t(this, T) ? c(this, u, U).call(this) : clearInterval(t(this, k));
|
|
48
84
|
});
|
|
49
|
-
|
|
50
|
-
clearInterval(t(this,
|
|
85
|
+
s(this, V, () => {
|
|
86
|
+
clearInterval(t(this, k)), t(this, T) && l(this, k, setInterval(t(this, W), this.autoplayDuration));
|
|
51
87
|
});
|
|
52
|
-
|
|
53
|
-
|
|
88
|
+
s(this, W, () => {
|
|
89
|
+
c(this, u, K).call(this, t(this, o) + 1);
|
|
54
90
|
});
|
|
55
|
-
|
|
56
|
-
if (!t(this,
|
|
91
|
+
s(this, X, (e) => {
|
|
92
|
+
if (!t(this, C).current)
|
|
57
93
|
return;
|
|
58
|
-
let
|
|
59
|
-
|
|
94
|
+
let i = 0;
|
|
95
|
+
bt(
|
|
60
96
|
(r) => {
|
|
61
|
-
const
|
|
62
|
-
t(this,
|
|
97
|
+
const a = e.x - r.x, y = e.y - r.y;
|
|
98
|
+
t(this, C).current === "x" ? Math.abs(a) > Math.abs(y) && Math.abs(a) > 10 && (i = Math.sign(a)) : t(this, C).current === "y" && Math.abs(y) > Math.abs(a) && Math.abs(y) > 10 && (i = Math.sign(y));
|
|
63
99
|
},
|
|
64
100
|
() => {
|
|
65
|
-
|
|
101
|
+
i && this.shift(i);
|
|
66
102
|
}
|
|
67
103
|
);
|
|
68
104
|
});
|
|
69
105
|
}
|
|
70
106
|
get counter() {
|
|
71
|
-
return t(this,
|
|
107
|
+
return t(this, o);
|
|
72
108
|
}
|
|
73
109
|
get loop() {
|
|
74
|
-
return t(this,
|
|
110
|
+
return t(this, S);
|
|
75
111
|
}
|
|
76
112
|
get autoplay() {
|
|
77
|
-
return t(this,
|
|
113
|
+
return t(this, L);
|
|
78
114
|
}
|
|
79
115
|
get autoplayDuration() {
|
|
80
|
-
return parseFloat(t(this,
|
|
116
|
+
return parseFloat(t(this, L).current || "0") * 1e3;
|
|
81
117
|
}
|
|
82
118
|
get swipe() {
|
|
83
|
-
return t(this,
|
|
119
|
+
return t(this, C);
|
|
84
120
|
}
|
|
85
|
-
get
|
|
86
|
-
return t(this,
|
|
121
|
+
get items() {
|
|
122
|
+
return t(this, B);
|
|
87
123
|
}
|
|
88
124
|
get groups() {
|
|
89
|
-
return t(this,
|
|
125
|
+
return t(this, p);
|
|
90
126
|
}
|
|
91
127
|
get length() {
|
|
92
128
|
return t(this, b);
|
|
93
129
|
}
|
|
94
130
|
addItem(e) {
|
|
95
|
-
|
|
131
|
+
const i = new lt(e, this);
|
|
132
|
+
t(this, B).push(i);
|
|
133
|
+
const r = e.getAttribute("data-billboard-item-group") || "default";
|
|
134
|
+
let a = t(this, p).get(r);
|
|
135
|
+
a || (a = [], t(this, p).set(r, a)), a.push(i), c(this, u, dt).call(this);
|
|
96
136
|
}
|
|
97
137
|
set(e) {
|
|
98
|
-
(!this.handleSet || this.handleSet(e)) && (
|
|
138
|
+
(!this.handleSet || this.handleSet(e)) && (c(this, u, K).call(this, e), c(this, u, U).call(this));
|
|
99
139
|
}
|
|
100
140
|
shift(e) {
|
|
101
|
-
this.set(t(this,
|
|
102
|
-
}
|
|
103
|
-
updateItemClasses(e, s) {
|
|
104
|
-
e.classList.remove(
|
|
105
|
-
"current",
|
|
106
|
-
"previous",
|
|
107
|
-
"next",
|
|
108
|
-
"previous-sibling",
|
|
109
|
-
"next-sibling"
|
|
110
|
-
), s === t(this, h) ? e.classList.add("current") : s < t(this, h) ? e.classList.add("previous") : s > t(this, h) && e.classList.add("next"), s === Y(t(this, h) - 1, this.length) ? e.classList.add("previous-sibling") : s === (t(this, h) + 1) % this.length && e.classList.add("next-sibling");
|
|
141
|
+
this.set(t(this, o) + e);
|
|
111
142
|
}
|
|
112
143
|
connectedCallback() {
|
|
113
144
|
[
|
|
114
145
|
...this.querySelectorAll(
|
|
115
146
|
`[data-billboard-item${this.id ? `="${this.id}"` : ""}]`
|
|
116
147
|
)
|
|
117
|
-
].forEach((
|
|
118
|
-
|
|
119
|
-
}), t(this,
|
|
148
|
+
].forEach((i) => {
|
|
149
|
+
this.addItem(i);
|
|
150
|
+
}), t(this, p).forEach((i) => {
|
|
120
151
|
var r;
|
|
121
|
-
(r =
|
|
122
|
-
}), t(this,
|
|
123
|
-
|
|
124
|
-
}), t(this,
|
|
152
|
+
(r = i[0]) == null || r.element.classList.add("current");
|
|
153
|
+
}), t(this, L).subscribe((i) => {
|
|
154
|
+
i.current ? (st.subscribe(this, t(this, $)), c(this, u, U).call(this)) : (l(this, T, !0), st.unsubscribe(t(this, $)), clearInterval(t(this, k)), c(this, u, K).call(this, 0));
|
|
155
|
+
}), t(this, L).observe(), t(this, C).observe(), t(this, S).observe(), t(this, F).observe(), c(this, u, K).call(this, 0), this.addEventListener("pointerdown", t(this, X));
|
|
125
156
|
}
|
|
126
157
|
disconnectedCallback() {
|
|
127
|
-
t(this,
|
|
158
|
+
t(this, L).unobserve(), t(this, C).unobserve(), t(this, S).unobserve(), t(this, F).unobserve(), t(this, B).forEach((e) => e.destroy()), l(this, B, []), t(this, p).clear(), st.unsubscribe(t(this, $)), clearInterval(t(this, k)), t(this, D).forEach((e) => {
|
|
159
|
+
clearTimeout(e);
|
|
160
|
+
});
|
|
128
161
|
}
|
|
129
162
|
}
|
|
130
|
-
|
|
131
|
-
t(this,
|
|
132
|
-
|
|
133
|
-
let r = t(this, m).get(s);
|
|
134
|
-
r || (r = [], t(this, m).set(s, r)), r.push(e), c(this, b, 0), t(this, m).forEach((l) => {
|
|
135
|
-
l.length > t(this, b) && c(this, b, l.length);
|
|
163
|
+
F = new WeakMap(), S = new WeakMap(), L = new WeakMap(), C = new WeakMap(), k = new WeakMap(), T = new WeakMap(), B = new WeakMap(), p = new WeakMap(), o = new WeakMap(), b = new WeakMap(), D = new WeakMap(), u = new WeakSet(), dt = function() {
|
|
164
|
+
l(this, b, 0), t(this, p).forEach((e) => {
|
|
165
|
+
e.length > t(this, b) && l(this, b, e.length);
|
|
136
166
|
});
|
|
137
|
-
},
|
|
138
|
-
t(this,
|
|
139
|
-
},
|
|
140
|
-
return
|
|
141
|
-
const
|
|
142
|
-
t(this,
|
|
143
|
-
|
|
144
|
-
t(this,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
const v = u.classList.contains("visited");
|
|
148
|
-
k === t(this, h) && !v ? (u.classList.add("visited"), r.push(
|
|
149
|
-
new Promise(($) => {
|
|
150
|
-
setTimeout(() => {
|
|
151
|
-
this.updateItemClasses(u, k), $();
|
|
152
|
-
}, 10);
|
|
153
|
-
})
|
|
154
|
-
)) : this.updateItemClasses(u, k);
|
|
155
|
-
} else
|
|
156
|
-
this.updateItemClasses(u, k);
|
|
167
|
+
}, U = function() {
|
|
168
|
+
t(this, L).current !== !1 && t(this, V).call(this);
|
|
169
|
+
}, $ = new WeakMap(), V = new WeakMap(), K = function() {
|
|
170
|
+
return P(this, arguments, function* (e = t(this, o)) {
|
|
171
|
+
const i = t(this, o);
|
|
172
|
+
t(this, S).current ? l(this, o, ht(e, t(this, b))) : l(this, o, mt(e, 0, t(this, b) - 1)), i !== t(this, o) && (t(this, D).forEach((r) => {
|
|
173
|
+
clearTimeout(r);
|
|
174
|
+
}), this.classList.remove("forward", "backward", "next-round", "prev-round"), t(this, o) - i >= 0 ? this.classList.add("forward") : t(this, o) - i < 0 && this.classList.add("backward"), t(this, p).forEach((r) => {
|
|
175
|
+
r.forEach((a, y) => {
|
|
176
|
+
a.updateClasses(y);
|
|
157
177
|
});
|
|
158
|
-
}),
|
|
178
|
+
}), this.classList.toggle("has-length", t(this, b) > 1), this.classList.toggle("start", t(this, o) === 0), this.classList.toggle("end", t(this, o) === t(this, b) - 1), this.style.setProperty("--counter", t(this, o).toString()), this.style.setProperty("--sections", t(this, b).toString()), ut(this, "billboardChange", {
|
|
159
179
|
detail: {
|
|
160
|
-
counter: t(this,
|
|
180
|
+
counter: t(this, o)
|
|
161
181
|
}
|
|
162
|
-
}), t(this,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
182
|
+
}), t(this, F).current && t(this, D).push(
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
window.dispatchEvent(new Event("resize"));
|
|
185
|
+
}, 0)
|
|
186
|
+
), t(this, D).push(
|
|
187
|
+
setTimeout(() => {
|
|
188
|
+
this.classList.remove("next-round", "prev-round");
|
|
189
|
+
}, 10)
|
|
190
|
+
));
|
|
167
191
|
});
|
|
168
|
-
},
|
|
169
|
-
customElements.get("e-billboard") || customElements.define("e-billboard",
|
|
170
|
-
var
|
|
171
|
-
class
|
|
192
|
+
}, W = new WeakMap(), X = new WeakMap();
|
|
193
|
+
customElements.get("e-billboard") || customElements.define("e-billboard", R);
|
|
194
|
+
var g, q, v, Q, N;
|
|
195
|
+
class ft extends HTMLElement {
|
|
172
196
|
constructor() {
|
|
173
197
|
super(...arguments);
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
r >= 0 && t(this,
|
|
198
|
+
s(this, g, null);
|
|
199
|
+
s(this, q, null);
|
|
200
|
+
s(this, v, []);
|
|
201
|
+
s(this, Q, (e) => {
|
|
202
|
+
const i = e.currentTarget, r = t(this, v).findIndex((a) => a === i);
|
|
203
|
+
r >= 0 && t(this, g).set(r);
|
|
180
204
|
});
|
|
181
|
-
|
|
182
|
-
t(this,
|
|
183
|
-
|
|
205
|
+
s(this, N, () => {
|
|
206
|
+
t(this, v).forEach((e, i) => {
|
|
207
|
+
i === t(this, g).counter ? e.classList.add("current") : e.classList.remove("current");
|
|
184
208
|
});
|
|
185
209
|
});
|
|
186
210
|
}
|
|
187
211
|
get buttonElements() {
|
|
188
|
-
return t(this,
|
|
212
|
+
return t(this, v);
|
|
189
213
|
}
|
|
190
214
|
connectedCallback() {
|
|
191
|
-
return
|
|
215
|
+
return P(this, null, function* () {
|
|
192
216
|
var e;
|
|
193
|
-
if (yield
|
|
217
|
+
if (yield nt("e-billboard"), l(this, g, Z(this, R)), t(this, g) && this.isConnected) {
|
|
194
218
|
this.innerHTML = "";
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
for (let r = 0; r <
|
|
198
|
-
const
|
|
199
|
-
|
|
219
|
+
const i = t(this, g).length;
|
|
220
|
+
l(this, q, document.createElement("div"));
|
|
221
|
+
for (let r = 0; r < i; r++) {
|
|
222
|
+
const a = document.createElement("button");
|
|
223
|
+
a.setAttribute("aria-label", `Go to item ${r + 1}`), t(this, v).push(a), t(this, q).appendChild(a);
|
|
200
224
|
}
|
|
201
|
-
this.appendChild(t(this,
|
|
202
|
-
r.addEventListener("click", t(this,
|
|
203
|
-
}), (e = t(this,
|
|
225
|
+
this.appendChild(t(this, q)), t(this, v).forEach((r) => {
|
|
226
|
+
r.addEventListener("click", t(this, Q));
|
|
227
|
+
}), (e = t(this, g)) == null || e.addEventListener(
|
|
204
228
|
"billboardChange",
|
|
205
|
-
t(this,
|
|
206
|
-
), t(this,
|
|
229
|
+
t(this, N)
|
|
230
|
+
), t(this, N).call(this);
|
|
207
231
|
}
|
|
208
232
|
});
|
|
209
233
|
}
|
|
210
234
|
disconnectedCallback() {
|
|
211
235
|
var e;
|
|
212
|
-
t(this,
|
|
213
|
-
|
|
214
|
-
}), (e = t(this,
|
|
236
|
+
t(this, v).forEach((i) => {
|
|
237
|
+
i.removeEventListener("click", t(this, Q));
|
|
238
|
+
}), (e = t(this, g)) == null || e.removeEventListener(
|
|
215
239
|
"billboardChange",
|
|
216
|
-
t(this,
|
|
217
|
-
), this.innerHTML = "",
|
|
240
|
+
t(this, N)
|
|
241
|
+
), this.innerHTML = "", l(this, v, []);
|
|
218
242
|
}
|
|
219
243
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
var
|
|
223
|
-
class
|
|
244
|
+
g = new WeakMap(), q = new WeakMap(), v = new WeakMap(), Q = new WeakMap(), N = new WeakMap();
|
|
245
|
+
Y && !customElements.get("e-billboard-bullets") && customElements.define("e-billboard-bullets", ft);
|
|
246
|
+
var H, G;
|
|
247
|
+
class pt extends HTMLElement {
|
|
224
248
|
constructor() {
|
|
225
|
-
super();
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
249
|
+
super(...arguments);
|
|
250
|
+
s(this, H, null);
|
|
251
|
+
s(this, G, () => {
|
|
252
|
+
var r;
|
|
253
|
+
const e = (((r = t(this, H)) == null ? void 0 : r.counter) || 0) + 1, i = parseInt(this.getAttribute("pad") || "0");
|
|
254
|
+
this.textContent = e.toString().padStart(i, "0");
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
connectedCallback() {
|
|
258
|
+
return P(this, null, function* () {
|
|
229
259
|
var e;
|
|
230
|
-
(e = t(this,
|
|
260
|
+
yield nt("e-billboard"), l(this, H, Z(this, R)), (e = t(this, H)) == null || e.addEventListener(
|
|
261
|
+
"billboardChange",
|
|
262
|
+
t(this, G)
|
|
263
|
+
), t(this, G).call(this);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
disconnectedCallback() {
|
|
267
|
+
var e;
|
|
268
|
+
(e = t(this, H)) == null || e.removeEventListener(
|
|
269
|
+
"billboardChange",
|
|
270
|
+
t(this, G)
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
H = new WeakMap(), G = new WeakMap();
|
|
275
|
+
Y && !customElements.get("e-billboard-counter") && customElements.define("e-billboard-counter", pt);
|
|
276
|
+
var j, w, E, x;
|
|
277
|
+
class gt extends HTMLElement {
|
|
278
|
+
constructor() {
|
|
279
|
+
super();
|
|
280
|
+
s(this, j, null);
|
|
281
|
+
s(this, w, new z(this, "--index", 0));
|
|
282
|
+
s(this, E, null);
|
|
283
|
+
s(this, x, () => {
|
|
284
|
+
t(this, j).updateClasses(t(this, w).current);
|
|
231
285
|
});
|
|
232
286
|
this.addEventListener("click", (e) => {
|
|
233
|
-
t(this,
|
|
287
|
+
t(this, E) && (!this.handleClick || this.handleClick(e)) && t(this, E).set(t(this, w).current);
|
|
234
288
|
}), this.addEventListener("keydown", (e) => {
|
|
235
289
|
e.code === "Space" && !this.hasAttribute("keydown-disabled") && (e.preventDefault(), this.click());
|
|
236
290
|
});
|
|
237
291
|
}
|
|
238
292
|
connectedCallback() {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}), t(this, w).subscribe(t(this, y)), t(this, w).observe();
|
|
293
|
+
return P(this, null, function* () {
|
|
294
|
+
yield nt("e-billboard"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), l(this, E, Z(this, R)), t(this, E) && (l(this, j, new lt(this, t(this, E))), t(this, E).addEventListener(
|
|
295
|
+
"billboardChange",
|
|
296
|
+
t(this, x)
|
|
297
|
+
), t(this, x).call(this), t(this, w).subscribe(t(this, x)), t(this, w).observe());
|
|
298
|
+
});
|
|
246
299
|
}
|
|
247
300
|
disconnectedCallback() {
|
|
248
301
|
var e;
|
|
249
|
-
this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, w).unsubscribe(t(this,
|
|
302
|
+
this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, w).unsubscribe(t(this, x)), t(this, w).unobserve(), (e = t(this, E)) == null || e.removeEventListener(
|
|
250
303
|
"billboardChange",
|
|
251
|
-
t(this,
|
|
252
|
-
);
|
|
304
|
+
t(this, x)
|
|
305
|
+
), t(this, j).destroy();
|
|
253
306
|
}
|
|
254
307
|
}
|
|
255
|
-
w = new WeakMap(),
|
|
256
|
-
|
|
257
|
-
var A, d,
|
|
258
|
-
class
|
|
308
|
+
j = new WeakMap(), w = new WeakMap(), E = new WeakMap(), x = new WeakMap();
|
|
309
|
+
Y && !customElements.get("e-billboard-set-button") && customElements.define("e-billboard-set-button", gt);
|
|
310
|
+
var A, d, J;
|
|
311
|
+
class vt extends HTMLElement {
|
|
259
312
|
constructor() {
|
|
260
313
|
super();
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
314
|
+
s(this, A, new z(this, "--step", 1));
|
|
315
|
+
s(this, d, null);
|
|
316
|
+
s(this, J, () => {
|
|
264
317
|
t(this, d) && (!t(this, d).loop.current && (t(this, d).counter === 0 && t(this, A).current <= 0 || t(this, d).counter === t(this, d).length - 1 && t(this, A).current >= 0) ? this.setAttribute("disabled", "") : this.removeAttribute("disabled"));
|
|
265
318
|
});
|
|
266
319
|
this.addEventListener("click", (e) => {
|
|
@@ -270,13 +323,13 @@ class rt extends HTMLElement {
|
|
|
270
323
|
});
|
|
271
324
|
}
|
|
272
325
|
connectedCallback() {
|
|
273
|
-
return
|
|
326
|
+
return P(this, null, function* () {
|
|
274
327
|
var e;
|
|
275
|
-
yield customElements.whenDefined("e-billboard"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, A).observe(), this.tabIndex = 0,
|
|
328
|
+
yield customElements.whenDefined("e-billboard"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, A).observe(), this.tabIndex = 0, l(this, d, Z(this, R)), (e = t(this, d)) == null || e.addEventListener(
|
|
276
329
|
"billboardChange",
|
|
277
|
-
t(this,
|
|
330
|
+
t(this, J)
|
|
278
331
|
), setTimeout(() => {
|
|
279
|
-
t(this,
|
|
332
|
+
t(this, J).call(this);
|
|
280
333
|
}, 0);
|
|
281
334
|
});
|
|
282
335
|
}
|
|
@@ -284,15 +337,16 @@ class rt extends HTMLElement {
|
|
|
284
337
|
var e;
|
|
285
338
|
this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, A).unobserve(), (e = t(this, d)) == null || e.removeEventListener(
|
|
286
339
|
"billboardChange",
|
|
287
|
-
t(this,
|
|
340
|
+
t(this, J)
|
|
288
341
|
);
|
|
289
342
|
}
|
|
290
343
|
}
|
|
291
|
-
A = new WeakMap(), d = new WeakMap(),
|
|
292
|
-
|
|
344
|
+
A = new WeakMap(), d = new WeakMap(), J = new WeakMap();
|
|
345
|
+
Y && !customElements.get("e-billboard-step-button") && customElements.define("e-billboard-step-button", vt);
|
|
293
346
|
export {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
347
|
+
ft as BillboardBulletsElement,
|
|
348
|
+
pt as BillboardCounterElement,
|
|
349
|
+
R as BillboardElement,
|
|
350
|
+
gt as BillboardSetButtonElement,
|
|
351
|
+
vt as BillboardStepButtonElement
|
|
298
352
|
};
|