@luna-park/plugin-nuxt-ui 1.3.3 → 1.3.4
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/dist/embla-carousel-auto-height.esm-C2dOleB6.js +30 -0
- package/dist/embla-carousel-auto-scroll.esm-BWDrqXRk.js +116 -0
- package/dist/embla-carousel-autoplay.esm-C4C3HUni.js +109 -0
- package/dist/embla-carousel-class-names.esm-DbsQavlo.js +64 -0
- package/dist/embla-carousel-fade.esm-B9dWgAv9.js +106 -0
- package/dist/embla-carousel-wheel-gestures.esm-DUtYDu5y.js +385 -0
- package/dist/index.css +2 -1
- package/dist/index.js +76857 -75120
- package/package.json +14 -14
- package/dist/embla-carousel-auto-height.esm-ChnXvXj8.js +0 -38
- package/dist/embla-carousel-auto-scroll.esm-kh3r9SbL.js +0 -142
- package/dist/embla-carousel-autoplay.esm-Dsq4myy1.js +0 -126
- package/dist/embla-carousel-class-names.esm-BLcxNRTO.js +0 -74
- package/dist/embla-carousel-fade.esm-Dhou20uz.js +0 -143
- package/dist/embla-carousel-wheel-gestures.esm-BTIT2srW.js +0 -373
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/dist/wheel-gestures.esm.js
|
|
2
|
+
function e() {
|
|
3
|
+
return e = Object.assign || function(e) {
|
|
4
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
+
var n = arguments[t];
|
|
6
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
+
}
|
|
8
|
+
return e;
|
|
9
|
+
}, e.apply(this, arguments);
|
|
10
|
+
}
|
|
11
|
+
var t = .996, n = function(e, n) {
|
|
12
|
+
return n === void 0 && (n = t), e * n / (1 - n);
|
|
13
|
+
};
|
|
14
|
+
function r(e) {
|
|
15
|
+
return e[e.length - 1];
|
|
16
|
+
}
|
|
17
|
+
function i(e) {
|
|
18
|
+
return e.reduce(function(e, t) {
|
|
19
|
+
return e + t;
|
|
20
|
+
}) / e.length;
|
|
21
|
+
}
|
|
22
|
+
var a = function(e, t, n) {
|
|
23
|
+
return Math.min(Math.max(t, e), n);
|
|
24
|
+
};
|
|
25
|
+
function o(e, t) {
|
|
26
|
+
if (e.length !== t.length) throw Error("vectors must be same length");
|
|
27
|
+
return e.map(function(e, n) {
|
|
28
|
+
return e + t[n];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function s(e) {
|
|
32
|
+
return Math.max.apply(Math, e.map(Math.abs));
|
|
33
|
+
}
|
|
34
|
+
function c(e) {
|
|
35
|
+
return Object.freeze(e), Object.values(e).forEach(function(e) {
|
|
36
|
+
typeof e == "object" && e && !Object.isFrozen(e) && c(e);
|
|
37
|
+
}), e;
|
|
38
|
+
}
|
|
39
|
+
function l() {
|
|
40
|
+
var e = {};
|
|
41
|
+
function t(t, r) {
|
|
42
|
+
return e[t] = (e[t] || []).concat(r), function() {
|
|
43
|
+
return n(t, r);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function n(t, n) {
|
|
47
|
+
e[t] = (e[t] || []).filter(function(e) {
|
|
48
|
+
return e !== n;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function r(t, n) {
|
|
52
|
+
t in e && e[t].forEach(function(e) {
|
|
53
|
+
return e(n);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return c({
|
|
57
|
+
on: t,
|
|
58
|
+
off: n,
|
|
59
|
+
dispatch: r
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function u(e) {
|
|
63
|
+
var t = [], n = function(n) {
|
|
64
|
+
return n.addEventListener("wheel", e, { passive: !1 }), t.push(n), function() {
|
|
65
|
+
return r(n);
|
|
66
|
+
};
|
|
67
|
+
}, r = function(n) {
|
|
68
|
+
n.removeEventListener("wheel", e), t = t.filter(function(e) {
|
|
69
|
+
return e !== n;
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
return c({
|
|
73
|
+
observe: n,
|
|
74
|
+
unobserve: r,
|
|
75
|
+
disconnect: function() {
|
|
76
|
+
t.forEach(r);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var d = [
|
|
81
|
+
1,
|
|
82
|
+
16 * 1.125,
|
|
83
|
+
typeof window < "u" && window.innerHeight || 800
|
|
84
|
+
];
|
|
85
|
+
function f(e) {
|
|
86
|
+
var t = e.deltaX * d[e.deltaMode], n = e.deltaY * d[e.deltaMode], r = (e.deltaZ || 0) * d[e.deltaMode];
|
|
87
|
+
return {
|
|
88
|
+
timeStamp: e.timeStamp,
|
|
89
|
+
axisDelta: [
|
|
90
|
+
t,
|
|
91
|
+
n,
|
|
92
|
+
r
|
|
93
|
+
]
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
var p = [
|
|
97
|
+
-1,
|
|
98
|
+
-1,
|
|
99
|
+
-1
|
|
100
|
+
];
|
|
101
|
+
function m(t, n) {
|
|
102
|
+
if (!n) return t;
|
|
103
|
+
var r = n === !0 ? p : n.map(function(e) {
|
|
104
|
+
return e ? -1 : 1;
|
|
105
|
+
});
|
|
106
|
+
return e({}, t, { axisDelta: t.axisDelta.map(function(e, t) {
|
|
107
|
+
return e * r[t];
|
|
108
|
+
}) });
|
|
109
|
+
}
|
|
110
|
+
var h = 700, g = function(t) {
|
|
111
|
+
return e({}, t, { axisDelta: t.axisDelta.map(function(e) {
|
|
112
|
+
return a(e, -h, h);
|
|
113
|
+
}) });
|
|
114
|
+
}, _ = process.env.NODE_ENV !== "production", v = .6, y = .96, b = 2, x = 5, S = /* @__PURE__ */ c({
|
|
115
|
+
preventWheelAction: !0,
|
|
116
|
+
reverseSign: [
|
|
117
|
+
!0,
|
|
118
|
+
!0,
|
|
119
|
+
!1
|
|
120
|
+
]
|
|
121
|
+
}), C = 400;
|
|
122
|
+
function w() {
|
|
123
|
+
return {
|
|
124
|
+
isStarted: !1,
|
|
125
|
+
isStartPublished: !1,
|
|
126
|
+
isMomentum: !1,
|
|
127
|
+
startTime: 0,
|
|
128
|
+
lastAbsDelta: Infinity,
|
|
129
|
+
axisMovement: [
|
|
130
|
+
0,
|
|
131
|
+
0,
|
|
132
|
+
0
|
|
133
|
+
],
|
|
134
|
+
axisVelocity: [
|
|
135
|
+
0,
|
|
136
|
+
0,
|
|
137
|
+
0
|
|
138
|
+
],
|
|
139
|
+
accelerationFactors: [],
|
|
140
|
+
scrollPoints: [],
|
|
141
|
+
scrollPointsToMerge: [],
|
|
142
|
+
willEndTimeout: C
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function T(t) {
|
|
146
|
+
t === void 0 && (t = {});
|
|
147
|
+
var a = l(), d = a.on, p = a.off, h = a.dispatch, C = S, T = w(), E, D = !1, O, k = function(e) {
|
|
148
|
+
Array.isArray(e) ? e.forEach(function(e) {
|
|
149
|
+
return N(e);
|
|
150
|
+
}) : N(e);
|
|
151
|
+
}, A = function(t) {
|
|
152
|
+
return t === void 0 && (t = {}), Object.values(t).some(function(e) {
|
|
153
|
+
return e == null;
|
|
154
|
+
}) ? (_ && console.error("updateOptions ignored! undefined & null options not allowed"), C) : C = c(e({}, S, C, t));
|
|
155
|
+
}, j = function(t) {
|
|
156
|
+
var r = e({
|
|
157
|
+
event: E,
|
|
158
|
+
isStart: !1,
|
|
159
|
+
isEnding: !1,
|
|
160
|
+
isMomentumCancel: !1,
|
|
161
|
+
isMomentum: T.isMomentum,
|
|
162
|
+
axisDelta: [
|
|
163
|
+
0,
|
|
164
|
+
0,
|
|
165
|
+
0
|
|
166
|
+
],
|
|
167
|
+
axisVelocity: T.axisVelocity,
|
|
168
|
+
axisMovement: T.axisMovement,
|
|
169
|
+
get axisMovementProjection() {
|
|
170
|
+
return o(r.axisMovement, r.axisVelocity.map(function(e) {
|
|
171
|
+
return n(e);
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
}, t);
|
|
175
|
+
h("wheel", e({}, r, { previous: O })), O = r;
|
|
176
|
+
}, M = function(e, t) {
|
|
177
|
+
var n = C.preventWheelAction, r = t[0], i = t[1], a = t[2];
|
|
178
|
+
if (typeof n == "boolean") return n;
|
|
179
|
+
switch (n) {
|
|
180
|
+
case "x": return Math.abs(r) >= e;
|
|
181
|
+
case "y": return Math.abs(i) >= e;
|
|
182
|
+
case "z": return Math.abs(a) >= e;
|
|
183
|
+
default: return _ && console.warn("unsupported preventWheelAction value: " + n, "warn"), !1;
|
|
184
|
+
}
|
|
185
|
+
}, N = function(e) {
|
|
186
|
+
var t = g(m(f(e), C.reverseSign)), n = t.axisDelta, r = t.timeStamp, i = s(n);
|
|
187
|
+
if (e.preventDefault && M(i, n) && e.preventDefault(), T.isStarted ? T.isMomentum && i > Math.max(2, T.lastAbsDelta * 2) && (U(!0), V()) : V(), i === 0 && Object.is && Object.is(e.deltaX, -0)) {
|
|
188
|
+
D = !0;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
E = e, T.axisMovement = o(T.axisMovement, n), T.lastAbsDelta = i, T.scrollPointsToMerge.push({
|
|
192
|
+
axisDelta: n,
|
|
193
|
+
timeStamp: r
|
|
194
|
+
}), P(), j({
|
|
195
|
+
axisDelta: n,
|
|
196
|
+
isStart: !T.isStartPublished
|
|
197
|
+
}), T.isStartPublished = !0, H();
|
|
198
|
+
}, P = function() {
|
|
199
|
+
T.scrollPointsToMerge.length === b ? (T.scrollPoints.unshift({
|
|
200
|
+
axisDeltaSum: T.scrollPointsToMerge.map(function(e) {
|
|
201
|
+
return e.axisDelta;
|
|
202
|
+
}).reduce(o),
|
|
203
|
+
timeStamp: i(T.scrollPointsToMerge.map(function(e) {
|
|
204
|
+
return e.timeStamp;
|
|
205
|
+
}))
|
|
206
|
+
}), I(), T.scrollPointsToMerge.length = 0, T.scrollPoints.length = 1, T.isMomentum || z()) : T.isStartPublished || F();
|
|
207
|
+
}, F = function() {
|
|
208
|
+
T.axisVelocity = r(T.scrollPointsToMerge).axisDelta.map(function(e) {
|
|
209
|
+
return e / T.willEndTimeout;
|
|
210
|
+
});
|
|
211
|
+
}, I = function() {
|
|
212
|
+
var e = T.scrollPoints, t = e[0], n = e[1];
|
|
213
|
+
if (!(!n || !t)) {
|
|
214
|
+
var r = t.timeStamp - n.timeStamp;
|
|
215
|
+
if (r <= 0) {
|
|
216
|
+
_ && console.warn("invalid deltaTime");
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
var i = t.axisDeltaSum.map(function(e) {
|
|
220
|
+
return e / r;
|
|
221
|
+
}), a = i.map(function(e, t) {
|
|
222
|
+
return e / (T.axisVelocity[t] || 1);
|
|
223
|
+
});
|
|
224
|
+
T.axisVelocity = i, T.accelerationFactors.push(a), L(r);
|
|
225
|
+
}
|
|
226
|
+
}, L = function(e) {
|
|
227
|
+
var t = Math.ceil(e / 10) * 10 * 1.2;
|
|
228
|
+
T.isMomentum || (t = Math.max(100, t * 2)), T.willEndTimeout = Math.min(1e3, Math.round(t));
|
|
229
|
+
}, R = function(e) {
|
|
230
|
+
return e === 0 ? !0 : e <= y && e >= v;
|
|
231
|
+
}, z = function() {
|
|
232
|
+
if (T.accelerationFactors.length >= x) {
|
|
233
|
+
if (D && (D = !1, s(T.axisVelocity) >= .2)) {
|
|
234
|
+
B();
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
var e = T.accelerationFactors.slice(x * -1);
|
|
238
|
+
e.every(function(e) {
|
|
239
|
+
var t = !!e.reduce(function(e, t) {
|
|
240
|
+
return e && e < 1 && e === t ? 1 : 0;
|
|
241
|
+
}), n = e.filter(R).length === e.length;
|
|
242
|
+
return t || n;
|
|
243
|
+
}) && B(), T.accelerationFactors = e;
|
|
244
|
+
}
|
|
245
|
+
}, B = function() {
|
|
246
|
+
T.isMomentum = !0;
|
|
247
|
+
}, V = function() {
|
|
248
|
+
T = w(), T.isStarted = !0, T.startTime = Date.now(), O = void 0, D = !1;
|
|
249
|
+
}, H = function() {
|
|
250
|
+
var e;
|
|
251
|
+
return function() {
|
|
252
|
+
clearTimeout(e), e = setTimeout(U, T.willEndTimeout);
|
|
253
|
+
};
|
|
254
|
+
}(), U = function(e) {
|
|
255
|
+
e === void 0 && (e = !1), T.isStarted && (T.isMomentum && e ? j({
|
|
256
|
+
isEnding: !0,
|
|
257
|
+
isMomentumCancel: !0
|
|
258
|
+
}) : j({ isEnding: !0 }), T.isMomentum = !1, T.isStarted = !1);
|
|
259
|
+
}, W = u(k), G = W.observe, K = W.unobserve, q = W.disconnect;
|
|
260
|
+
return A(t), c({
|
|
261
|
+
on: d,
|
|
262
|
+
off: p,
|
|
263
|
+
observe: G,
|
|
264
|
+
unobserve: K,
|
|
265
|
+
disconnect: q,
|
|
266
|
+
feedWheel: k,
|
|
267
|
+
updateOptions: A
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region node_modules/.pnpm/embla-carousel-wheel-gestures@8.1.0_embla-carousel@8.6.0/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js
|
|
272
|
+
var E = {
|
|
273
|
+
active: !0,
|
|
274
|
+
breakpoints: {},
|
|
275
|
+
wheelDraggingClass: "is-wheel-dragging",
|
|
276
|
+
forceWheelAxis: void 0,
|
|
277
|
+
target: void 0
|
|
278
|
+
};
|
|
279
|
+
O.globalOptions = void 0;
|
|
280
|
+
var D = process.env.NODE_ENV !== "production";
|
|
281
|
+
function O(e) {
|
|
282
|
+
e === void 0 && (e = {});
|
|
283
|
+
var t, n = function() {};
|
|
284
|
+
function r(r, i) {
|
|
285
|
+
var a = i.mergeOptions, o = i.optionsAtMedia;
|
|
286
|
+
t = o(a(a(E, O.globalOptions), e));
|
|
287
|
+
var s = r.internalEngine(), c = t.target ?? r.containerNode().parentNode, l = t.forceWheelAxis ?? s.options.axis, u = T({
|
|
288
|
+
preventWheelAction: l,
|
|
289
|
+
reverseSign: [
|
|
290
|
+
!0,
|
|
291
|
+
!0,
|
|
292
|
+
!1
|
|
293
|
+
]
|
|
294
|
+
});
|
|
295
|
+
function d() {
|
|
296
|
+
_ = (l === "x" ? s.containerRect.width : s.containerRect.height) / 2;
|
|
297
|
+
}
|
|
298
|
+
var f = u.observe(c), p = u.on("wheel", M), m = !1, h, g = 0, _ = 0, v = !1;
|
|
299
|
+
d(), r.on("resize", d);
|
|
300
|
+
function y(e) {
|
|
301
|
+
try {
|
|
302
|
+
h = new MouseEvent("mousedown", e.event), k(h);
|
|
303
|
+
} catch {
|
|
304
|
+
return D && console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"), n();
|
|
305
|
+
}
|
|
306
|
+
m = !0, g = 0, x(), t.wheelDraggingClass && c.classList.add(t.wheelDraggingClass);
|
|
307
|
+
}
|
|
308
|
+
function b(e) {
|
|
309
|
+
m = !1, k(w("mouseup", e)), S(), t.wheelDraggingClass && c.classList.remove(t.wheelDraggingClass);
|
|
310
|
+
}
|
|
311
|
+
function x() {
|
|
312
|
+
document.documentElement.addEventListener("mousemove", C, !0), document.documentElement.addEventListener("mouseup", C, !0), document.documentElement.addEventListener("mousedown", C, !0);
|
|
313
|
+
}
|
|
314
|
+
function S() {
|
|
315
|
+
document.documentElement.removeEventListener("mousemove", C, !0), document.documentElement.removeEventListener("mouseup", C, !0), document.documentElement.removeEventListener("mousedown", C, !0);
|
|
316
|
+
}
|
|
317
|
+
function C(e) {
|
|
318
|
+
m && e.isTrusted && e.stopImmediatePropagation();
|
|
319
|
+
}
|
|
320
|
+
function w(e, t) {
|
|
321
|
+
var n, r;
|
|
322
|
+
if (l === s.options.axis) {
|
|
323
|
+
var i = t.axisMovement;
|
|
324
|
+
n = i[0], r = i[1];
|
|
325
|
+
} else {
|
|
326
|
+
var a = t.axisMovement;
|
|
327
|
+
r = a[0], n = a[1];
|
|
328
|
+
}
|
|
329
|
+
if (A(t).isAtBoundary) {
|
|
330
|
+
var o = .25 + Math.min(g / _, 1) * .5, c = g * (n > 0 ? -1 : 1) * o;
|
|
331
|
+
n += c, r += c;
|
|
332
|
+
}
|
|
333
|
+
if (!s.options.skipSnaps && !s.options.dragFree) {
|
|
334
|
+
var u = s.containerRect.width, d = s.containerRect.height;
|
|
335
|
+
n = n < 0 ? Math.max(n, -u) : Math.min(n, u), r = r < 0 ? Math.max(r, -d) : Math.min(r, d);
|
|
336
|
+
}
|
|
337
|
+
return new MouseEvent(e, {
|
|
338
|
+
clientX: h.clientX + n,
|
|
339
|
+
clientY: h.clientY + r,
|
|
340
|
+
screenX: h.screenX + n,
|
|
341
|
+
screenY: h.screenY + r,
|
|
342
|
+
movementX: n,
|
|
343
|
+
movementY: r,
|
|
344
|
+
button: 0,
|
|
345
|
+
bubbles: !0,
|
|
346
|
+
cancelable: !0,
|
|
347
|
+
composed: !0
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
function k(e) {
|
|
351
|
+
r.containerNode().dispatchEvent(e);
|
|
352
|
+
}
|
|
353
|
+
function A(e) {
|
|
354
|
+
var t = e.axisDelta, n = t[0], i = t[1], a = r.scrollProgress(), o = a < 1, s = a > 0, c = l === "x" ? n : i;
|
|
355
|
+
return {
|
|
356
|
+
isAtBoundary: c < 0 && !o || c > 0 && !s,
|
|
357
|
+
primaryAxisDelta: c
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function j(e) {
|
|
361
|
+
var t = A(e), n = t.isAtBoundary, r = t.primaryAxisDelta;
|
|
362
|
+
if (n && !e.isMomentum) {
|
|
363
|
+
if (g += Math.abs(r), g > _) return v = !0, b(e), !0;
|
|
364
|
+
} else g = 0;
|
|
365
|
+
return !1;
|
|
366
|
+
}
|
|
367
|
+
function M(e) {
|
|
368
|
+
var t = e.axisDelta, n = t[0], r = t[1], i = l === "x" ? n : r, a = l === "x" ? r : n, o = e.isMomentum && e.previous && !e.previous.isMomentum, s = e.isEnding && !e.isMomentum || o;
|
|
369
|
+
Math.abs(i) > Math.abs(a) && !m && !e.isMomentum && !v && y(e), v && e.isEnding && (v = !1), m && (j(e) || (s ? b(e) : k(w("mousemove", e))));
|
|
370
|
+
}
|
|
371
|
+
n = function() {
|
|
372
|
+
f(), p(), r.off("resize", d), S();
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
name: "wheelGestures",
|
|
377
|
+
options: e,
|
|
378
|
+
init: r,
|
|
379
|
+
destroy: function() {
|
|
380
|
+
return n();
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
//#endregion
|
|
385
|
+
export { O as WheelGesturesPlugin, O as default };
|
package/dist/index.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
[data-color-picker-background][data-v-
|
|
1
|
+
[data-color-picker-background][data-v-6f75a166]{background-image:linear-gradient(0deg,#000 0,#0000),linear-gradient(90deg,#fff 0,#fff0)}[data-color-picker-track][data-v-6f75a166]{background-image:linear-gradient(red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}
|
|
2
|
+
/*$vite$:1*/
|