aptechka 0.50.27 → 0.51.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/lib/{Animation-FtUeV8dp.js → Animation-eO5_LIJl.js} +1 -1
- package/lib/{Animation-ChZNIOTS.cjs → Animation-rTojHgyz.cjs} +1 -1
- package/lib/{Damped-B1lXa9nb.cjs → Damped-DgAIjXp3.cjs} +1 -1
- package/lib/{Damped-BXsGpI-B.js → Damped-GyAS-U-z.js} +1 -1
- package/lib/Store-GokLe_g-.cjs +1 -0
- package/lib/Store-swP_0ymB.js +134 -0
- package/lib/{Tweened-BhDWLNF0.js → Tweened-BSC-evuL.js} +1 -1
- package/lib/{Tweened-cJ36zq1A.cjs → Tweened-DpJDlbj9.cjs} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +1 -1
- package/lib/attribute/index.js +27 -27
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/css-property/index.js +28 -28
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +1 -1
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +1 -1
- package/lib/notifier/index.cjs +1 -1
- package/lib/notifier/index.d.ts +6 -0
- package/lib/notifier/index.js +21 -15
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +1 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +285 -273
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +3 -3
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/store/Store.d.ts +3 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +2 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +1 -1
- package/package.json +1 -1
- package/lib/Store-D2xCXENW.js +0 -134
- package/lib/Store-DRp_K37w.cjs +0 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
throw TypeError(
|
|
1
|
+
var We = Object.defineProperty;
|
|
2
|
+
var ke = Object.getOwnPropertySymbols;
|
|
3
|
+
var Fe = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Me = (d) => {
|
|
5
|
+
throw TypeError(d);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var Ae = (d, n, e) => n in d ? We(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Te = (d, n) => {
|
|
8
8
|
for (var e in n || (n = {}))
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
for (var e of
|
|
12
|
-
|
|
13
|
-
return
|
|
9
|
+
Fe.call(n, e) && Ae(d, e, n[e]);
|
|
10
|
+
if (ke)
|
|
11
|
+
for (var e of ke(n))
|
|
12
|
+
Ne.call(n, e) && Ae(d, e, n[e]);
|
|
13
|
+
return d;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
16
|
-
var t = (
|
|
17
|
-
import { S as
|
|
15
|
+
var ve = (d, n, e) => n.has(d) || Me("Cannot " + e);
|
|
16
|
+
var t = (d, n, e) => (ve(d, n, "read from private field"), e ? e.call(d) : n.get(d)), s = (d, n, e) => n.has(d) ? Me("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), h = (d, n, e, i) => (ve(d, n, "write to private field"), i ? i.call(d, e) : n.set(d, e), e), l = (d, n, e) => (ve(d, n, "access private method"), e);
|
|
17
|
+
import { S as qe } from "../Store-swP_0ymB.js";
|
|
18
18
|
import { i as H } from "../index-euf5anj6.js";
|
|
19
|
-
import { a as
|
|
19
|
+
import { a as Ue } from "../easings-Bni3YAAW.js";
|
|
20
20
|
import { d as Yt } from "../events-CsVF98U6.js";
|
|
21
|
-
import { c as
|
|
22
|
-
import { a as
|
|
23
|
-
import { c as
|
|
24
|
-
import { l as
|
|
21
|
+
import { c as Ve } from "../jss-DtnXPEnq.js";
|
|
22
|
+
import { a as ye, g as Ce } from "../layout-DpZo-I0y.js";
|
|
23
|
+
import { c as Re } from "../math-BOBiC4TN.js";
|
|
24
|
+
import { l as Ge } from "../number-DwCxt_Ck.js";
|
|
25
25
|
import "../ticker/index.js";
|
|
26
|
-
import { TICK_ORDER as
|
|
27
|
-
import { D as
|
|
28
|
-
import { T as
|
|
29
|
-
import { WheelControls as
|
|
30
|
-
import { windowResizer as
|
|
26
|
+
import { TICK_ORDER as Ke, RESIZE_ORDER as we } from "../order/index.js";
|
|
27
|
+
import { D as _e } from "../Damped-GyAS-U-z.js";
|
|
28
|
+
import { T as Ze } from "../Tweened-BSC-evuL.js";
|
|
29
|
+
import { WheelControls as je, KeyboardControls as Je, DragControls as Qe, AutoplayControls as Xe } from "../controls/index.js";
|
|
30
|
+
import { windowResizer as Vt } from "../window-resizer/index.js";
|
|
31
31
|
import { scrollEntries as gt } from "../scroll-entries/index.js";
|
|
32
|
-
import { cssUnitParser as
|
|
33
|
-
import { CSSProperty as
|
|
34
|
-
import { device as
|
|
32
|
+
import { cssUnitParser as De } from "../css-unit-parser/index.js";
|
|
33
|
+
import { CSSProperty as f } from "../css-property/index.js";
|
|
34
|
+
import { device as Ye } from "../device/index.js";
|
|
35
35
|
import { elementResizer as ie } from "../element-resizer/index.js";
|
|
36
|
-
import { s as
|
|
37
|
-
import { b as
|
|
38
|
-
import { d as
|
|
39
|
-
import { ScrollSegmentElement as
|
|
40
|
-
var b,
|
|
41
|
-
class
|
|
36
|
+
import { s as ts } from "../gestures-CcXV6fCp.js";
|
|
37
|
+
import { b as Oe } from "../dom-CVWzyXPH.js";
|
|
38
|
+
import { d as es } from "../function-C10DGppn.js";
|
|
39
|
+
import { ScrollSegmentElement as ss } from "../scroll-segment/index.js";
|
|
40
|
+
var b, Ot, g, vt, $, Y, yt, Ct, te;
|
|
41
|
+
class is {
|
|
42
42
|
constructor(n, e, i) {
|
|
43
|
-
s(this,
|
|
43
|
+
s(this, Ct);
|
|
44
44
|
s(this, b);
|
|
45
|
-
s(this,
|
|
45
|
+
s(this, Ot);
|
|
46
46
|
s(this, g);
|
|
47
47
|
s(this, vt, 0);
|
|
48
48
|
s(this, $, 0);
|
|
49
49
|
s(this, Y, null);
|
|
50
|
-
s(this,
|
|
51
|
-
h(this, b, n), h(this,
|
|
50
|
+
s(this, yt, 0);
|
|
51
|
+
h(this, b, n), h(this, Ot, e), h(this, g, i), gt.register(t(this, b)), this.setIndex(t(this, Ot));
|
|
52
52
|
}
|
|
53
53
|
get element() {
|
|
54
54
|
return t(this, b);
|
|
55
55
|
}
|
|
56
56
|
get index() {
|
|
57
|
-
return t(this,
|
|
57
|
+
return t(this, Ot);
|
|
58
58
|
}
|
|
59
59
|
get size() {
|
|
60
60
|
return t(this, vt);
|
|
@@ -63,7 +63,7 @@ class ss {
|
|
|
63
63
|
return t(this, $);
|
|
64
64
|
}
|
|
65
65
|
get transformPosition() {
|
|
66
|
-
return t(this,
|
|
66
|
+
return t(this, yt);
|
|
67
67
|
}
|
|
68
68
|
destroy() {
|
|
69
69
|
gt.unregister(t(this, b)), this.unsetTransform();
|
|
@@ -75,18 +75,19 @@ class ss {
|
|
|
75
75
|
n ? (t(this, b).style.setProperty("--size", n + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = n + "px", t(this, b).style.height = "") : (t(this, b).style.height = n + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
|
|
76
76
|
}
|
|
77
77
|
resize() {
|
|
78
|
-
h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ?
|
|
78
|
+
h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ? ye(t(this, b)) : Ce(t(this, b))), h(this, $, t(this, $) - t(this, g).contentPosition);
|
|
79
79
|
}
|
|
80
80
|
transform() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
const n = t(this, g).shiftSectionPositionCSSProperty.current;
|
|
82
|
+
let e = n;
|
|
83
|
+
const i = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
|
|
84
|
+
t(this, g).loopCSSProperty.current && t(this, $) + t(this, vt) < t(this, g).currentScrollValue - n && (e = (t(this, g).distance - n) * -1 - t(this, g).gap), gt.update(
|
|
84
85
|
t(this, b),
|
|
85
86
|
t(this, g).axisCSSProperty.current,
|
|
86
|
-
|
|
87
|
+
e
|
|
87
88
|
);
|
|
88
|
-
const
|
|
89
|
-
h(this,
|
|
89
|
+
const r = t(this, g).currentScrollValue + e, a = t(this, $) - t(this, g).viewportSize - i, m = t(this, $) + t(this, vt) + i, v = Re(r, a, m);
|
|
90
|
+
h(this, yt, v * -1), t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${t(this, yt)}px, 0px)` : t(this, b).style.transform = `translate3d(${t(this, yt)}px, 0px, 0px)`;
|
|
90
91
|
}
|
|
91
92
|
setMark(n) {
|
|
92
93
|
t(this, Y) !== n && (t(this, Y) && t(this, b).classList.remove(t(this, Y)), n && t(this, b).classList.add(n), h(this, Y, n), Yt(t(this, b), "scrollSectionMarkChange", {
|
|
@@ -101,22 +102,22 @@ class ss {
|
|
|
101
102
|
t(this, b).classList.toggle("middle", n);
|
|
102
103
|
}
|
|
103
104
|
setIndex(n) {
|
|
104
|
-
l(this,
|
|
105
|
+
l(this, Ct, te).call(this, "index", n);
|
|
105
106
|
}
|
|
106
107
|
setCurrentIndex(n) {
|
|
107
|
-
l(this,
|
|
108
|
+
l(this, Ct, te).call(this, "current-index", n);
|
|
108
109
|
}
|
|
109
110
|
setCurrentIndexArc(n) {
|
|
110
|
-
l(this,
|
|
111
|
+
l(this, Ct, te).call(this, "current-index-arc", n);
|
|
111
112
|
}
|
|
112
113
|
setCurrentIndexArcAbs(n) {
|
|
113
|
-
l(this,
|
|
114
|
+
l(this, Ct, te).call(this, "current-index-arc-abs", n);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
b = new WeakMap(),
|
|
117
|
+
b = new WeakMap(), Ot = new WeakMap(), g = new WeakMap(), vt = new WeakMap(), $ = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakSet(), te = function(n, e) {
|
|
117
118
|
e !== null ? (t(this, b).style.setProperty(`--${n}`, e.toString()), t(this, b).setAttribute(`data-${n}`, e.toString())) : (t(this, b).style.removeProperty(`--${n}`), t(this, b).removeAttribute(`data-${n}`));
|
|
118
119
|
};
|
|
119
|
-
const
|
|
120
|
+
const rs = Ve({
|
|
120
121
|
":host": {
|
|
121
122
|
position: "relative",
|
|
122
123
|
width: "100%",
|
|
@@ -154,121 +155,127 @@ const is = De({
|
|
|
154
155
|
flexShrink: "0"
|
|
155
156
|
}
|
|
156
157
|
});
|
|
157
|
-
var
|
|
158
|
-
class
|
|
158
|
+
var u, wt, E, tt, B, W, F, T, et, st, N, it, xt, D, C, Et, Pt, Lt, zt, Ht, A, It, rt, M, nt, q, kt, ht, At, ot, lt, ct, p, $t, c, re, ne, y, S, k, V, at, R, x, P, Bt, U, G, K, _, Wt, ut, Z, Ft, O, w, he, dt, o, xe, ee, Dt, me, Se, Ee, Pe, L, oe, He, Nt, le, Le, ze, St, $e, se, ce;
|
|
159
|
+
class Rt extends HTMLElement {
|
|
159
160
|
constructor() {
|
|
160
161
|
super();
|
|
161
162
|
s(this, o);
|
|
162
|
-
s(this,
|
|
163
|
-
s(this, wt, new
|
|
164
|
-
s(this, E, new
|
|
165
|
-
s(this, tt, new
|
|
166
|
-
s(this, B, new
|
|
167
|
-
s(this, W, new
|
|
163
|
+
s(this, u, null);
|
|
164
|
+
s(this, wt, new f(this, "--controls", !0));
|
|
165
|
+
s(this, E, new f(this, "--axis", "y"));
|
|
166
|
+
s(this, tt, new f(this, "--reverse", !1));
|
|
167
|
+
s(this, B, new f(this, "--direction", 0));
|
|
168
|
+
s(this, W, new f(this, "--pages", 0, {
|
|
168
169
|
validate: (e) => Math.max(0, e - 1)
|
|
169
170
|
}));
|
|
170
|
-
s(this, F, new
|
|
171
|
-
s(this, T, new
|
|
172
|
-
s(this, et, new
|
|
171
|
+
s(this, F, new f(this, "--split", !1));
|
|
172
|
+
s(this, T, new f(this, "--sectional", !1));
|
|
173
|
+
s(this, et, new f(
|
|
173
174
|
this,
|
|
174
175
|
"--tween-easing",
|
|
175
176
|
!1
|
|
176
177
|
));
|
|
177
|
-
s(this, st, new
|
|
178
|
+
s(this, st, new f(
|
|
178
179
|
this,
|
|
179
180
|
"--tween-duration",
|
|
180
181
|
!1
|
|
181
182
|
));
|
|
182
|
-
s(this, N, new
|
|
183
|
-
s(this, it, new
|
|
183
|
+
s(this, N, new f(this, "--auto-size", !1));
|
|
184
|
+
s(this, it, new f(
|
|
184
185
|
this,
|
|
185
186
|
"--wheel-max-delta",
|
|
186
187
|
!1
|
|
187
188
|
));
|
|
188
|
-
s(this, xt, new
|
|
189
|
-
s(this, D, new
|
|
189
|
+
s(this, xt, new f(this, "--drag-inertion", 1));
|
|
190
|
+
s(this, D, new f(
|
|
190
191
|
this,
|
|
191
192
|
"--sections-in-view",
|
|
192
193
|
1
|
|
193
194
|
));
|
|
194
|
-
s(this,
|
|
195
|
-
s(this, Et, new
|
|
196
|
-
s(this, Pt, new
|
|
197
|
-
s(this, Lt, new
|
|
198
|
-
s(this, zt, new
|
|
199
|
-
s(this,
|
|
195
|
+
s(this, C, new f(this, "--loop", !1));
|
|
196
|
+
s(this, Et, new f(this, "--damping", 20));
|
|
197
|
+
s(this, Pt, new f(this, "--mass", 0));
|
|
198
|
+
s(this, Lt, new f(this, "--stiffness", 0));
|
|
199
|
+
s(this, zt, new f(this, "--mouse-drag", !1));
|
|
200
|
+
s(this, Ht, new f(
|
|
200
201
|
this,
|
|
201
202
|
"--section-distance-scale",
|
|
202
203
|
0.5
|
|
203
204
|
));
|
|
204
|
-
s(this, A, new
|
|
205
|
-
s(this, It, new
|
|
205
|
+
s(this, A, new f(this, "--autoplay", 0));
|
|
206
|
+
s(this, It, new f(
|
|
206
207
|
this,
|
|
207
208
|
"--autoplay-pause-duration",
|
|
208
209
|
0
|
|
209
210
|
));
|
|
210
|
-
s(this, rt, new
|
|
211
|
+
s(this, rt, new f(
|
|
211
212
|
this,
|
|
212
213
|
"--autoplay-user-direction",
|
|
213
214
|
!1
|
|
214
215
|
));
|
|
215
|
-
s(this, M, new
|
|
216
|
-
s(this, nt, new
|
|
216
|
+
s(this, M, new f(this, "--classes", !1));
|
|
217
|
+
s(this, nt, new f(
|
|
217
218
|
this,
|
|
218
219
|
"--current-index-start-offset",
|
|
219
220
|
0
|
|
220
221
|
));
|
|
221
|
-
s(this, q, new
|
|
222
|
+
s(this, q, new f(
|
|
222
223
|
this,
|
|
223
224
|
"--current-index-end-offset",
|
|
224
225
|
0
|
|
225
226
|
));
|
|
226
|
-
s(this,
|
|
227
|
-
|
|
227
|
+
s(this, kt, new f(
|
|
228
|
+
this,
|
|
229
|
+
"--shift-section-position",
|
|
230
|
+
0,
|
|
231
|
+
{ rawValueCheck: !1 }
|
|
232
|
+
));
|
|
233
|
+
s(this, ht, new f(this, "--focus-delay", 0));
|
|
234
|
+
s(this, At, new f(
|
|
228
235
|
this,
|
|
229
236
|
"--focus-duration",
|
|
230
237
|
3e3
|
|
231
238
|
));
|
|
232
|
-
s(this, ot, new
|
|
233
|
-
s(this, lt, new
|
|
239
|
+
s(this, ot, new f(this, "--disabled", !1));
|
|
240
|
+
s(this, lt, new f(this, "--hibernate", !1));
|
|
234
241
|
s(this, ct, null);
|
|
235
|
-
s(this,
|
|
236
|
-
s(this,
|
|
242
|
+
s(this, p, null);
|
|
243
|
+
s(this, $t, null);
|
|
237
244
|
s(this, c, []);
|
|
238
245
|
s(this, re, 0);
|
|
239
246
|
s(this, ne, 0);
|
|
240
|
-
s(this,
|
|
247
|
+
s(this, y, 0);
|
|
241
248
|
s(this, S, 0);
|
|
242
249
|
s(this, k, 0);
|
|
243
250
|
s(this, V, null);
|
|
244
251
|
s(this, at, null);
|
|
245
252
|
s(this, R, null);
|
|
246
|
-
s(this,
|
|
247
|
-
s(this, P, new
|
|
248
|
-
s(this,
|
|
253
|
+
s(this, x, null);
|
|
254
|
+
s(this, P, new qe(0));
|
|
255
|
+
s(this, Bt, 0);
|
|
249
256
|
s(this, U, 0);
|
|
250
257
|
s(this, G, !1);
|
|
251
258
|
s(this, K, !0);
|
|
252
259
|
s(this, _, !0);
|
|
253
|
-
s(this,
|
|
260
|
+
s(this, Wt);
|
|
254
261
|
s(this, ut);
|
|
255
|
-
s(this, Z, new
|
|
256
|
-
s(this,
|
|
262
|
+
s(this, Z, new Ze());
|
|
263
|
+
s(this, Ft, !1);
|
|
257
264
|
s(this, O, null);
|
|
258
|
-
s(this,
|
|
265
|
+
s(this, w, !1);
|
|
259
266
|
s(this, he, null);
|
|
260
267
|
s(this, dt, []);
|
|
261
268
|
s(this, L, () => {
|
|
262
269
|
if (t(this, lt).current)
|
|
263
270
|
return;
|
|
264
|
-
t(this,
|
|
271
|
+
t(this, u).unlistenAnimationFrame();
|
|
265
272
|
const e = this.currentScrollValue / t(this, S) || 0, i = t(this, P).current;
|
|
266
|
-
if (h(this, re, this.vertical ?
|
|
267
|
-
getComputedStyle(t(this,
|
|
268
|
-
)) : h(this, k,
|
|
269
|
-
getComputedStyle(t(this,
|
|
273
|
+
if (h(this, re, this.vertical ? ye(this) : Ce(this)), h(this, ne, this.vertical ? ye(t(this, p)) : Ce(t(this, p))), h(this, y, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, k, De.parse(
|
|
274
|
+
getComputedStyle(t(this, p)).rowGap
|
|
275
|
+
)) : h(this, k, De.parse(
|
|
276
|
+
getComputedStyle(t(this, p)).columnGap
|
|
270
277
|
)), t(this, N).current && t(this, c).length) {
|
|
271
|
-
const r = t(this, D).current, a = (t(this,
|
|
278
|
+
const r = t(this, D).current, a = (t(this, y) - t(this, k) * (r - 1)) / r;
|
|
272
279
|
t(this, c).forEach((m) => {
|
|
273
280
|
m.setSize(a);
|
|
274
281
|
});
|
|
@@ -279,66 +286,66 @@ class Vt extends HTMLElement {
|
|
|
279
286
|
if (t(this, c).forEach((r) => {
|
|
280
287
|
r.resize();
|
|
281
288
|
}), t(this, W).current) {
|
|
282
|
-
h(this, S, t(this,
|
|
283
|
-
const r = t(this, S) + t(this,
|
|
284
|
-
this.vertical ? (t(this,
|
|
289
|
+
h(this, S, t(this, y) * t(this, W).current);
|
|
290
|
+
const r = t(this, S) + t(this, y);
|
|
291
|
+
this.vertical ? (t(this, p).style.width = r + "px", t(this, p).style.height = "100%") : (t(this, p).style.height = r + "px", t(this, p).style.width = "100%");
|
|
285
292
|
} else
|
|
286
|
-
this.vertical ? (t(this,
|
|
287
|
-
if (!t(this,
|
|
293
|
+
this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", h(this, S, t(this, p).offsetHeight - t(this, y))) : (t(this, p).style.width = "max-content", t(this, p).style.height = "100%", h(this, S, t(this, p).offsetWidth - t(this, y)));
|
|
294
|
+
if (!t(this, C).current) {
|
|
288
295
|
const r = getComputedStyle(this), a = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
|
|
289
|
-
h(this, S, t(this, S) + a), t(this,
|
|
296
|
+
h(this, S, t(this, S) + a), t(this, u).max = t(this, S);
|
|
290
297
|
}
|
|
291
|
-
if (t(this,
|
|
292
|
-
const r = t(this, c)[t(this, c).length - 1], a = r.position + r.size - t(this,
|
|
298
|
+
if (t(this, C).current && t(this, c).length) {
|
|
299
|
+
const r = t(this, c)[t(this, c).length - 1], a = r.position + r.size - t(this, y), m = t(this, S) - a;
|
|
293
300
|
h(this, U, r.position + r.size + m);
|
|
294
301
|
} else
|
|
295
302
|
h(this, U, t(this, S));
|
|
296
303
|
if (t(this, T).current && t(this, c).length) {
|
|
297
304
|
const r = t(this, c)[i];
|
|
298
|
-
t(this,
|
|
305
|
+
t(this, u).set(r.position, {
|
|
299
306
|
equalize: !0
|
|
300
307
|
});
|
|
301
308
|
} else
|
|
302
|
-
t(this,
|
|
309
|
+
t(this, u).set(e * t(this, S), {
|
|
303
310
|
equalize: !0
|
|
304
311
|
});
|
|
305
|
-
h(this, G, (this.vertical ? t(this,
|
|
312
|
+
h(this, G, (this.vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth) > t(this, y)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, ot).current || l(this, o, Se).call(this) : l(this, o, me).call(this), Yt(this, "scrollResize", { custom: !0 }), t(this, u).notify();
|
|
306
313
|
});
|
|
307
|
-
s(this,
|
|
314
|
+
s(this, oe, () => {
|
|
308
315
|
if (!t(this, G) || t(this, _) || t(this, K))
|
|
309
316
|
return;
|
|
310
317
|
const e = this.currentScrollValue;
|
|
311
|
-
if (h(this,
|
|
318
|
+
if (h(this, Bt, Math.max(0, e - t(this, S))), t(this, c).length) {
|
|
312
319
|
for (let i = 0; i < t(this, c).length; i++)
|
|
313
320
|
t(this, c)[i].transform();
|
|
314
321
|
t(this, P).current = l(this, o, se).call(this);
|
|
315
322
|
} else
|
|
316
|
-
this.vertical ? t(this,
|
|
317
|
-
l(this, o,
|
|
323
|
+
this.vertical ? t(this, p).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, p).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
324
|
+
l(this, o, $e).call(this), gt.update(
|
|
318
325
|
this,
|
|
319
326
|
t(this, E).current,
|
|
320
327
|
e
|
|
321
328
|
);
|
|
322
329
|
});
|
|
323
330
|
s(this, Nt, (e, i) => {
|
|
324
|
-
t(this, wt).current && (l(this, o,
|
|
331
|
+
t(this, wt).current && (l(this, o, Le).call(this, Math.sign(i) || 1), t(this, le).call(this, e, i));
|
|
325
332
|
});
|
|
326
|
-
s(this,
|
|
333
|
+
s(this, le, (e, i) => {
|
|
327
334
|
if (t(this, B).current) {
|
|
328
335
|
if (t(this, B).current < 0 && i > 0)
|
|
329
336
|
return;
|
|
330
337
|
if (t(this, B).current > 0 && i < 0)
|
|
331
338
|
return;
|
|
332
339
|
}
|
|
333
|
-
if (t(this, ut) || t(this, Z).unlistenAnimationFrame(), !t(this, A).current && t(this, ht).current && (clearInterval(t(this,
|
|
340
|
+
if (t(this, ut) || t(this, Z).unlistenAnimationFrame(), !t(this, A).current && t(this, ht).current && (clearInterval(t(this, Wt)), h(this, Wt, setTimeout(() => {
|
|
334
341
|
const r = t(this, c)[l(this, o, se).call(this)];
|
|
335
342
|
r && this.scrollToSection(r.index, {
|
|
336
343
|
tween: {
|
|
337
|
-
duration: t(this,
|
|
338
|
-
easing:
|
|
344
|
+
duration: t(this, At).current,
|
|
345
|
+
easing: Ue
|
|
339
346
|
}
|
|
340
347
|
});
|
|
341
|
-
}, t(this, ht).current))), !(e.includes("drag") && !
|
|
348
|
+
}, t(this, ht).current))), !(e.includes("drag") && !Ye.isTouch && !t(this, zt).current)) {
|
|
342
349
|
if (t(this, T).current && e !== "drag") {
|
|
343
350
|
const r = Math.sign(i);
|
|
344
351
|
if (t(this, c).length) {
|
|
@@ -348,28 +355,28 @@ class Vt extends HTMLElement {
|
|
|
348
355
|
duration: t(this, st).current || 500
|
|
349
356
|
} : void 0
|
|
350
357
|
};
|
|
351
|
-
t(this,
|
|
358
|
+
t(this, Ft) ? this.scrollToSection(l(this, o, se).call(this, !0), a) : this.shiftSections(r, a);
|
|
352
359
|
} else
|
|
353
|
-
t(this,
|
|
360
|
+
t(this, u).shift(r * t(this, y));
|
|
354
361
|
} else
|
|
355
|
-
t(this,
|
|
356
|
-
h(this,
|
|
362
|
+
t(this, u).shift(i);
|
|
363
|
+
h(this, Ft, e === "drag");
|
|
357
364
|
}
|
|
358
365
|
});
|
|
359
|
-
s(this,
|
|
360
|
-
h(this,
|
|
366
|
+
s(this, ce, () => {
|
|
367
|
+
h(this, w, !0), this.hibernatedCSSProperty.current || l(this, o, Pe).call(this);
|
|
361
368
|
});
|
|
362
369
|
if (H) {
|
|
363
370
|
const e = this.attachShadow({ mode: "open" });
|
|
364
|
-
e.adoptedStyleSheets = [
|
|
371
|
+
e.adoptedStyleSheets = [rs];
|
|
365
372
|
const i = document.createElement("div");
|
|
366
|
-
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this,
|
|
373
|
+
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this, p, document.createElement("div")), t(this, p).className = "content", h(this, $t, document.createElement("slot")), t(this, p).appendChild(t(this, $t)), t(this, ct).appendChild(t(this, p)), e.appendChild(t(this, ct)), h(this, he, new MutationObserver((r) => {
|
|
367
374
|
this.tryResplit();
|
|
368
375
|
}));
|
|
369
376
|
}
|
|
370
377
|
}
|
|
371
378
|
get damped() {
|
|
372
|
-
return t(this,
|
|
379
|
+
return t(this, u);
|
|
373
380
|
}
|
|
374
381
|
get controlsCSSProperty() {
|
|
375
382
|
return t(this, wt);
|
|
@@ -411,7 +418,7 @@ class Vt extends HTMLElement {
|
|
|
411
418
|
return t(this, D);
|
|
412
419
|
}
|
|
413
420
|
get loopCSSProperty() {
|
|
414
|
-
return t(this,
|
|
421
|
+
return t(this, C);
|
|
415
422
|
}
|
|
416
423
|
get dampingCSSProperty() {
|
|
417
424
|
return t(this, Et);
|
|
@@ -426,7 +433,7 @@ class Vt extends HTMLElement {
|
|
|
426
433
|
return t(this, zt);
|
|
427
434
|
}
|
|
428
435
|
get sectionDistanceScaleCSSProperty() {
|
|
429
|
-
return t(this,
|
|
436
|
+
return t(this, Ht);
|
|
430
437
|
}
|
|
431
438
|
get autoplayCSSProperty() {
|
|
432
439
|
return t(this, A);
|
|
@@ -446,11 +453,14 @@ class Vt extends HTMLElement {
|
|
|
446
453
|
get currentIndexEndOffsetCSSProperty() {
|
|
447
454
|
return t(this, q);
|
|
448
455
|
}
|
|
456
|
+
get shiftSectionPositionCSSProperty() {
|
|
457
|
+
return t(this, kt);
|
|
458
|
+
}
|
|
449
459
|
get focusDelayCSSProperty() {
|
|
450
460
|
return t(this, ht);
|
|
451
461
|
}
|
|
452
462
|
get focusDurationCSSProperty() {
|
|
453
|
-
return t(this,
|
|
463
|
+
return t(this, At);
|
|
454
464
|
}
|
|
455
465
|
get disabledCSSProperty() {
|
|
456
466
|
return t(this, ot);
|
|
@@ -459,16 +469,16 @@ class Vt extends HTMLElement {
|
|
|
459
469
|
return t(this, lt);
|
|
460
470
|
}
|
|
461
471
|
get currentScrollValue() {
|
|
462
|
-
return l(this, o,
|
|
472
|
+
return l(this, o, ze).call(this, "current");
|
|
463
473
|
}
|
|
464
474
|
get targetScrollValue() {
|
|
465
|
-
return l(this, o,
|
|
475
|
+
return l(this, o, ze).call(this, "target");
|
|
466
476
|
}
|
|
467
477
|
get contentWrapperElement() {
|
|
468
478
|
return t(this, ct);
|
|
469
479
|
}
|
|
470
480
|
get contentElement() {
|
|
471
|
-
return t(this,
|
|
481
|
+
return t(this, p);
|
|
472
482
|
}
|
|
473
483
|
get sections() {
|
|
474
484
|
return t(this, c);
|
|
@@ -480,7 +490,7 @@ class Vt extends HTMLElement {
|
|
|
480
490
|
return t(this, ne);
|
|
481
491
|
}
|
|
482
492
|
get viewportSize() {
|
|
483
|
-
return t(this,
|
|
493
|
+
return t(this, y);
|
|
484
494
|
}
|
|
485
495
|
get scrollSize() {
|
|
486
496
|
return t(this, S);
|
|
@@ -500,13 +510,13 @@ class Vt extends HTMLElement {
|
|
|
500
510
|
return t(this, U);
|
|
501
511
|
}
|
|
502
512
|
get loopDistance() {
|
|
503
|
-
return t(this,
|
|
513
|
+
return t(this, C).current ? t(this, U) + t(this, k) : t(this, U);
|
|
504
514
|
}
|
|
505
515
|
get hasOverflow() {
|
|
506
516
|
return t(this, G);
|
|
507
517
|
}
|
|
508
518
|
get overscroll() {
|
|
509
|
-
return t(this,
|
|
519
|
+
return t(this, Bt);
|
|
510
520
|
}
|
|
511
521
|
get scrollLine() {
|
|
512
522
|
return t(this, O);
|
|
@@ -521,19 +531,19 @@ class Vt extends HTMLElement {
|
|
|
521
531
|
return this.targetScrollValue / this.loopDistance || 0;
|
|
522
532
|
}
|
|
523
533
|
get scrollWidth() {
|
|
524
|
-
return t(this, E).current === "y" ? 0 : t(this,
|
|
534
|
+
return t(this, E).current === "y" ? 0 : t(this, u).distance;
|
|
525
535
|
}
|
|
526
536
|
get scrollHeight() {
|
|
527
|
-
return t(this, E).current === "x" ? 0 : t(this,
|
|
537
|
+
return t(this, E).current === "x" ? 0 : t(this, u).distance;
|
|
528
538
|
}
|
|
529
539
|
tryResplit() {
|
|
530
|
-
!t(this, _) && (t(this,
|
|
540
|
+
!t(this, _) && (t(this, C).current || t(this, F).current || t(this, C).current || t(this, N).current || t(this, T).current) && l(this, o, ee).call(this);
|
|
531
541
|
}
|
|
532
542
|
onScroll(...e) {
|
|
533
|
-
return t(this,
|
|
543
|
+
return t(this, u).subscribe(...e);
|
|
534
544
|
}
|
|
535
545
|
offScroll(...e) {
|
|
536
|
-
t(this,
|
|
546
|
+
t(this, u).unsubscribe(...e);
|
|
537
547
|
}
|
|
538
548
|
//https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
|
|
539
549
|
range(e, i, r = 0) {
|
|
@@ -550,130 +560,132 @@ class Vt extends HTMLElement {
|
|
|
550
560
|
scrollToSection(e, i) {
|
|
551
561
|
if (!t(this, c).length)
|
|
552
562
|
return;
|
|
553
|
-
const r = t(this, P).current, a = l(this, o,
|
|
554
|
-
if (m &&
|
|
563
|
+
const r = t(this, P).current, a = l(this, o, He).call(this, e), m = t(this, c)[r], v = t(this, c)[a];
|
|
564
|
+
if (m && v) {
|
|
555
565
|
let I = 0;
|
|
556
|
-
const
|
|
557
|
-
t(this,
|
|
566
|
+
const ge = l(this, o, se).call(this), Tt = t(this, c)[ge], be = Tt ? this.targetScrollValue - Tt.position : 0;
|
|
567
|
+
t(this, C).current ? a === 0 && r === t(this, c).length - 1 ? I = t(this, S) + t(this, y) - m.position + t(this, k) : a === t(this, c).length - 1 && r === 0 ? I = v.position - (t(this, S) + t(this, y) + t(this, k)) : I = v.position - m.position : I = v.position - m.position, this.shiftPosition(I - be, i);
|
|
558
568
|
}
|
|
559
569
|
}
|
|
560
570
|
shiftSections(e, i) {
|
|
561
571
|
t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
|
|
562
572
|
}
|
|
563
573
|
setPosition(e, i) {
|
|
564
|
-
l(this, o,
|
|
574
|
+
l(this, o, Le).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, Z).set(t(this, u).current, { equalize: !0 }), t(this, Z).set(e, Te({}, i.tween)), h(this, ut, setTimeout(() => {
|
|
565
575
|
h(this, ut, void 0);
|
|
566
|
-
}, i.tween.duration || 0))) : t(this,
|
|
576
|
+
}, i.tween.duration || 0))) : t(this, u).set(e, {
|
|
567
577
|
equalize: (i == null ? void 0 : i.behaviour) === "instant"
|
|
568
578
|
});
|
|
569
579
|
}
|
|
570
580
|
shiftPosition(e, i) {
|
|
571
|
-
this.setPosition(t(this,
|
|
581
|
+
this.setPosition(t(this, u).target + e, i);
|
|
572
582
|
}
|
|
573
583
|
connectedCallback() {
|
|
574
|
-
gt.register(this), h(this,
|
|
584
|
+
gt.register(this), h(this, u, new _e(0, {
|
|
575
585
|
damping: 0.01,
|
|
576
586
|
min: 0,
|
|
577
|
-
order:
|
|
578
|
-
})), this.setAttribute("tabindex", "0"), h(this, V, new
|
|
587
|
+
order: Ke.SCROLL
|
|
588
|
+
})), this.setAttribute("tabindex", "0"), h(this, V, new je({ element: t(this, p) })), t(this, V).changeEvent.subscribe(t(this, Nt)), h(this, at, new Je({
|
|
579
589
|
element: this
|
|
580
590
|
})), t(this, at).changeEvent.subscribe(
|
|
581
591
|
t(this, Nt)
|
|
582
|
-
), h(this, R, new
|
|
592
|
+
), h(this, R, new Qe({ element: t(this, p) })), t(this, R).changeEvent.subscribe(t(this, Nt)), h(this, x, new Xe({
|
|
583
593
|
culling: this
|
|
584
|
-
})), t(this,
|
|
585
|
-
l(this, o,
|
|
594
|
+
})), t(this, x).changeEvent.subscribe(t(this, le)), t(this, E).subscribe(() => {
|
|
595
|
+
l(this, o, xe).call(this);
|
|
586
596
|
}), t(this, tt).subscribe(() => {
|
|
587
|
-
l(this, o,
|
|
597
|
+
l(this, o, xe).call(this);
|
|
588
598
|
}), t(this, it).subscribe((e) => {
|
|
589
599
|
t(this, V).axis = e.current ? "max" : t(this, E).current;
|
|
590
600
|
}), t(this, xt).subscribe((e) => {
|
|
591
601
|
t(this, R).inertion = typeof e.current == "number" ? e.current : 1;
|
|
592
602
|
}), t(this, W).subscribe(() => {
|
|
593
|
-
t(this,
|
|
603
|
+
t(this, w) && t(this, L).call(this);
|
|
594
604
|
}), t(this, F).subscribe(({ current: e }) => {
|
|
595
|
-
t(this,
|
|
605
|
+
t(this, w) && (e ? l(this, o, ee).call(this) : l(this, o, Dt).call(this));
|
|
596
606
|
}), t(this, T).subscribe((e) => {
|
|
597
|
-
t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this,
|
|
607
|
+
t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this, x).interval = e.current, t(this, w) && (e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
|
|
598
608
|
}), t(this, N).subscribe((e) => {
|
|
599
|
-
t(this,
|
|
609
|
+
t(this, w) && (t(this, L).call(this), e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
|
|
600
610
|
}), t(this, D).subscribe((e) => {
|
|
601
|
-
t(this,
|
|
602
|
-
}), t(this,
|
|
603
|
-
e.current ? (t(this,
|
|
611
|
+
t(this, w) && (t(this, L).call(this), l(this, o, St).call(this));
|
|
612
|
+
}), t(this, C).subscribe((e) => {
|
|
613
|
+
e.current ? (t(this, w) && (t(this, c).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (h(this, Bt, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
|
|
604
614
|
}), t(this, Et).subscribe((e) => {
|
|
605
|
-
t(this,
|
|
615
|
+
t(this, u).damping = e.current;
|
|
606
616
|
}), t(this, Pt).subscribe((e) => {
|
|
607
|
-
t(this,
|
|
617
|
+
t(this, u).mass = e.current;
|
|
608
618
|
}), t(this, Lt).subscribe((e) => {
|
|
609
|
-
t(this,
|
|
619
|
+
t(this, u).stiffness = e.current;
|
|
610
620
|
}), t(this, A).subscribe((e) => {
|
|
611
|
-
t(this,
|
|
621
|
+
t(this, x).speed = e.current, !t(this, K) && e.current && !e.previous ? t(this, x).connect() : !e.current && e.previous && t(this, x).disconnect();
|
|
612
622
|
}), t(this, rt).subscribe((e) => {
|
|
613
|
-
e.current || (t(this,
|
|
623
|
+
e.current || (t(this, x).direction = 1);
|
|
614
624
|
}), t(this, M).subscribe((e) => {
|
|
615
|
-
t(this,
|
|
625
|
+
t(this, w) && l(this, o, St).call(this);
|
|
616
626
|
}), t(this, nt).subscribe((e) => {
|
|
617
|
-
t(this,
|
|
627
|
+
t(this, w) && t(this, M).current && l(this, o, St).call(this);
|
|
618
628
|
}), t(this, q).subscribe((e) => {
|
|
619
|
-
t(this,
|
|
620
|
-
}), t(this,
|
|
629
|
+
t(this, w) && t(this, M).current && l(this, o, St).call(this);
|
|
630
|
+
}), t(this, kt).subscribe((e) => {
|
|
631
|
+
t(this, w) && t(this, u).notify();
|
|
632
|
+
}), t(this, u).isRunning.subscribe((e) => {
|
|
621
633
|
this.classList.toggle("active", e.current);
|
|
622
634
|
}), t(this, P).subscribe((e) => {
|
|
623
635
|
t(this, c).length && l(this, o, St).call(this);
|
|
624
636
|
}), t(this, Z).subscribe((e) => {
|
|
625
|
-
t(this, Z).isRunning.current && t(this,
|
|
637
|
+
t(this, Z).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
|
|
626
638
|
}), t(this, ot).subscribe((e) => {
|
|
627
|
-
e.current && !e.previous ? (this.classList.add("disabled"), l(this, o,
|
|
639
|
+
e.current && !e.previous ? (this.classList.add("disabled"), l(this, o, me).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), l(this, o, Se).call(this));
|
|
628
640
|
}), t(this, lt).subscribe((e) => {
|
|
629
|
-
e.current && !e.previous ? (this.classList.add("hibernated"), l(this, o,
|
|
630
|
-
}), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this,
|
|
641
|
+
e.current && !e.previous ? (this.classList.add("hibernated"), l(this, o, Ee).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), l(this, o, Pe).call(this));
|
|
642
|
+
}), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this, C).observe(), t(this, Et).observe(), t(this, Pt).observe(), t(this, Lt).observe(), t(this, zt).observe(), t(this, Ht).observe(), t(this, A).observe(), t(this, A).observe(), t(this, It).observe(), t(this, rt).observe(), t(this, M).observe(), t(this, nt).observe(), t(this, q).observe(), t(this, kt).observe(), t(this, ht).observe(), t(this, At).observe(), t(this, ot).observe(), t(this, lt).observe(), Vt.subscribe(t(this, ce), we.LAST);
|
|
631
643
|
}
|
|
632
644
|
disconnectedCallback() {
|
|
633
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this,
|
|
645
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this, C).unobserve(), t(this, Et).unobserve(), t(this, Pt).unobserve(), t(this, Lt).unobserve(), t(this, zt).unobserve(), t(this, Ht).unobserve(), t(this, A).unobserve(), t(this, It).unobserve(), t(this, rt).unobserve(), t(this, M).unobserve(), t(this, nt).unobserve(), t(this, q).unobserve(), t(this, kt).unobserve(), t(this, ht).unobserve(), t(this, At).unobserve(), t(this, ot).unobserve(), t(this, lt).unobserve(), Vt.unsubscribe(t(this, ce)), l(this, o, Ee).call(this), t(this, he).disconnect();
|
|
634
646
|
}
|
|
635
647
|
}
|
|
636
|
-
|
|
648
|
+
u = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), T = new WeakMap(), et = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), xt = new WeakMap(), D = new WeakMap(), C = new WeakMap(), Et = new WeakMap(), Pt = new WeakMap(), Lt = new WeakMap(), zt = new WeakMap(), Ht = new WeakMap(), A = new WeakMap(), It = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), nt = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), ht = new WeakMap(), At = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), p = new WeakMap(), $t = new WeakMap(), c = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), y = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), at = new WeakMap(), R = new WeakMap(), x = new WeakMap(), P = new WeakMap(), Bt = new WeakMap(), U = new WeakMap(), G = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Wt = new WeakMap(), ut = new WeakMap(), Z = new WeakMap(), Ft = new WeakMap(), O = new WeakMap(), w = new WeakMap(), he = new WeakMap(), dt = new WeakMap(), o = new WeakSet(), xe = function() {
|
|
637
649
|
const e = t(this, E).current, i = t(this, tt).current ? "-reverse" : "";
|
|
638
|
-
t(this,
|
|
650
|
+
t(this, p).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, it).current ? "max" : e, t(this, at).dimension = e === "x" ? "width" : "height", t(this, R).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, w) && t(this, L).call(this);
|
|
639
651
|
}, ee = function() {
|
|
640
|
-
l(this, o,
|
|
641
|
-
e instanceof HTMLElement && t(this, c).push(new
|
|
642
|
-
}), t(this,
|
|
652
|
+
l(this, o, Dt).call(this), t(this, $t).assignedElements().forEach((e, i) => {
|
|
653
|
+
e instanceof HTMLElement && t(this, c).push(new is(e, i, this));
|
|
654
|
+
}), t(this, p).style.transform = "", Yt(this, "scrollSectionsChange", {
|
|
643
655
|
custom: !0,
|
|
644
656
|
composed: !0
|
|
645
657
|
}), t(this, L).call(this), l(this, o, St).call(this);
|
|
646
|
-
},
|
|
658
|
+
}, Dt = function() {
|
|
647
659
|
t(this, c).forEach((e) => {
|
|
648
660
|
e.destroy();
|
|
649
|
-
}), h(this, c, []), t(this, P).reset(), t(this,
|
|
661
|
+
}), h(this, c, []), t(this, P).reset(), t(this, u).reset(), Yt(this, "scrollSectionsChange", {
|
|
650
662
|
custom: !0,
|
|
651
663
|
composed: !0
|
|
652
664
|
});
|
|
653
|
-
},
|
|
654
|
-
t(this, K) || (h(this, K, !0), t(this,
|
|
665
|
+
}, me = function() {
|
|
666
|
+
t(this, K) || (h(this, K, !0), t(this, u).unsubscribe(t(this, oe)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Wt)), clearInterval(t(this, ut)), t(this, Z).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, at).disconnect(), t(this, R).disconnect(), t(this, x).disconnect(), t(this, G) || (this.sections.forEach((e) => {
|
|
655
667
|
e.unsetTransform();
|
|
656
668
|
}), t(this, L).call(this)));
|
|
657
|
-
},
|
|
658
|
-
t(this, K) && (h(this, K, !1), t(this,
|
|
659
|
-
}, xe = function() {
|
|
660
|
-
t(this, _) || (h(this, _, !0), Dt.unsubscribe(t(this, L)), ie.unsubscribe(t(this, L)), l(this, o, be).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, c).length ? l(this, o, Tt).call(this) : (t(this, P).reset(), t(this, d).reset()), gt.unregister(this));
|
|
669
|
+
}, Se = function() {
|
|
670
|
+
t(this, K) && (h(this, K, !1), t(this, u).subscribe(t(this, oe), -1e4), t(this, u).notify(), t(this, V).connect(), t(this, at).connect(), t(this, R).connect(), t(this, A).current && t(this, x).connect());
|
|
661
671
|
}, Ee = function() {
|
|
662
|
-
t(this, _)
|
|
663
|
-
},
|
|
672
|
+
t(this, _) || (h(this, _, !0), Vt.unsubscribe(t(this, L)), ie.unsubscribe(t(this, L)), l(this, o, me).call(this), t(this, p).style.transform = "", t(this, p).style.height = "", t(this, p).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, c).length ? l(this, o, Dt).call(this) : (t(this, P).reset(), t(this, u).reset()), gt.unregister(this));
|
|
673
|
+
}, Pe = function() {
|
|
674
|
+
t(this, _) && (h(this, _, !1), gt.register(this), this.tryResplit(), l(this, o, Se).call(this), Vt.subscribe(t(this, L), we.SCROLL), ie.subscribe(this, t(this, L)));
|
|
675
|
+
}, L = new WeakMap(), oe = new WeakMap(), He = function(e) {
|
|
664
676
|
let i = t(this, P).current;
|
|
665
|
-
return t(this,
|
|
666
|
-
}, Nt = new WeakMap(),
|
|
667
|
-
t(this, rt).current && (t(this,
|
|
677
|
+
return t(this, C).current ? i = Ge(e, t(this, c).length) : i = Re(e, 0, this.limit), i;
|
|
678
|
+
}, Nt = new WeakMap(), le = new WeakMap(), Le = function(e = 1) {
|
|
679
|
+
t(this, rt).current && (t(this, x).direction = e), t(this, A).current && t(this, x).pauseAndContinue(
|
|
668
680
|
t(this, It).current,
|
|
669
681
|
this.sectionalCSSProperty.current
|
|
670
682
|
);
|
|
671
|
-
},
|
|
672
|
-
if (t(this,
|
|
673
|
-
const i = t(this,
|
|
674
|
-
return i < 0 ? t(this, S) + i + t(this,
|
|
683
|
+
}, ze = function(e = "current") {
|
|
684
|
+
if (t(this, C).current && t(this, c).length) {
|
|
685
|
+
const i = t(this, u)[e] % Math.round(t(this, S) + t(this, y) + t(this, k));
|
|
686
|
+
return i < 0 ? t(this, S) + i + t(this, y) + t(this, k) : i;
|
|
675
687
|
} else
|
|
676
|
-
return t(this,
|
|
688
|
+
return t(this, u)[e];
|
|
677
689
|
}, St = function() {
|
|
678
690
|
if (t(this, c).length) {
|
|
679
691
|
const e = t(this, P).current + t(this, nt).current;
|
|
@@ -684,12 +696,12 @@ d = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B
|
|
|
684
696
|
const i = t(this, D).current + t(this, q).current;
|
|
685
697
|
h(this, dt, []), t(this, c).forEach((r, a) => {
|
|
686
698
|
r.setCurrentIndex(null), r.setCurrentIndexArc(null), r.setCurrentIndexArcAbs(null);
|
|
687
|
-
const m = e - this.limit - 1 + t(this, q).current,
|
|
688
|
-
a >= e && a <
|
|
699
|
+
const m = e - this.limit - 1 + t(this, q).current, v = e + i, I = this.sections.length - v;
|
|
700
|
+
a >= e && a < v || a <= m ? (r.setMark("current"), t(this, dt).push(r)) : a >= v && a < v + I / 2 || a <= m + i ? r.setMark("next") : r.setMark("previous");
|
|
689
701
|
});
|
|
690
702
|
}
|
|
691
703
|
}
|
|
692
|
-
},
|
|
704
|
+
}, $e = function() {
|
|
693
705
|
if (t(this, M).current) {
|
|
694
706
|
const e = Math.floor(t(this, dt).length / 2);
|
|
695
707
|
t(this, dt).sort((i, r) => i.element.getBoundingClientRect().left - r.element.getBoundingClientRect().left), t(this, dt).forEach((i, r) => {
|
|
@@ -699,43 +711,43 @@ d = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B
|
|
|
699
711
|
}
|
|
700
712
|
}, se = function(e = !1) {
|
|
701
713
|
let i = this.targetScrollValue, r = 1 / 0, a = 0;
|
|
702
|
-
const m = t(this,
|
|
703
|
-
for (let
|
|
704
|
-
const I = t(this, c)[
|
|
705
|
-
let
|
|
706
|
-
this.overscroll &&
|
|
707
|
-
let
|
|
708
|
-
|
|
714
|
+
const m = t(this, u).direction;
|
|
715
|
+
for (let v = 0; v < t(this, c).length; v++) {
|
|
716
|
+
const I = t(this, c)[v];
|
|
717
|
+
let ge = t(this, Ft) ? I.size * m * -1 * 0.4 : 0, Tt = I.position;
|
|
718
|
+
this.overscroll && Tt === 0 && e && (Tt = t(this, U));
|
|
719
|
+
let be = Math.abs(Tt + ge - i);
|
|
720
|
+
be <= r && (r = be, a = v);
|
|
709
721
|
}
|
|
710
722
|
return a;
|
|
711
|
-
},
|
|
712
|
-
H && !customElements.get("e-scroll") && customElements.define("e-scroll",
|
|
713
|
-
var
|
|
714
|
-
class
|
|
723
|
+
}, ce = new WeakMap();
|
|
724
|
+
H && !customElements.get("e-scroll") && customElements.define("e-scroll", Rt);
|
|
725
|
+
var ae;
|
|
726
|
+
class Ie extends HTMLElement {
|
|
715
727
|
constructor() {
|
|
716
728
|
super(...arguments);
|
|
717
|
-
s(this,
|
|
729
|
+
s(this, ae, null);
|
|
718
730
|
}
|
|
719
731
|
get scrollElement() {
|
|
720
|
-
return t(this,
|
|
732
|
+
return t(this, ae);
|
|
721
733
|
}
|
|
722
734
|
connectedCallback() {
|
|
723
|
-
const e =
|
|
724
|
-
e instanceof
|
|
735
|
+
const e = Oe(this, Rt);
|
|
736
|
+
e instanceof Rt ? h(this, ae, e) : console.error(this, "e-scroll not found");
|
|
725
737
|
}
|
|
726
738
|
}
|
|
727
|
-
|
|
728
|
-
var
|
|
729
|
-
class
|
|
739
|
+
ae = new WeakMap();
|
|
740
|
+
var ft, z, j, J, qt, Ut, pt, Gt, ue, de;
|
|
741
|
+
class ns extends Ie {
|
|
730
742
|
constructor() {
|
|
731
743
|
super();
|
|
732
|
-
s(this,
|
|
744
|
+
s(this, ft, null);
|
|
733
745
|
s(this, z, null);
|
|
734
746
|
s(this, j, !1);
|
|
735
747
|
s(this, J, 0);
|
|
736
748
|
s(this, qt, 0);
|
|
737
749
|
s(this, Ut, 0);
|
|
738
|
-
s(this,
|
|
750
|
+
s(this, pt, () => {
|
|
739
751
|
h(this, j, this.offsetWidth > this.offsetHeight);
|
|
740
752
|
const e = t(this, j) ? this.offsetWidth : this.offsetHeight;
|
|
741
753
|
h(this, J, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, J, Math.max(t(this, J), 30)), t(this, j) ? (t(this, z).style.width = t(this, J) + "px", t(this, z).style.height = "100%") : (t(this, z).style.width = "100%", t(this, z).style.height = t(this, J) + "px"), h(this, qt, e - t(this, J)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Gt).call(this);
|
|
@@ -743,13 +755,13 @@ class rs extends ze {
|
|
|
743
755
|
s(this, Gt, () => {
|
|
744
756
|
h(this, Ut, this.scrollElement.currentProgress * t(this, qt)), t(this, j) ? t(this, z).style.transform = `translate3d(${t(this, Ut)}px, 0px, 0px)` : t(this, z).style.transform = `translate3d(0px, ${t(this, Ut)}px, 0px)`;
|
|
745
757
|
});
|
|
746
|
-
s(this,
|
|
758
|
+
s(this, ue, () => {
|
|
747
759
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
748
760
|
});
|
|
749
|
-
s(this,
|
|
750
|
-
document.documentElement.classList.add("grabbing"),
|
|
761
|
+
s(this, de, (e) => {
|
|
762
|
+
document.documentElement.classList.add("grabbing"), ts(
|
|
751
763
|
(a) => {
|
|
752
|
-
const m = t(this, j) ? a.x : a.y,
|
|
764
|
+
const m = t(this, j) ? a.x : a.y, v = this.scrollElement.distance / t(this, qt), I = (m - r) * v;
|
|
753
765
|
this.scrollElement.setPosition(i + I);
|
|
754
766
|
},
|
|
755
767
|
() => {
|
|
@@ -761,7 +773,7 @@ class rs extends ze {
|
|
|
761
773
|
if (H) {
|
|
762
774
|
const e = this.attachShadow({ mode: "open" });
|
|
763
775
|
e.adoptedStyleSheets = [
|
|
764
|
-
|
|
776
|
+
Ve({
|
|
765
777
|
":host": {
|
|
766
778
|
display: "inline-block",
|
|
767
779
|
zIndex: "1",
|
|
@@ -790,7 +802,7 @@ class rs extends ze {
|
|
|
790
802
|
touchAction: "none"
|
|
791
803
|
}
|
|
792
804
|
})
|
|
793
|
-
], h(this,
|
|
805
|
+
], h(this, ft, document.createElement("slot")), t(this, ft).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, ft));
|
|
794
806
|
}
|
|
795
807
|
}
|
|
796
808
|
get thumbElement() {
|
|
@@ -798,26 +810,26 @@ class rs extends ze {
|
|
|
798
810
|
}
|
|
799
811
|
connectedCallback() {
|
|
800
812
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
801
|
-
const e = t(this,
|
|
802
|
-
h(this, z, e), t(this, z).addEventListener("pointerdown", t(this,
|
|
813
|
+
const e = t(this, ft).assignedElements()[0] || t(this, ft).firstElementChild;
|
|
814
|
+
h(this, z, e), t(this, z).addEventListener("pointerdown", t(this, de)), Vt.subscribe(t(this, pt), we.SCROLL), ie.subscribe(this, t(this, pt)), ie.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ue));
|
|
803
815
|
}
|
|
804
816
|
disconnectedCallback() {
|
|
805
|
-
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this,
|
|
817
|
+
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this, de)), Vt.unsubscribe(t(this, pt)), ie.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ue));
|
|
806
818
|
}
|
|
807
819
|
}
|
|
808
|
-
|
|
809
|
-
H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar",
|
|
820
|
+
ft = new WeakMap(), z = new WeakMap(), j = new WeakMap(), J = new WeakMap(), qt = new WeakMap(), Ut = new WeakMap(), pt = new WeakMap(), Gt = new WeakMap(), ue = new WeakMap(), de = new WeakMap();
|
|
821
|
+
H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", ns);
|
|
810
822
|
var Kt, _t, Zt;
|
|
811
|
-
class
|
|
823
|
+
class Be extends Ie {
|
|
812
824
|
constructor() {
|
|
813
825
|
super();
|
|
814
|
-
s(this, Kt, new
|
|
815
|
-
s(this, _t, new
|
|
826
|
+
s(this, Kt, new f(this, "--behaviour", "smooth"));
|
|
827
|
+
s(this, _t, new f(
|
|
816
828
|
this,
|
|
817
829
|
"--tween-easing",
|
|
818
830
|
!1
|
|
819
831
|
));
|
|
820
|
-
s(this, Zt, new
|
|
832
|
+
s(this, Zt, new f(this, "--tween-duration", 0));
|
|
821
833
|
H && this.addEventListener("click", () => {
|
|
822
834
|
const e = t(this, Kt).current, i = t(this, _t).current, r = t(this, Zt).current;
|
|
823
835
|
this.handleClick({
|
|
@@ -835,10 +847,10 @@ class $e extends ze {
|
|
|
835
847
|
}
|
|
836
848
|
Kt = new WeakMap(), _t = new WeakMap(), Zt = new WeakMap();
|
|
837
849
|
var jt;
|
|
838
|
-
class
|
|
850
|
+
class hs extends Be {
|
|
839
851
|
constructor() {
|
|
840
852
|
super(...arguments);
|
|
841
|
-
s(this, jt, new
|
|
853
|
+
s(this, jt, new f(this, "--set", 1));
|
|
842
854
|
}
|
|
843
855
|
handleClick(e) {
|
|
844
856
|
this.scrollElement.scrollToSection(t(this, jt).current, e);
|
|
@@ -851,12 +863,12 @@ class ns extends $e {
|
|
|
851
863
|
}
|
|
852
864
|
}
|
|
853
865
|
jt = new WeakMap();
|
|
854
|
-
H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button",
|
|
866
|
+
H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", hs);
|
|
855
867
|
var Q, Jt;
|
|
856
|
-
class
|
|
868
|
+
class os extends Be {
|
|
857
869
|
constructor() {
|
|
858
870
|
super(...arguments);
|
|
859
|
-
s(this, Q, new
|
|
871
|
+
s(this, Q, new f(this, "--step", 1));
|
|
860
872
|
s(this, Jt, () => {
|
|
861
873
|
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Q).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Q).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
862
874
|
});
|
|
@@ -877,17 +889,17 @@ class hs extends $e {
|
|
|
877
889
|
}
|
|
878
890
|
}
|
|
879
891
|
Q = new WeakMap(), Jt = new WeakMap();
|
|
880
|
-
H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button",
|
|
881
|
-
var X, bt, Qt,
|
|
882
|
-
class
|
|
892
|
+
H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", os);
|
|
893
|
+
var X, bt, Qt, fe, pe, Xt;
|
|
894
|
+
class ls {
|
|
883
895
|
constructor(n, e, i) {
|
|
884
896
|
s(this, X, null);
|
|
885
897
|
s(this, bt, null);
|
|
886
898
|
s(this, Qt, null);
|
|
887
|
-
s(this,
|
|
899
|
+
s(this, fe, null);
|
|
888
900
|
s(this, pe, () => {
|
|
889
901
|
t(this, bt).scrollToSection(t(this, Qt), {
|
|
890
|
-
behaviour: t(this,
|
|
902
|
+
behaviour: t(this, fe)
|
|
891
903
|
});
|
|
892
904
|
});
|
|
893
905
|
s(this, Xt, () => {
|
|
@@ -896,7 +908,7 @@ class os {
|
|
|
896
908
|
t(this, bt).counter.current === t(this, Qt)
|
|
897
909
|
);
|
|
898
910
|
});
|
|
899
|
-
H && (h(this, X, document.createElement("button")), h(this, bt, n), h(this,
|
|
911
|
+
H && (h(this, X, document.createElement("button")), h(this, bt, n), h(this, fe, i), h(this, Qt, e), t(this, X).addEventListener("click", t(this, pe)), t(this, bt).counter.subscribe(t(this, Xt)), t(this, Xt).call(this));
|
|
900
912
|
}
|
|
901
913
|
get element() {
|
|
902
914
|
return t(this, X);
|
|
@@ -905,17 +917,17 @@ class os {
|
|
|
905
917
|
t(this, X).removeEventListener("click", t(this, pe)), t(this, bt).counter.unsubscribe(t(this, Xt)), t(this, X).remove();
|
|
906
918
|
}
|
|
907
919
|
}
|
|
908
|
-
X = new WeakMap(), bt = new WeakMap(), Qt = new WeakMap(),
|
|
909
|
-
var mt,
|
|
910
|
-
class
|
|
920
|
+
X = new WeakMap(), bt = new WeakMap(), Qt = new WeakMap(), fe = new WeakMap(), pe = new WeakMap(), Xt = new WeakMap();
|
|
921
|
+
var mt, Mt;
|
|
922
|
+
class cs extends Ie {
|
|
911
923
|
constructor() {
|
|
912
924
|
super(...arguments);
|
|
913
925
|
s(this, mt, []);
|
|
914
|
-
s(this,
|
|
926
|
+
s(this, Mt, es(() => {
|
|
915
927
|
t(this, mt).forEach((i) => i.destroy()), h(this, mt, []);
|
|
916
928
|
const e = this.scrollElement.sections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
|
|
917
929
|
for (let i = 0; i < e; i++) {
|
|
918
|
-
const r = new
|
|
930
|
+
const r = new ls(
|
|
919
931
|
this.scrollElement,
|
|
920
932
|
i,
|
|
921
933
|
this.getAttribute("behaviour") || "smooth"
|
|
@@ -927,43 +939,43 @@ class ls extends ze {
|
|
|
927
939
|
connectedCallback() {
|
|
928
940
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
929
941
|
"sectionsChange",
|
|
930
|
-
t(this,
|
|
942
|
+
t(this, Mt)
|
|
931
943
|
), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
932
|
-
t(this,
|
|
944
|
+
t(this, Mt)
|
|
933
945
|
);
|
|
934
946
|
}
|
|
935
947
|
disconnectedCallback() {
|
|
936
948
|
this.scrollElement.removeEventListener(
|
|
937
949
|
"sectionsChange",
|
|
938
|
-
t(this,
|
|
950
|
+
t(this, Mt)
|
|
939
951
|
), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
940
|
-
t(this,
|
|
952
|
+
t(this, Mt)
|
|
941
953
|
), t(this, mt).forEach((e) => e.destroy()), h(this, mt, []);
|
|
942
954
|
}
|
|
943
955
|
}
|
|
944
|
-
mt = new WeakMap(),
|
|
945
|
-
H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons",
|
|
946
|
-
class
|
|
956
|
+
mt = new WeakMap(), Mt = new WeakMap();
|
|
957
|
+
H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", cs);
|
|
958
|
+
class as extends ss {
|
|
947
959
|
connectedCallback() {
|
|
948
|
-
const n =
|
|
949
|
-
n instanceof
|
|
960
|
+
const n = Oe(this, Rt);
|
|
961
|
+
n instanceof Rt ? (this.scrollContainer = n, this.scrollContainer.addEventListener(
|
|
950
962
|
"scrollSectionsChange",
|
|
951
963
|
this.findAnotherScrollEntries
|
|
952
964
|
), this.scrollContainer.addEventListener("scrollResize", this.resize), this.resize()) : console.error(this, "e-scroll not found");
|
|
953
965
|
}
|
|
954
966
|
disconnectedCallback() {
|
|
955
|
-
super.disconnectedCallback(), this.scrollContainer instanceof
|
|
967
|
+
super.disconnectedCallback(), this.scrollContainer instanceof Rt && (this.scrollContainer.removeEventListener(
|
|
956
968
|
"scrollSectionsChange",
|
|
957
969
|
this.findAnotherScrollEntries
|
|
958
970
|
), this.scrollContainer.removeEventListener("scrollResize", this.resize));
|
|
959
971
|
}
|
|
960
972
|
}
|
|
961
|
-
H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment",
|
|
973
|
+
H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", as);
|
|
962
974
|
export {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
975
|
+
cs as ScrollBulletButtonsElement,
|
|
976
|
+
Rt as ScrollElement,
|
|
977
|
+
as as ScrollSegmentElement,
|
|
978
|
+
hs as ScrollSetButtonElement,
|
|
979
|
+
os as ScrollStepButtonElement,
|
|
980
|
+
ns as ScrollbarElement
|
|
969
981
|
};
|