aptechka 0.57.0 → 0.57.2
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/index.cjs +1 -1
- package/lib/billboard/index.js +116 -114
- package/package.json +1 -1
package/lib/billboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var J=s=>{throw TypeError(s)};var O=(s,r,e)=>r.has(s)||J("Cannot "+e);var t=(s,r,e)=>(O(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>r.has(s)?J("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),a=(s,r,e,i)=>(O(s,r,"write to private field"),i?i.call(s,e):r.set(s,e),e),b=(s,r,e)=>(O(s,r,"access private method"),e);var K=(s,r,e)=>new Promise((i,l)=>{var d=C=>{try{F(e.next(C))}catch(N){l(N)}},P=C=>{try{F(e.throw(C))}catch(N){l(N)}},F=C=>C.done?i(C.value):Promise.resolve(C.value).then(d,P);F((e=e.apply(s,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../index-Cqw2NKev.cjs"),G=require("../dom-JBOkFLTh.cjs"),q=require("../css-property/index.cjs"),V=require("../events-KVanG9sR.cjs"),W=require("../gestures-C7gbKx11.cjs"),X=require("../math-GDWEqu7y.cjs"),Y=require("../number-DyefJ5a1.cjs");var k,p,v,L,x,c,o,h,$,H,w,_,D,j,z;class A extends HTMLElement{constructor(){super(...arguments);n(this,h);n(this,k,new q.CSSProperty(this,"--loop",!0));n(this,p,new q.CSSProperty(this,"--autoplay",!1));n(this,v,new q.CSSProperty(this,"--swipe","x"));n(this,L);n(this,x,!1);n(this,c,[]);n(this,o,0);n(this,w,e=>{a(this,x,e.isIntersecting),t(this,x)?b(this,h,H).call(this):clearInterval(t(this,L))});n(this,_,()=>{clearInterval(t(this,L)),t(this,x)&&a(this,L,setInterval(t(this,j),parseFloat(t(this,p).current||"0")*1e3))});n(this,j,()=>{b(this,h,D).call(this,t(this,o)+1)});n(this,z,e=>{if(!t(this,v).current)return;let i=0;W.setupDrag(l=>{const d=e.x-l.x,P=e.y-l.y;t(this,v).current==="x"?Math.abs(d)>Math.abs(P)&&(i=Math.sign(d)):t(this,v).current==="y"&&Math.abs(P)>Math.abs(d)&&(i=Math.sign(P))},()=>{this.shift(i)})})}get counter(){return t(this,o)}get itemElements(){return t(this,c)}addItem(e){t(this,c).push(e),b(this,h,$).call(this)}set(e){(!this.handleSet||this.handleSet(e))&&(b(this,h,D).call(this,e),b(this,h,H).call(this))}shift(e){this.set(t(this,o)+e)}connectedCallback(){var e;a(this,c,[...this.querySelectorAll(`[data-billboard-item="${this.id||""}"]`)]),(e=t(this,c)[0])==null||e.classList.add("current"),b(this,h,$).call(this),t(this,p).subscribe(i=>{i.current?(S.intersector.subscribe(this,t(this,w)),b(this,h,H).call(this)):(a(this,x,!0),S.intersector.unsubscribe(t(this,w)),clearInterval(t(this,L)),b(this,h,D).call(this,0))}),t(this,p).observe(),t(this,v).observe(),t(this,k).observe(),this.addEventListener("pointerdown",t(this,z))}disconnectedCallback(){t(this,p).unobserve(),t(this,v).unobserve(),t(this,k).unobserve(),S.intersector.unsubscribe(t(this,w)),clearInterval(t(this,L))}}k=new WeakMap,p=new WeakMap,v=new WeakMap,L=new WeakMap,x=new WeakMap,c=new WeakMap,o=new WeakMap,h=new WeakSet,$=function(){t(this,c).length>1?this.classList.add("has-length"):this.classList.remove("has-length")},H=function(){t(this,p).current!==!1&&t(this,_).call(this)},w=new WeakMap,_=new WeakMap,D=function(e){t(this,k).current?a(this,o,Y.loopNumber(e,t(this,c).length)):a(this,o,X.clamp(e,0,t(this,c).length-1)),t(this,c).forEach((i,l)=>{i.classList.remove("current","previous","next"),l===t(this,o)?i.classList.add("current"):l<t(this,o)?i.classList.add("previous"):l>t(this,o)&&i.classList.add("next")}),V.dispatchEvent(this,"billboardChange",{detail:{counter:t(this,o)}}),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0)},j=new WeakMap,z=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",A);var u,y,m,T,B;class Q extends HTMLElement{constructor(){super(...arguments);n(this,u,null);n(this,y,null);n(this,m,[]);n(this,T,e=>{const i=e.currentTarget,l=t(this,m).findIndex(d=>d===i);l>=0&&t(this,u).set(l)});n(this,B,()=>{t(this,m).forEach((e,i)=>{i===t(this,u).counter?e.classList.add("current"):e.classList.remove("current")})})}connectedCallback(){return K(this,null,function*(){var e;if(a(this,u,G.findParentElement(this,A)),t(this,u)&&(yield customElements.whenDefined("e-billboard"),this.isConnected)){const i=t(this,u).itemElements.length;a(this,y,document.createElement("div"));for(let l=0;l<i;l++){const d=document.createElement("button");t(this,m).push(d),t(this,y).appendChild(d)}this.appendChild(t(this,y)),t(this,m).forEach(l=>{l.addEventListener("click",t(this,T))}),(e=t(this,u))==null||e.addEventListener("billboardChange",t(this,B)),t(this,B).call(this)}})}disconnectedCallback(){var e;t(this,m).forEach(i=>{i.removeEventListener("click",t(this,T))}),(e=t(this,u))==null||e.removeEventListener("billboardChange",t(this,B)),this.innerHTML="",a(this,m,[])}}u=new WeakMap,y=new WeakMap,m=new WeakMap,T=new WeakMap,B=new WeakMap;S.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",Q);var f,E,g;class R extends HTMLElement{constructor(){super();n(this,f,new q.CSSProperty(this,"--index",0));n(this,E,null);n(this,g,()=>{var e;t(this,f).current===((e=t(this,E))==null?void 0:e.counter)?this.classList.add("current"):this.classList.remove("current")});this.addEventListener("click",e=>{t(this,E)&&(!this.handleClick||this.handleClick(e))&&t(this,E).set(t(this,f).current)})}connectedCallback(){var e;this.tabIndex=0,a(this,E,G.findParentElement(this,A)),(e=t(this,E))==null||e.addEventListener("billboardChange",t(this,g)),customElements.whenDefined("e-billboard").then(()=>{this.isConnected&&t(this,g).call(this)}),t(this,f).subscribe(t(this,g)),t(this,f).observe()}disconnectedCallback(){var e;this.removeAttribute("tabindex"),t(this,f).unsubscribe(t(this,g)),t(this,f).unobserve(),(e=t(this,E))==null||e.removeEventListener("billboardChange",t(this,g))}}f=new WeakMap,E=new WeakMap,g=new WeakMap;S.isBrowser&&!customElements.get("e-billboard-set-button")&&customElements.define("e-billboard-set-button",R);var I,M;class U extends HTMLElement{constructor(){super();n(this,I,new q.CSSProperty(this,"--step",1));n(this,M,null);this.addEventListener("click",e=>{t(this,M)&&(!this.handleClick||this.handleClick(e))&&t(this,M).shift(t(this,I).current)})}connectedCallback(){this.tabIndex=0,a(this,M,G.findParentElement(this,A)),t(this,I).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),t(this,I).unobserve()}}I=new WeakMap,M=new WeakMap;S.isBrowser&&!customElements.get("e-billboard-step-button")&&customElements.define("e-billboard-step-button",U);exports.BillboardBulletsElement=Q;exports.BillboardElement=A;exports.BillboardSetButtonElement=R;exports.BillboardStepButtonElement=U;
|
package/lib/billboard/index.js
CHANGED
|
@@ -1,82 +1,84 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Q = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var t = (s, l, e) => (
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var j = (s, l, e) => l.has(s) || Q("Cannot " + e);
|
|
5
|
+
var t = (s, l, e) => (j(s, l, "read from private field"), e ? e.call(s) : l.get(s)), n = (s, l, e) => l.has(s) ? Q("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(s) : l.set(s, e), a = (s, l, e, i) => (j(s, l, "write to private field"), i ? i.call(s, e) : l.set(s, e), e), u = (s, l, e) => (j(s, l, "access private method"), e);
|
|
6
|
+
var R = (s, l, e) => new Promise((i, r) => {
|
|
7
|
+
var d = (C) => {
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
} catch (
|
|
11
|
-
r(
|
|
9
|
+
N(e.next(C));
|
|
10
|
+
} catch ($) {
|
|
11
|
+
r($);
|
|
12
12
|
}
|
|
13
|
-
},
|
|
13
|
+
}, S = (C) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
r(
|
|
15
|
+
N(e.throw(C));
|
|
16
|
+
} catch ($) {
|
|
17
|
+
r($);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
}, N = (C) => C.done ? i(C.value) : Promise.resolve(C.value).then(d, S);
|
|
20
|
+
N((e = e.apply(s, l)).next());
|
|
21
21
|
});
|
|
22
|
-
import { a as
|
|
23
|
-
import { b as
|
|
24
|
-
import { CSSProperty as
|
|
25
|
-
import { d as
|
|
26
|
-
import { s as
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
import { a as G, i as K } from "../index-euf5anj6.js";
|
|
23
|
+
import { b as O } from "../dom-CVWzyXPH.js";
|
|
24
|
+
import { CSSProperty as T } from "../css-property/index.js";
|
|
25
|
+
import { d as U } from "../events-CsVF98U6.js";
|
|
26
|
+
import { s as V } from "../gestures-CcXV6fCp.js";
|
|
27
|
+
import { c as W } from "../math-BOBiC4TN.js";
|
|
28
|
+
import { l as X } from "../number-CbdpfO3u.js";
|
|
29
|
+
var k, E, v, L, x, o, c, h, J, H, w, P, D, q, z;
|
|
30
|
+
class F extends HTMLElement {
|
|
30
31
|
constructor() {
|
|
31
32
|
super(...arguments);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
n(this, h);
|
|
34
|
+
n(this, k, new T(this, "--loop", !0));
|
|
35
|
+
n(this, E, new T(this, "--autoplay", !1));
|
|
36
|
+
n(this, v, new T(this, "--swipe", "x"));
|
|
37
|
+
n(this, L);
|
|
38
|
+
n(this, x, !1);
|
|
39
|
+
n(this, o, []);
|
|
40
|
+
n(this, c, 0);
|
|
41
|
+
n(this, w, (e) => {
|
|
42
|
+
a(this, x, e.isIntersecting), t(this, x) ? u(this, h, H).call(this) : clearInterval(t(this, L));
|
|
41
43
|
});
|
|
42
|
-
|
|
43
|
-
clearInterval(t(this, L)), t(this,
|
|
44
|
-
t(this,
|
|
45
|
-
parseFloat(t(this,
|
|
44
|
+
n(this, P, () => {
|
|
45
|
+
clearInterval(t(this, L)), t(this, x) && a(this, L, setInterval(
|
|
46
|
+
t(this, q),
|
|
47
|
+
parseFloat(t(this, E).current || "0") * 1e3
|
|
46
48
|
));
|
|
47
49
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
n(this, q, () => {
|
|
51
|
+
u(this, h, D).call(this, t(this, c) + 1);
|
|
50
52
|
});
|
|
51
|
-
|
|
53
|
+
n(this, z, (e) => {
|
|
52
54
|
if (!t(this, v).current)
|
|
53
55
|
return;
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
+
let i = 0;
|
|
57
|
+
V(
|
|
56
58
|
(r) => {
|
|
57
|
-
const
|
|
58
|
-
t(this, v).current === "x" ? Math.abs(
|
|
59
|
+
const d = e.x - r.x, S = e.y - r.y;
|
|
60
|
+
t(this, v).current === "x" ? Math.abs(d) > Math.abs(S) && (i = Math.sign(d)) : t(this, v).current === "y" && Math.abs(S) > Math.abs(d) && (i = Math.sign(S));
|
|
59
61
|
},
|
|
60
62
|
() => {
|
|
61
|
-
this.shift(
|
|
63
|
+
this.shift(i);
|
|
62
64
|
}
|
|
63
65
|
);
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
get counter() {
|
|
67
|
-
return t(this,
|
|
69
|
+
return t(this, c);
|
|
68
70
|
}
|
|
69
71
|
get itemElements() {
|
|
70
72
|
return t(this, o);
|
|
71
73
|
}
|
|
72
74
|
addItem(e) {
|
|
73
|
-
t(this, o).push(e),
|
|
75
|
+
t(this, o).push(e), u(this, h, J).call(this);
|
|
74
76
|
}
|
|
75
77
|
set(e) {
|
|
76
|
-
(!this.handleSet || this.handleSet(e)) && (
|
|
78
|
+
(!this.handleSet || this.handleSet(e)) && (u(this, h, D).call(this, e), u(this, h, H).call(this));
|
|
77
79
|
}
|
|
78
80
|
shift(e) {
|
|
79
|
-
this.set(t(this,
|
|
81
|
+
this.set(t(this, c) + e);
|
|
80
82
|
}
|
|
81
83
|
connectedCallback() {
|
|
82
84
|
var e;
|
|
@@ -84,95 +86,95 @@ class z extends HTMLElement {
|
|
|
84
86
|
...this.querySelectorAll(
|
|
85
87
|
`[data-billboard-item="${this.id || ""}"]`
|
|
86
88
|
)
|
|
87
|
-
]), (e = t(this, o)[0]) == null || e.classList.add("current"),
|
|
88
|
-
|
|
89
|
-
}), t(this,
|
|
89
|
+
]), (e = t(this, o)[0]) == null || e.classList.add("current"), u(this, h, J).call(this), t(this, E).subscribe((i) => {
|
|
90
|
+
i.current ? (G.subscribe(this, t(this, w)), u(this, h, H).call(this)) : (a(this, x, !0), G.unsubscribe(t(this, w)), clearInterval(t(this, L)), u(this, h, D).call(this, 0));
|
|
91
|
+
}), t(this, E).observe(), t(this, v).observe(), t(this, k).observe(), this.addEventListener("pointerdown", t(this, z));
|
|
90
92
|
}
|
|
91
93
|
disconnectedCallback() {
|
|
92
|
-
t(this,
|
|
94
|
+
t(this, E).unobserve(), t(this, v).unobserve(), t(this, k).unobserve(), G.unsubscribe(t(this, w)), clearInterval(t(this, L));
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
|
-
|
|
97
|
+
k = new WeakMap(), E = new WeakMap(), v = new WeakMap(), L = new WeakMap(), x = new WeakMap(), o = new WeakMap(), c = new WeakMap(), h = new WeakSet(), J = function() {
|
|
96
98
|
t(this, o).length > 1 ? this.classList.add("has-length") : this.classList.remove("has-length");
|
|
97
|
-
},
|
|
98
|
-
t(this,
|
|
99
|
-
},
|
|
100
|
-
a(this,
|
|
101
|
-
r === t(this,
|
|
102
|
-
}),
|
|
99
|
+
}, H = function() {
|
|
100
|
+
t(this, E).current !== !1 && t(this, P).call(this);
|
|
101
|
+
}, w = new WeakMap(), P = new WeakMap(), D = function(e) {
|
|
102
|
+
t(this, k).current ? a(this, c, X(e, t(this, o).length)) : a(this, c, W(e, 0, t(this, o).length - 1)), t(this, o).forEach((i, r) => {
|
|
103
|
+
i.classList.remove("current", "previous", "next"), r === t(this, c) ? i.classList.add("current") : r < t(this, c) ? i.classList.add("previous") : r > t(this, c) && i.classList.add("next");
|
|
104
|
+
}), U(this, "billboardChange", {
|
|
103
105
|
detail: {
|
|
104
|
-
counter: t(this,
|
|
106
|
+
counter: t(this, c)
|
|
105
107
|
}
|
|
106
108
|
}), setTimeout(() => {
|
|
107
109
|
window.dispatchEvent(new Event("resize"));
|
|
108
110
|
}, 0);
|
|
109
|
-
},
|
|
110
|
-
customElements.get("e-billboard") || customElements.define("e-billboard",
|
|
111
|
-
var
|
|
112
|
-
class
|
|
111
|
+
}, q = new WeakMap(), z = new WeakMap();
|
|
112
|
+
customElements.get("e-billboard") || customElements.define("e-billboard", F);
|
|
113
|
+
var b, I, m, A, y;
|
|
114
|
+
class Y extends HTMLElement {
|
|
113
115
|
constructor() {
|
|
114
116
|
super(...arguments);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
r >= 0 && t(this,
|
|
117
|
+
n(this, b, null);
|
|
118
|
+
n(this, I, null);
|
|
119
|
+
n(this, m, []);
|
|
120
|
+
n(this, A, (e) => {
|
|
121
|
+
const i = e.currentTarget, r = t(this, m).findIndex((d) => d === i);
|
|
122
|
+
r >= 0 && t(this, b).set(r);
|
|
121
123
|
});
|
|
122
|
-
|
|
123
|
-
t(this, m).forEach((e,
|
|
124
|
-
|
|
124
|
+
n(this, y, () => {
|
|
125
|
+
t(this, m).forEach((e, i) => {
|
|
126
|
+
i === t(this, b).counter ? e.classList.add("current") : e.classList.remove("current");
|
|
125
127
|
});
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
130
|
connectedCallback() {
|
|
129
|
-
return
|
|
131
|
+
return R(this, null, function* () {
|
|
130
132
|
var e;
|
|
131
|
-
if (a(this,
|
|
132
|
-
const
|
|
133
|
-
a(this,
|
|
134
|
-
for (let r = 0; r <
|
|
135
|
-
const
|
|
136
|
-
t(this, m).push(
|
|
133
|
+
if (a(this, b, O(this, F)), t(this, b) && (yield customElements.whenDefined("e-billboard"), this.isConnected)) {
|
|
134
|
+
const i = t(this, b).itemElements.length;
|
|
135
|
+
a(this, I, document.createElement("div"));
|
|
136
|
+
for (let r = 0; r < i; r++) {
|
|
137
|
+
const d = document.createElement("button");
|
|
138
|
+
t(this, m).push(d), t(this, I).appendChild(d);
|
|
137
139
|
}
|
|
138
|
-
this.appendChild(t(this,
|
|
139
|
-
r.addEventListener("click", t(this,
|
|
140
|
-
}), (e = t(this,
|
|
140
|
+
this.appendChild(t(this, I)), t(this, m).forEach((r) => {
|
|
141
|
+
r.addEventListener("click", t(this, A));
|
|
142
|
+
}), (e = t(this, b)) == null || e.addEventListener(
|
|
141
143
|
"billboardChange",
|
|
142
|
-
t(this,
|
|
143
|
-
), t(this,
|
|
144
|
+
t(this, y)
|
|
145
|
+
), t(this, y).call(this);
|
|
144
146
|
}
|
|
145
147
|
});
|
|
146
148
|
}
|
|
147
149
|
disconnectedCallback() {
|
|
148
150
|
var e;
|
|
149
|
-
t(this, m).forEach((
|
|
150
|
-
|
|
151
|
-
}), (e = t(this,
|
|
151
|
+
t(this, m).forEach((i) => {
|
|
152
|
+
i.removeEventListener("click", t(this, A));
|
|
153
|
+
}), (e = t(this, b)) == null || e.removeEventListener(
|
|
152
154
|
"billboardChange",
|
|
153
|
-
t(this,
|
|
155
|
+
t(this, y)
|
|
154
156
|
), this.innerHTML = "", a(this, m, []);
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
var f,
|
|
160
|
-
class
|
|
159
|
+
b = new WeakMap(), I = new WeakMap(), m = new WeakMap(), A = new WeakMap(), y = new WeakMap();
|
|
160
|
+
K && !customElements.get("e-billboard-bullets") && customElements.define("e-billboard-bullets", Y);
|
|
161
|
+
var f, p, g;
|
|
162
|
+
class Z extends HTMLElement {
|
|
161
163
|
constructor() {
|
|
162
164
|
super();
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
n(this, f, new T(this, "--index", 0));
|
|
166
|
+
n(this, p, null);
|
|
167
|
+
n(this, g, () => {
|
|
166
168
|
var e;
|
|
167
|
-
t(this, f).current === ((e = t(this,
|
|
169
|
+
t(this, f).current === ((e = t(this, p)) == null ? void 0 : e.counter) ? this.classList.add("current") : this.classList.remove("current");
|
|
168
170
|
});
|
|
169
171
|
this.addEventListener("click", (e) => {
|
|
170
|
-
t(this,
|
|
172
|
+
t(this, p) && (!this.handleClick || this.handleClick(e)) && t(this, p).set(t(this, f).current);
|
|
171
173
|
});
|
|
172
174
|
}
|
|
173
175
|
connectedCallback() {
|
|
174
176
|
var e;
|
|
175
|
-
this.tabIndex = 0, a(this,
|
|
177
|
+
this.tabIndex = 0, a(this, p, O(this, F)), (e = t(this, p)) == null || e.addEventListener(
|
|
176
178
|
"billboardChange",
|
|
177
179
|
t(this, g)
|
|
178
180
|
), customElements.whenDefined("e-billboard").then(() => {
|
|
@@ -181,36 +183,36 @@ class X extends HTMLElement {
|
|
|
181
183
|
}
|
|
182
184
|
disconnectedCallback() {
|
|
183
185
|
var e;
|
|
184
|
-
this.removeAttribute("tabindex"), t(this, f).unsubscribe(t(this, g)), t(this, f).unobserve(), (e = t(this,
|
|
186
|
+
this.removeAttribute("tabindex"), t(this, f).unsubscribe(t(this, g)), t(this, f).unobserve(), (e = t(this, p)) == null || e.removeEventListener(
|
|
185
187
|
"billboardChange",
|
|
186
188
|
t(this, g)
|
|
187
189
|
);
|
|
188
190
|
}
|
|
189
191
|
}
|
|
190
|
-
f = new WeakMap(),
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
class
|
|
192
|
+
f = new WeakMap(), p = new WeakMap(), g = new WeakMap();
|
|
193
|
+
K && !customElements.get("e-billboard-set-button") && customElements.define("e-billboard-set-button", Z);
|
|
194
|
+
var M, B;
|
|
195
|
+
class _ extends HTMLElement {
|
|
194
196
|
constructor() {
|
|
195
197
|
super();
|
|
196
|
-
|
|
197
|
-
|
|
198
|
+
n(this, M, new T(this, "--step", 1));
|
|
199
|
+
n(this, B, null);
|
|
198
200
|
this.addEventListener("click", (e) => {
|
|
199
|
-
t(this,
|
|
201
|
+
t(this, B) && (!this.handleClick || this.handleClick(e)) && t(this, B).shift(t(this, M).current);
|
|
200
202
|
});
|
|
201
203
|
}
|
|
202
204
|
connectedCallback() {
|
|
203
|
-
this.tabIndex = 0, a(this,
|
|
205
|
+
this.tabIndex = 0, a(this, B, O(this, F)), t(this, M).observe();
|
|
204
206
|
}
|
|
205
207
|
disconnectedCallback() {
|
|
206
|
-
this.removeAttribute("tabindex"), t(this,
|
|
208
|
+
this.removeAttribute("tabindex"), t(this, M).unobserve();
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
M = new WeakMap(), B = new WeakMap();
|
|
212
|
+
K && !customElements.get("e-billboard-step-button") && customElements.define("e-billboard-step-button", _);
|
|
211
213
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
Y as BillboardBulletsElement,
|
|
215
|
+
F as BillboardElement,
|
|
216
|
+
Z as BillboardSetButtonElement,
|
|
217
|
+
_ as BillboardStepButtonElement
|
|
216
218
|
};
|