@danielcruzcode/ui-core 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -0
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs39.js +1 -0
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm11.js +1 -1
- package/dist/index.esm13.js +1 -1
- package/dist/index.esm14.js +5 -3
- package/dist/index.esm15.js +3 -9
- package/dist/index.esm16.js +3 -22
- package/dist/index.esm17.js +8 -8
- package/dist/index.esm18.js +8 -4
- package/dist/index.esm2.js +1 -1
- package/dist/index.esm22.js +3 -3
- package/dist/index.esm25.js +7 -3
- package/dist/index.esm26.js +22 -11
- package/dist/index.esm28.js +3 -7
- package/dist/index.esm3.js +1 -1
- package/dist/index.esm30.js +11 -3
- package/dist/index.esm31.js +1 -0
- package/dist/index.esm34.js +88 -1
- package/dist/index.esm39.js +2028 -0
- package/dist/index.esm4.js +1 -1
- package/dist/index.esm40.js +53 -2021
- package/dist/index.esm41.js +186 -55
- package/dist/index.esm6.js +1 -1
- package/dist/index.esm7.js +1 -1
- package/dist/index.esm8.js +1 -1
- package/dist/index.esm9.js +1 -1
- package/package.json +9 -5
- package/styles.css +1 -0
- package/dist/index.cjs33.js +0 -1
- package/dist/index.cjs42.js +0 -1
- package/dist/index.esm33.js +0 -88
- package/dist/index.esm42.js +0 -191
package/dist/index.esm42.js
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { s as z } from "./index.esm50.js";
|
|
2
|
-
const L = [
|
|
3
|
-
"eventsPrefix",
|
|
4
|
-
"injectStyles",
|
|
5
|
-
"injectStylesUrls",
|
|
6
|
-
"modules",
|
|
7
|
-
"init",
|
|
8
|
-
"_direction",
|
|
9
|
-
"oneWayMovement",
|
|
10
|
-
"swiperElementNodeName",
|
|
11
|
-
"touchEventsTarget",
|
|
12
|
-
"initialSlide",
|
|
13
|
-
"_speed",
|
|
14
|
-
"cssMode",
|
|
15
|
-
"updateOnWindowResize",
|
|
16
|
-
"resizeObserver",
|
|
17
|
-
"nested",
|
|
18
|
-
"focusableElements",
|
|
19
|
-
"_enabled",
|
|
20
|
-
"_width",
|
|
21
|
-
"_height",
|
|
22
|
-
"preventInteractionOnTransition",
|
|
23
|
-
"userAgent",
|
|
24
|
-
"url",
|
|
25
|
-
"_edgeSwipeDetection",
|
|
26
|
-
"_edgeSwipeThreshold",
|
|
27
|
-
"_freeMode",
|
|
28
|
-
"_autoHeight",
|
|
29
|
-
"setWrapperSize",
|
|
30
|
-
"virtualTranslate",
|
|
31
|
-
"_effect",
|
|
32
|
-
"breakpoints",
|
|
33
|
-
"breakpointsBase",
|
|
34
|
-
"_spaceBetween",
|
|
35
|
-
"_slidesPerView",
|
|
36
|
-
"maxBackfaceHiddenSlides",
|
|
37
|
-
"_grid",
|
|
38
|
-
"_slidesPerGroup",
|
|
39
|
-
"_slidesPerGroupSkip",
|
|
40
|
-
"_slidesPerGroupAuto",
|
|
41
|
-
"_centeredSlides",
|
|
42
|
-
"_centeredSlidesBounds",
|
|
43
|
-
"_slidesOffsetBefore",
|
|
44
|
-
"_slidesOffsetAfter",
|
|
45
|
-
"normalizeSlideIndex",
|
|
46
|
-
"_centerInsufficientSlides",
|
|
47
|
-
"_snapToSlideEdge",
|
|
48
|
-
"_watchOverflow",
|
|
49
|
-
"roundLengths",
|
|
50
|
-
"touchRatio",
|
|
51
|
-
"touchAngle",
|
|
52
|
-
"simulateTouch",
|
|
53
|
-
"_shortSwipes",
|
|
54
|
-
"_longSwipes",
|
|
55
|
-
"longSwipesRatio",
|
|
56
|
-
"longSwipesMs",
|
|
57
|
-
"_followFinger",
|
|
58
|
-
"allowTouchMove",
|
|
59
|
-
"_threshold",
|
|
60
|
-
"touchMoveStopPropagation",
|
|
61
|
-
"touchStartPreventDefault",
|
|
62
|
-
"touchStartForcePreventDefault",
|
|
63
|
-
"touchReleaseOnEdges",
|
|
64
|
-
"uniqueNavElements",
|
|
65
|
-
"_resistance",
|
|
66
|
-
"_resistanceRatio",
|
|
67
|
-
"_watchSlidesProgress",
|
|
68
|
-
"_grabCursor",
|
|
69
|
-
"preventClicks",
|
|
70
|
-
"preventClicksPropagation",
|
|
71
|
-
"_slideToClickedSlide",
|
|
72
|
-
"_loop",
|
|
73
|
-
"loopAdditionalSlides",
|
|
74
|
-
"loopAddBlankSlides",
|
|
75
|
-
"loopPreventsSliding",
|
|
76
|
-
"_rewind",
|
|
77
|
-
"_allowSlidePrev",
|
|
78
|
-
"_allowSlideNext",
|
|
79
|
-
"_swipeHandler",
|
|
80
|
-
"_noSwiping",
|
|
81
|
-
"noSwipingClass",
|
|
82
|
-
"noSwipingSelector",
|
|
83
|
-
"passiveListeners",
|
|
84
|
-
"containerModifierClass",
|
|
85
|
-
"slideClass",
|
|
86
|
-
"slideActiveClass",
|
|
87
|
-
"slideVisibleClass",
|
|
88
|
-
"slideFullyVisibleClass",
|
|
89
|
-
"slideNextClass",
|
|
90
|
-
"slidePrevClass",
|
|
91
|
-
"slideBlankClass",
|
|
92
|
-
"wrapperClass",
|
|
93
|
-
"lazyPreloaderClass",
|
|
94
|
-
"lazyPreloadPrevNext",
|
|
95
|
-
"runCallbacksOnInit",
|
|
96
|
-
"observer",
|
|
97
|
-
"observeParents",
|
|
98
|
-
"observeSlideChildren",
|
|
99
|
-
// modules
|
|
100
|
-
"a11y",
|
|
101
|
-
"_autoplay",
|
|
102
|
-
"_controller",
|
|
103
|
-
"coverflowEffect",
|
|
104
|
-
"cubeEffect",
|
|
105
|
-
"fadeEffect",
|
|
106
|
-
"flipEffect",
|
|
107
|
-
"creativeEffect",
|
|
108
|
-
"cardsEffect",
|
|
109
|
-
"hashNavigation",
|
|
110
|
-
"history",
|
|
111
|
-
"keyboard",
|
|
112
|
-
"mousewheel",
|
|
113
|
-
"_navigation",
|
|
114
|
-
"_pagination",
|
|
115
|
-
"parallax",
|
|
116
|
-
"_scrollbar",
|
|
117
|
-
"_thumbs",
|
|
118
|
-
"virtual",
|
|
119
|
-
"zoom",
|
|
120
|
-
"control"
|
|
121
|
-
];
|
|
122
|
-
function _(e) {
|
|
123
|
-
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object" && !e.__swiper__;
|
|
124
|
-
}
|
|
125
|
-
function I(e, o) {
|
|
126
|
-
const l = ["__proto__", "constructor", "prototype"];
|
|
127
|
-
Object.keys(o).filter((t) => l.indexOf(t) < 0).forEach((t) => {
|
|
128
|
-
typeof e[t] > "u" ? e[t] = o[t] : _(o[t]) && _(e[t]) && Object.keys(o[t]).length > 0 ? o[t].__swiper__ ? e[t] = o[t] : I(e[t], o[t]) : e[t] = o[t];
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function A(e = {}) {
|
|
132
|
-
return e.navigation && typeof e.navigation.nextEl > "u" && typeof e.navigation.prevEl > "u";
|
|
133
|
-
}
|
|
134
|
-
function B(e = {}) {
|
|
135
|
-
return e.pagination && typeof e.pagination.el > "u";
|
|
136
|
-
}
|
|
137
|
-
function E(e = {}) {
|
|
138
|
-
return e.scrollbar && typeof e.scrollbar.el > "u";
|
|
139
|
-
}
|
|
140
|
-
function D(e = "") {
|
|
141
|
-
const o = e.split(" ").map((t) => t.trim()).filter((t) => !!t), l = [];
|
|
142
|
-
return o.forEach((t) => {
|
|
143
|
-
l.indexOf(t) < 0 && l.push(t);
|
|
144
|
-
}), l.join(" ");
|
|
145
|
-
}
|
|
146
|
-
function R(e = "") {
|
|
147
|
-
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
148
|
-
}
|
|
149
|
-
function H({
|
|
150
|
-
swiper: e,
|
|
151
|
-
slides: o,
|
|
152
|
-
passedParams: l,
|
|
153
|
-
changedParams: t,
|
|
154
|
-
nextEl: r,
|
|
155
|
-
prevEl: d,
|
|
156
|
-
scrollbarEl: u,
|
|
157
|
-
paginationEl: f
|
|
158
|
-
}) {
|
|
159
|
-
const S = t.filter((i) => i !== "children" && i !== "direction" && i !== "wrapperClass"), {
|
|
160
|
-
params: n,
|
|
161
|
-
pagination: a,
|
|
162
|
-
navigation: c,
|
|
163
|
-
scrollbar: p,
|
|
164
|
-
virtual: s,
|
|
165
|
-
thumbs: h
|
|
166
|
-
} = e;
|
|
167
|
-
let C, b, w, O, x, N, T, v;
|
|
168
|
-
t.includes("thumbs") && l.thumbs && l.thumbs.swiper && !l.thumbs.swiper.destroyed && n.thumbs && (!n.thumbs.swiper || n.thumbs.swiper.destroyed) && (C = !0), t.includes("controller") && l.controller && l.controller.control && n.controller && !n.controller.control && (b = !0), t.includes("pagination") && l.pagination && (l.pagination.el || f) && (n.pagination || n.pagination === !1) && a && !a.el && (w = !0), t.includes("scrollbar") && l.scrollbar && (l.scrollbar.el || u) && (n.scrollbar || n.scrollbar === !1) && p && !p.el && (O = !0), t.includes("navigation") && l.navigation && (l.navigation.prevEl || d) && (l.navigation.nextEl || r) && (n.navigation || n.navigation === !1) && c && !c.prevEl && !c.nextEl && (x = !0);
|
|
169
|
-
const j = (i) => {
|
|
170
|
-
e[i] && (e[i].destroy(), i === "navigation" ? (e.isElement && (e[i].prevEl.remove(), e[i].nextEl.remove()), n[i].prevEl = void 0, n[i].nextEl = void 0, e[i].prevEl = void 0, e[i].nextEl = void 0) : (e.isElement && e[i].el.remove(), n[i].el = void 0, e[i].el = void 0));
|
|
171
|
-
};
|
|
172
|
-
t.includes("loop") && e.isElement && (n.loop && !l.loop ? N = !0 : !n.loop && l.loop ? T = !0 : v = !0), S.forEach((i) => {
|
|
173
|
-
if (_(n[i]) && _(l[i]))
|
|
174
|
-
Object.assign(n[i], l[i]), (i === "navigation" || i === "pagination" || i === "scrollbar") && "enabled" in l[i] && !l[i].enabled && j(i);
|
|
175
|
-
else {
|
|
176
|
-
const g = l[i];
|
|
177
|
-
(g === !0 || g === !1) && (i === "navigation" || i === "pagination" || i === "scrollbar") ? g === !1 && j(i) : n[i] = l[i];
|
|
178
|
-
}
|
|
179
|
-
}), S.includes("controller") && !b && e.controller && e.controller.control && n.controller && n.controller.control && (e.controller.control = n.controller.control), t.includes("children") && o && s && n.virtual.enabled ? (s.slides = o, s.update(!0)) : t.includes("virtual") && s && n.virtual.enabled && (o && (s.slides = o), s.update(!0)), t.includes("children") && o && n.loop && (v = !0), C && h.init() && h.update(!0), b && (e.controller.control = n.controller.control), w && (e.isElement && (!f || typeof f == "string") && (f = document.createElement("div"), f.classList.add("swiper-pagination"), f.part.add("pagination"), e.el.appendChild(f)), f && (n.pagination.el = f), a.init(), a.render(), a.update()), O && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-scrollbar"), u.part.add("scrollbar"), e.el.appendChild(u)), u && (n.scrollbar.el = u), p.init(), p.updateSize(), p.setTranslate()), x && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), z(r, e.navigation.arrowSvg), r.part.add("button-next"), e.el.appendChild(r)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), z(d, e.navigation.arrowSvg), d.part.add("button-prev"), e.el.appendChild(d))), r && (n.navigation.nextEl = r), d && (n.navigation.prevEl = d), c.init(), c.update()), t.includes("allowSlideNext") && (e.allowSlideNext = l.allowSlideNext), t.includes("allowSlidePrev") && (e.allowSlidePrev = l.allowSlidePrev), t.includes("direction") && e.changeDirection(l.direction, !1), (N || v) && e.loopDestroy(), (T || v) && e.loopCreate(), e.update();
|
|
180
|
-
}
|
|
181
|
-
export {
|
|
182
|
-
B as a,
|
|
183
|
-
E as b,
|
|
184
|
-
D as d,
|
|
185
|
-
I as e,
|
|
186
|
-
_ as i,
|
|
187
|
-
A as n,
|
|
188
|
-
L as p,
|
|
189
|
-
H as u,
|
|
190
|
-
R as w
|
|
191
|
-
};
|