evo-vue-carousel 1.1.2 → 1.1.3
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/evo-vue-carousel.js +167 -143
- package/dist/main.css +1 -1
- package/package.json +17 -17
package/dist/evo-vue-carousel.js
CHANGED
|
@@ -123,24 +123,22 @@ function unrefElement(e) {
|
|
|
123
123
|
return t?.$el ?? t;
|
|
124
124
|
}
|
|
125
125
|
function useEventListener(...e) {
|
|
126
|
-
let t =
|
|
127
|
-
t.forEach((e) => e()), t.length = 0;
|
|
128
|
-
}, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = computed(() => {
|
|
126
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = computed(() => {
|
|
129
127
|
let t = toArray$1(toValue(e[0])).filter((e) => e != null);
|
|
130
128
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
toArray$1(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
129
|
+
});
|
|
130
|
+
return watchImmediate(() => [
|
|
131
|
+
n.value?.map((e) => unrefElement(e)) ?? [defaultWindow].filter((e) => e != null),
|
|
132
|
+
toArray$1(toValue(n.value ? e[1] : e[0])),
|
|
133
|
+
toArray$1(unref(n.value ? e[2] : e[1])),
|
|
134
|
+
toValue(n.value ? e[3] : e[2])
|
|
135
|
+
], ([e, n, r, a], s, c) => {
|
|
136
|
+
if (!e?.length || !n?.length || !r?.length) return;
|
|
137
|
+
let l = isObject$1(a) ? { ...a } : a, u = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, l))));
|
|
138
|
+
c(() => {
|
|
139
|
+
u.forEach((e) => e());
|
|
140
|
+
});
|
|
140
141
|
}, { flush: "post" });
|
|
141
|
-
return tryOnScopeDispose(n), () => {
|
|
142
|
-
s(), n();
|
|
143
|
-
};
|
|
144
142
|
}
|
|
145
143
|
function useMounted() {
|
|
146
144
|
let e = shallowRef(!1), t = getCurrentInstance();
|
|
@@ -154,7 +152,7 @@ function useSupported(e) {
|
|
|
154
152
|
return computed(() => (t.value, !!e()));
|
|
155
153
|
}
|
|
156
154
|
function useMutationObserver(e, t, n = {}) {
|
|
157
|
-
let { window: r = defaultWindow
|
|
155
|
+
let { window: r = defaultWindow, ...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "MutationObserver" in r), u = () => {
|
|
158
156
|
s &&= (s.disconnect(), void 0);
|
|
159
157
|
}, d = watch(computed(() => {
|
|
160
158
|
let t = toArray$1(toValue(e)).map(unrefElement).filter(notNullish);
|
|
@@ -217,7 +215,7 @@ function useMediaQuery(e, t = {}) {
|
|
|
217
215
|
}, { passive: !0 }), computed(() => u.value);
|
|
218
216
|
}
|
|
219
217
|
function useResizeObserver(e, t, n = {}) {
|
|
220
|
-
let { window: r = defaultWindow
|
|
218
|
+
let { window: r = defaultWindow, ...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "ResizeObserver" in r), u = () => {
|
|
221
219
|
s &&= (s.disconnect(), void 0);
|
|
222
220
|
}, d = watch(computed(() => {
|
|
223
221
|
let t = toValue(e);
|
|
@@ -951,7 +949,7 @@ function isObjectMatch(e, t, n, r) {
|
|
|
951
949
|
if (t instanceof Map) return isMapMatch(e, t, n, r);
|
|
952
950
|
if (t instanceof Set) return isSetMatch(e, t, n, r);
|
|
953
951
|
let a = Object.keys(t);
|
|
954
|
-
if (e == null) return a.length === 0;
|
|
952
|
+
if (e == null || isPrimitive(e)) return a.length === 0;
|
|
955
953
|
if (a.length === 0) return !0;
|
|
956
954
|
if (r?.has(t)) return r.get(t) === e;
|
|
957
955
|
r?.set(t, e);
|
|
@@ -1082,119 +1080,148 @@ function slice(e, t, n) {
|
|
|
1082
1080
|
for (let n = 0; n < a; ++n) s[n] = e[t + n];
|
|
1083
1081
|
return s;
|
|
1084
1082
|
}
|
|
1085
|
-
var
|
|
1083
|
+
var concatArrays = (e, t) => {
|
|
1084
|
+
let n = Array(e.length + t.length);
|
|
1085
|
+
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
1086
|
+
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
1087
|
+
return n;
|
|
1088
|
+
}, createClassValidatorObject = (e, t) => ({
|
|
1089
|
+
classGroupId: e,
|
|
1090
|
+
validator: t
|
|
1091
|
+
}), createClassPartObject = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1092
|
+
nextPart: e,
|
|
1093
|
+
validators: t,
|
|
1094
|
+
classGroupId: n
|
|
1095
|
+
}), CLASS_PART_SEPARATOR = "-", EMPTY_CONFLICTS = [], ARBITRARY_PROPERTY_PREFIX = "arbitrary..", createClassGroupUtils = (e) => {
|
|
1086
1096
|
let t = createClassMap(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
1087
1097
|
return {
|
|
1088
1098
|
getClassGroupId: (e) => {
|
|
1099
|
+
if (e.startsWith("[") && e.endsWith("]")) return getGroupIdForArbitraryProperty(e);
|
|
1089
1100
|
let n = e.split(CLASS_PART_SEPARATOR);
|
|
1090
|
-
return n[0] === "" && n.length
|
|
1101
|
+
return getGroupRecursive(n, n[0] === "" && n.length > 1 ? 1 : 0, t);
|
|
1091
1102
|
},
|
|
1092
1103
|
getConflictingClassGroupIds: (e, t) => {
|
|
1093
|
-
|
|
1094
|
-
|
|
1104
|
+
if (t) {
|
|
1105
|
+
let t = r[e], a = n[e];
|
|
1106
|
+
return t ? a ? concatArrays(a, t) : t : a || EMPTY_CONFLICTS;
|
|
1107
|
+
}
|
|
1108
|
+
return n[e] || EMPTY_CONFLICTS;
|
|
1095
1109
|
}
|
|
1096
1110
|
};
|
|
1097
|
-
}, getGroupRecursive = (e, t) => {
|
|
1098
|
-
if (e.length === 0) return
|
|
1099
|
-
let
|
|
1100
|
-
if (a)
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
return t.validators.find(({ validator: e }) => e(s))?.classGroupId;
|
|
1104
|
-
}, arbitraryPropertyRegex = /^\[(.+)\]$/, getGroupIdForArbitraryProperty = (e) => {
|
|
1105
|
-
if (arbitraryPropertyRegex.test(e)) {
|
|
1106
|
-
let t = arbitraryPropertyRegex.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
|
|
1107
|
-
if (n) return "arbitrary.." + n;
|
|
1111
|
+
}, getGroupRecursive = (e, t, n) => {
|
|
1112
|
+
if (e.length - t === 0) return n.classGroupId;
|
|
1113
|
+
let r = e[t], a = n.nextPart.get(r);
|
|
1114
|
+
if (a) {
|
|
1115
|
+
let n = getGroupRecursive(e, t + 1, a);
|
|
1116
|
+
if (n) return n;
|
|
1108
1117
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1118
|
+
let s = n.validators;
|
|
1119
|
+
if (s === null) return;
|
|
1120
|
+
let c = t === 0 ? e.join(CLASS_PART_SEPARATOR) : e.slice(t).join(CLASS_PART_SEPARATOR), l = s.length;
|
|
1121
|
+
for (let e = 0; e < l; e++) {
|
|
1122
|
+
let t = s[e];
|
|
1123
|
+
if (t.validator(c)) return t.classGroupId;
|
|
1124
|
+
}
|
|
1125
|
+
}, getGroupIdForArbitraryProperty = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1126
|
+
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1127
|
+
return r ? ARBITRARY_PROPERTY_PREFIX + r : void 0;
|
|
1128
|
+
})(), createClassMap = (e) => {
|
|
1129
|
+
let { theme: t, classGroups: n } = e;
|
|
1130
|
+
return processClassGroups(n, t);
|
|
1131
|
+
}, processClassGroups = (e, t) => {
|
|
1132
|
+
let n = createClassPartObject();
|
|
1133
|
+
for (let r in e) {
|
|
1134
|
+
let a = e[r];
|
|
1135
|
+
processClassesRecursively(a, n, r, t);
|
|
1136
|
+
}
|
|
1137
|
+
return n;
|
|
1116
1138
|
}, processClassesRecursively = (e, t, n, r) => {
|
|
1117
|
-
e.
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1139
|
+
let a = e.length;
|
|
1140
|
+
for (let s = 0; s < a; s++) {
|
|
1141
|
+
let a = e[s];
|
|
1142
|
+
processClassDefinition(a, t, n, r);
|
|
1143
|
+
}
|
|
1144
|
+
}, processClassDefinition = (e, t, n, r) => {
|
|
1145
|
+
if (typeof e == "string") {
|
|
1146
|
+
processStringDefinition(e, t, n);
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
if (typeof e == "function") {
|
|
1150
|
+
processFunctionDefinition(e, t, n, r);
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
processObjectDefinition(e, t, n, r);
|
|
1154
|
+
}, processStringDefinition = (e, t, n) => {
|
|
1155
|
+
let r = e === "" ? t : getPart(t, e);
|
|
1156
|
+
r.classGroupId = n;
|
|
1157
|
+
}, processFunctionDefinition = (e, t, n, r) => {
|
|
1158
|
+
if (isThemeGetter(e)) {
|
|
1159
|
+
processClassesRecursively(e(r), t, n, r);
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
t.validators === null && (t.validators = []), t.validators.push(createClassValidatorObject(n, e));
|
|
1163
|
+
}, processObjectDefinition = (e, t, n, r) => {
|
|
1164
|
+
let a = Object.entries(e), s = a.length;
|
|
1165
|
+
for (let e = 0; e < s; e++) {
|
|
1166
|
+
let [s, c] = a[e];
|
|
1167
|
+
processClassesRecursively(c, getPart(t, s), n, r);
|
|
1168
|
+
}
|
|
1138
1169
|
}, getPart = (e, t) => {
|
|
1139
|
-
let n = e;
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}, isThemeGetter = (e) => e.isThemeGetter, createLruCache = (e) => {
|
|
1170
|
+
let n = e, r = t.split(CLASS_PART_SEPARATOR), a = r.length;
|
|
1171
|
+
for (let e = 0; e < a; e++) {
|
|
1172
|
+
let t = r[e], a = n.nextPart.get(t);
|
|
1173
|
+
a || (a = createClassPartObject(), n.nextPart.set(t, a)), n = a;
|
|
1174
|
+
}
|
|
1175
|
+
return n;
|
|
1176
|
+
}, isThemeGetter = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, createLruCache = (e) => {
|
|
1147
1177
|
if (e < 1) return {
|
|
1148
1178
|
get: () => void 0,
|
|
1149
1179
|
set: () => {}
|
|
1150
1180
|
};
|
|
1151
|
-
let t = 0, n =
|
|
1152
|
-
n
|
|
1181
|
+
let t = 0, n = Object.create(null), r = Object.create(null), a = (a, s) => {
|
|
1182
|
+
n[a] = s, t++, t > e && (t = 0, r = n, n = Object.create(null));
|
|
1153
1183
|
};
|
|
1154
1184
|
return {
|
|
1155
1185
|
get(e) {
|
|
1156
|
-
let t = n
|
|
1186
|
+
let t = n[e];
|
|
1157
1187
|
if (t !== void 0) return t;
|
|
1158
|
-
if ((t = r
|
|
1188
|
+
if ((t = r[e]) !== void 0) return a(e, t), t;
|
|
1159
1189
|
},
|
|
1160
1190
|
set(e, t) {
|
|
1161
|
-
|
|
1191
|
+
e in n ? n[e] = t : a(e, t);
|
|
1162
1192
|
}
|
|
1163
1193
|
};
|
|
1164
|
-
}, IMPORTANT_MODIFIER = "!", MODIFIER_SEPARATOR = ":",
|
|
1194
|
+
}, IMPORTANT_MODIFIER = "!", MODIFIER_SEPARATOR = ":", EMPTY_MODIFIERS = [], createResultObject = (e, t, n, r, a) => ({
|
|
1195
|
+
modifiers: e,
|
|
1196
|
+
hasImportantModifier: t,
|
|
1197
|
+
baseClassName: n,
|
|
1198
|
+
maybePostfixModifierPosition: r,
|
|
1199
|
+
isExternal: a
|
|
1200
|
+
}), createParseClassName = (e) => {
|
|
1165
1201
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
1166
|
-
let t = [], n = 0, r = 0, a = 0, s;
|
|
1167
|
-
for (let
|
|
1168
|
-
let
|
|
1202
|
+
let t = [], n = 0, r = 0, a = 0, s, c = e.length;
|
|
1203
|
+
for (let l = 0; l < c; l++) {
|
|
1204
|
+
let c = e[l];
|
|
1169
1205
|
if (n === 0 && r === 0) {
|
|
1170
|
-
if (
|
|
1171
|
-
t.push(e.slice(a,
|
|
1206
|
+
if (c === MODIFIER_SEPARATOR) {
|
|
1207
|
+
t.push(e.slice(a, l)), a = l + 1;
|
|
1172
1208
|
continue;
|
|
1173
1209
|
}
|
|
1174
|
-
if (
|
|
1175
|
-
s =
|
|
1210
|
+
if (c === "/") {
|
|
1211
|
+
s = l;
|
|
1176
1212
|
continue;
|
|
1177
1213
|
}
|
|
1178
1214
|
}
|
|
1179
|
-
|
|
1215
|
+
c === "[" ? n++ : c === "]" ? n-- : c === "(" ? r++ : c === ")" && r--;
|
|
1180
1216
|
}
|
|
1181
|
-
let
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
baseClassName: l,
|
|
1186
|
-
maybePostfixModifierPosition: s && s > a ? s - a : void 0
|
|
1187
|
-
};
|
|
1217
|
+
let l = t.length === 0 ? e : e.slice(a), u = l, d = !1;
|
|
1218
|
+
l.endsWith(IMPORTANT_MODIFIER) ? (u = l.slice(0, -1), d = !0) : l.startsWith(IMPORTANT_MODIFIER) && (u = l.slice(1), d = !0);
|
|
1219
|
+
let p = s && s > a ? s - a : void 0;
|
|
1220
|
+
return createResultObject(t, d, u, p);
|
|
1188
1221
|
};
|
|
1189
1222
|
if (t) {
|
|
1190
1223
|
let e = t + MODIFIER_SEPARATOR, n = r;
|
|
1191
|
-
r = (t) => t.startsWith(e) ? n(t.
|
|
1192
|
-
isExternal: !0,
|
|
1193
|
-
modifiers: [],
|
|
1194
|
-
hasImportantModifier: !1,
|
|
1195
|
-
baseClassName: t,
|
|
1196
|
-
maybePostfixModifierPosition: void 0
|
|
1197
|
-
};
|
|
1224
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : createResultObject(EMPTY_MODIFIERS, !1, t, void 0, !0);
|
|
1198
1225
|
}
|
|
1199
1226
|
if (n) {
|
|
1200
1227
|
let e = r;
|
|
@@ -1204,14 +1231,17 @@ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e) => {
|
|
|
1204
1231
|
});
|
|
1205
1232
|
}
|
|
1206
1233
|
return r;
|
|
1207
|
-
},
|
|
1208
|
-
let t =
|
|
1209
|
-
return (e) => {
|
|
1210
|
-
|
|
1234
|
+
}, createSortModifiers = (e) => {
|
|
1235
|
+
let t = /* @__PURE__ */ new Map();
|
|
1236
|
+
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
1237
|
+
t.set(e, 1e6 + n);
|
|
1238
|
+
}), (e) => {
|
|
1211
1239
|
let n = [], r = [];
|
|
1212
|
-
|
|
1213
|
-
e[0] === "["
|
|
1214
|
-
|
|
1240
|
+
for (let a = 0; a < e.length; a++) {
|
|
1241
|
+
let s = e[a], c = s[0] === "[", l = t.has(s);
|
|
1242
|
+
c || l ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(s)) : r.push(s);
|
|
1243
|
+
}
|
|
1244
|
+
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
1215
1245
|
};
|
|
1216
1246
|
}, createConfigUtils = (e) => ({
|
|
1217
1247
|
cache: createLruCache(e.cacheSize),
|
|
@@ -1238,8 +1268,8 @@ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e) => {
|
|
|
1238
1268
|
}
|
|
1239
1269
|
x = !1;
|
|
1240
1270
|
}
|
|
1241
|
-
let w = s(p).join(":"), T = m ? w + IMPORTANT_MODIFIER : w, E = T + C;
|
|
1242
|
-
if (c.
|
|
1271
|
+
let w = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), T = m ? w + IMPORTANT_MODIFIER : w, E = T + C;
|
|
1272
|
+
if (c.indexOf(E) > -1) continue;
|
|
1243
1273
|
c.push(E);
|
|
1244
1274
|
let D = a(C, x);
|
|
1245
1275
|
for (let e = 0; e < D.length; ++e) {
|
|
@@ -1249,35 +1279,25 @@ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e) => {
|
|
|
1249
1279
|
u = t + (u.length > 0 ? " " + u : u);
|
|
1250
1280
|
}
|
|
1251
1281
|
return u;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
}
|
|
1258
|
-
var toValue$1 = (e) => {
|
|
1282
|
+
}, twJoin = (...e) => {
|
|
1283
|
+
let t = 0, n, r, a = "";
|
|
1284
|
+
for (; t < e.length;) (n = e[t++]) && (r = toValue$1(n)) && (a && (a += " "), a += r);
|
|
1285
|
+
return a;
|
|
1286
|
+
}, toValue$1 = (e) => {
|
|
1259
1287
|
if (typeof e == "string") return e;
|
|
1260
1288
|
let t, n = "";
|
|
1261
1289
|
for (let r = 0; r < e.length; r++) e[r] && (t = toValue$1(e[r])) && (n && (n += " "), n += t);
|
|
1262
1290
|
return n;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
let n, r, a, s = c;
|
|
1266
|
-
function c(c) {
|
|
1267
|
-
return n = createConfigUtils(t.reduce((e, t) => t(e), e())), r = n.cache.get, a = n.cache.set, s = l, l(c);
|
|
1268
|
-
}
|
|
1269
|
-
function l(e) {
|
|
1291
|
+
}, createTailwindMerge = (e, ...t) => {
|
|
1292
|
+
let n, r, a, s, c = (c) => (n = createConfigUtils(t.reduce((e, t) => t(e), e())), r = n.cache.get, a = n.cache.set, s = l, l(c)), l = (e) => {
|
|
1270
1293
|
let t = r(e);
|
|
1271
1294
|
if (t) return t;
|
|
1272
1295
|
let s = mergeClassList(e, n);
|
|
1273
1296
|
return a(e, s), s;
|
|
1274
|
-
}
|
|
1275
|
-
return function() {
|
|
1276
|
-
return s(twJoin.apply(null, arguments));
|
|
1277
1297
|
};
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
let t = (t) => t[e] ||
|
|
1298
|
+
return s = c, (...e) => s(twJoin(...e));
|
|
1299
|
+
}, fallbackThemeArr = [], fromTheme = (e) => {
|
|
1300
|
+
let t = (t) => t[e] || fallbackThemeArr;
|
|
1281
1301
|
return t.isThemeGetter = !0, t;
|
|
1282
1302
|
}, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber = (e) => !!e && !Number.isNaN(Number(e)), isInteger = (e) => !!e && Number.isInteger(Number(e)), isPercent = (e) => e.endsWith("%") && isNumber(e.slice(0, -1)), isTshirtSize = (e) => tshirtUnitRegex.test(e), isAny = () => !0, isLengthOnly = (e) => lengthUnitRegex.test(e) && !colorFunctionRegex.test(e), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber), isArbitraryPosition = (e) => getIsArbitraryValue(e, isLabelPosition, isNever), isArbitraryImage = (e) => getIsArbitraryValue(e, isLabelImage, isImage), isArbitraryShadow = (e) => getIsArbitraryValue(e, isLabelShadow, isShadow), isArbitraryVariable = (e) => arbitraryVariableRegex.test(e), isArbitraryVariableLength = (e) => getIsArbitraryVariable(e, isLabelLength), isArbitraryVariableFamilyName = (e) => getIsArbitraryVariable(e, isLabelFamilyName), isArbitraryVariablePosition = (e) => getIsArbitraryVariable(e, isLabelPosition), isArbitraryVariableSize = (e) => getIsArbitraryVariable(e, isLabelSize), isArbitraryVariableImage = (e) => getIsArbitraryVariable(e, isLabelImage), isArbitraryVariableShadow = (e) => getIsArbitraryVariable(e, isLabelShadow, !0), getIsArbitraryValue = (e, t, n) => {
|
|
1283
1303
|
let r = arbitraryValueRegex.exec(e);
|
|
@@ -1402,13 +1422,13 @@ var fromTheme = (e) => {
|
|
|
1402
1422
|
isArbitraryVariablePosition,
|
|
1403
1423
|
isArbitraryPosition,
|
|
1404
1424
|
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
1405
|
-
],
|
|
1425
|
+
], vi = () => ["no-repeat", { repeat: [
|
|
1406
1426
|
"",
|
|
1407
1427
|
"x",
|
|
1408
1428
|
"y",
|
|
1409
1429
|
"space",
|
|
1410
1430
|
"round"
|
|
1411
|
-
] }],
|
|
1431
|
+
] }], yi = () => [
|
|
1412
1432
|
"auto",
|
|
1413
1433
|
"cover",
|
|
1414
1434
|
"contain",
|
|
@@ -1436,7 +1456,7 @@ var fromTheme = (e) => {
|
|
|
1436
1456
|
"dashed",
|
|
1437
1457
|
"dotted",
|
|
1438
1458
|
"double"
|
|
1439
|
-
],
|
|
1459
|
+
], bi = () => [
|
|
1440
1460
|
"normal",
|
|
1441
1461
|
"multiply",
|
|
1442
1462
|
"screen",
|
|
@@ -1458,7 +1478,7 @@ var fromTheme = (e) => {
|
|
|
1458
1478
|
isPercent,
|
|
1459
1479
|
isArbitraryVariablePosition,
|
|
1460
1480
|
isArbitraryPosition
|
|
1461
|
-
],
|
|
1481
|
+
], xi = () => [
|
|
1462
1482
|
"",
|
|
1463
1483
|
"none",
|
|
1464
1484
|
x,
|
|
@@ -1959,8 +1979,8 @@ var fromTheme = (e) => {
|
|
|
1959
1979
|
"content"
|
|
1960
1980
|
] }],
|
|
1961
1981
|
"bg-position": [{ bg: W() }],
|
|
1962
|
-
"bg-repeat": [{ bg:
|
|
1963
|
-
"bg-size": [{ bg:
|
|
1982
|
+
"bg-repeat": [{ bg: vi() }],
|
|
1983
|
+
"bg-size": [{ bg: yi() }],
|
|
1964
1984
|
"bg-image": [{ bg: [
|
|
1965
1985
|
"none",
|
|
1966
1986
|
{
|
|
@@ -2100,11 +2120,11 @@ var fromTheme = (e) => {
|
|
|
2100
2120
|
isArbitraryValue
|
|
2101
2121
|
] }],
|
|
2102
2122
|
"mix-blend": [{ "mix-blend": [
|
|
2103
|
-
...
|
|
2123
|
+
...bi(),
|
|
2104
2124
|
"plus-darker",
|
|
2105
2125
|
"plus-lighter"
|
|
2106
2126
|
] }],
|
|
2107
|
-
"bg-blend": [{ "bg-blend":
|
|
2127
|
+
"bg-blend": [{ "bg-blend": bi() }],
|
|
2108
2128
|
"mask-clip": [{ "mask-clip": [
|
|
2109
2129
|
"border",
|
|
2110
2130
|
"padding",
|
|
@@ -2178,8 +2198,8 @@ var fromTheme = (e) => {
|
|
|
2178
2198
|
"view"
|
|
2179
2199
|
] }],
|
|
2180
2200
|
"mask-position": [{ mask: W() }],
|
|
2181
|
-
"mask-repeat": [{ mask:
|
|
2182
|
-
"mask-size": [{ mask:
|
|
2201
|
+
"mask-repeat": [{ mask: vi() }],
|
|
2202
|
+
"mask-size": [{ mask: yi() }],
|
|
2183
2203
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2184
2204
|
"mask-image": [{ mask: [
|
|
2185
2205
|
"none",
|
|
@@ -2192,7 +2212,7 @@ var fromTheme = (e) => {
|
|
|
2192
2212
|
isArbitraryVariable,
|
|
2193
2213
|
isArbitraryValue
|
|
2194
2214
|
] }],
|
|
2195
|
-
blur: [{ blur:
|
|
2215
|
+
blur: [{ blur: xi() }],
|
|
2196
2216
|
brightness: [{ brightness: [
|
|
2197
2217
|
isNumber,
|
|
2198
2218
|
isArbitraryVariable,
|
|
@@ -2245,7 +2265,7 @@ var fromTheme = (e) => {
|
|
|
2245
2265
|
isArbitraryVariable,
|
|
2246
2266
|
isArbitraryValue
|
|
2247
2267
|
] }],
|
|
2248
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
2268
|
+
"backdrop-blur": [{ "backdrop-blur": xi() }],
|
|
2249
2269
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2250
2270
|
isNumber,
|
|
2251
2271
|
isArbitraryVariable,
|
|
@@ -3107,7 +3127,7 @@ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
|
|
|
3107
3127
|
});
|
|
3108
3128
|
}), () => h("div", {
|
|
3109
3129
|
ref: n,
|
|
3110
|
-
role: "
|
|
3130
|
+
role: "listitem",
|
|
3111
3131
|
"aria-roledescription": "slide",
|
|
3112
3132
|
"aria-hidden": e.isClone,
|
|
3113
3133
|
tabindex: e.isClone ? -1 : void 0
|
|
@@ -3130,7 +3150,7 @@ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
|
|
|
3130
3150
|
}
|
|
3131
3151
|
},
|
|
3132
3152
|
setup(e) {
|
|
3133
|
-
useCssVars((e) => ({
|
|
3153
|
+
useCssVars((e) => ({ v6ed04307: P.value }));
|
|
3134
3154
|
let t = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, n = Object.freeze({
|
|
3135
3155
|
element: !0,
|
|
3136
3156
|
component: !0,
|
|
@@ -3197,6 +3217,7 @@ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
|
|
|
3197
3217
|
T.value ? "transition-none" : "transition-all motion-reduce:transition-none",
|
|
3198
3218
|
a.value.slideTransitionTimingClass
|
|
3199
3219
|
]),
|
|
3220
|
+
role: "list",
|
|
3200
3221
|
style: D.value,
|
|
3201
3222
|
onTransitionstart: B,
|
|
3202
3223
|
onTransitionend: V
|
|
@@ -3217,7 +3238,7 @@ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
|
|
|
3217
3238
|
_: 1
|
|
3218
3239
|
}, 8, ["slots"])], 8, _hoisted_1$1));
|
|
3219
3240
|
}
|
|
3220
|
-
}, [["__scopeId", "data-v-
|
|
3241
|
+
}, [["__scopeId", "data-v-932c4d31"]]), _hoisted_1 = ["data-height"], Gallery_default = {
|
|
3221
3242
|
__name: "Gallery",
|
|
3222
3243
|
props: {
|
|
3223
3244
|
totalSlides: {
|
|
@@ -3248,11 +3269,14 @@ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
|
|
|
3248
3269
|
let n = 0, r = replaceChildren(e, (e) => {
|
|
3249
3270
|
let t = h(Slide_default, {
|
|
3250
3271
|
class: normalizeClass(["evo-vue-carousel__slide evo-vue-carousel__slide--visible w-full h-full", { hidden: l.value.includes(n) === !1 }]),
|
|
3251
|
-
role: "
|
|
3272
|
+
role: "listitem"
|
|
3252
3273
|
}, { default: () => [e] });
|
|
3253
3274
|
return n++, t;
|
|
3254
3275
|
}, COMPONENTS_AND_ELEMENTS), c = concat(slice(r, s.value), slice(r, 0, s.value));
|
|
3255
|
-
return h("div", {
|
|
3276
|
+
return h("div", {
|
|
3277
|
+
role: "list",
|
|
3278
|
+
class: normalizeClass(["flex h-full overflow-hidden"])
|
|
3279
|
+
}, c);
|
|
3256
3280
|
};
|
|
3257
3281
|
} };
|
|
3258
3282
|
return (e, t) => (openBlock(), createElementBlock("div", {
|
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.evo-vue-carousel__pagination{pointer-events:none}.evo-vue-carousel__pagination>*{pointer-events:auto}.evo-vue-carousel__navigation{pointer-events:none}.evo-vue-carousel__navigation>*{pointer-events:auto}.evo-vue-carousel__viewport-track[data-v-
|
|
1
|
+
.evo-vue-carousel__pagination{pointer-events:none}.evo-vue-carousel__pagination>*{pointer-events:auto}.evo-vue-carousel__navigation{pointer-events:none}.evo-vue-carousel__navigation>*{pointer-events:auto}.evo-vue-carousel__viewport-track[data-v-932c4d31]{--slide-width:var(--v6ed04307)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evo-vue-carousel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"files": [
|
|
@@ -31,29 +31,29 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@evomark/vue-forward-slots": "^6.2.2",
|
|
33
33
|
"@skirtle/vue-vnode-utils": "^0.2.0",
|
|
34
|
-
"@vueuse/core": "^14.
|
|
35
|
-
"es-toolkit": "^1.
|
|
34
|
+
"@vueuse/core": "^14.1.0",
|
|
35
|
+
"es-toolkit": "^1.43.0",
|
|
36
36
|
"vue3-icon": "^3.0.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint/js": "^9.39.
|
|
39
|
+
"@eslint/js": "^9.39.2",
|
|
40
40
|
"@testing-library/vue": "^8.1.0",
|
|
41
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
41
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
42
42
|
"@vue/test-utils": "^2.4.6",
|
|
43
|
-
"eslint": "^9.39.
|
|
43
|
+
"eslint": "^9.39.2",
|
|
44
44
|
"eslint-config-prettier": "^10.1.8",
|
|
45
|
-
"eslint-plugin-jsdoc": "^
|
|
46
|
-
"eslint-plugin-vue": "^10.
|
|
47
|
-
"globals": "^
|
|
48
|
-
"jsdom": "^27.
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"tailwind-merge": "^3.
|
|
51
|
-
"tailwindcss": "^4.1.
|
|
52
|
-
"vite": "npm:rolldown-vite@^7.
|
|
45
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
46
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
47
|
+
"globals": "^17.0.0",
|
|
48
|
+
"jsdom": "^27.4.0",
|
|
49
|
+
"prettier": "^3.7.4",
|
|
50
|
+
"tailwind-merge": "^3.4.0",
|
|
51
|
+
"tailwindcss": "^4.1.18",
|
|
52
|
+
"vite": "npm:rolldown-vite@^7.3.1",
|
|
53
53
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
54
|
-
"vitest": "^4.0.
|
|
54
|
+
"vitest": "^4.0.17",
|
|
55
55
|
"vitest-axe": "^0.1.0",
|
|
56
|
-
"vue": "^3.5.
|
|
56
|
+
"vue": "^3.5.26",
|
|
57
57
|
"vue-eslint-parser": "^10.2.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"vue": "^3.4.38"
|
|
62
62
|
},
|
|
63
63
|
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
|
|
64
|
-
}
|
|
64
|
+
}
|