japhy-custom-elements 1.0.26 → 1.0.27
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as W, v as Y, c as Z } from "./index-
|
|
1
|
+
import { g as W, v as Y, c as Z } from "./index-CtxiKF82.mjs";
|
|
2
2
|
var R = { exports: {} };
|
|
3
|
+
/*!
|
|
4
|
+
* vue-awesome-swiper v4.1.1
|
|
5
|
+
* Copyright (c) Surmon. All rights reserved.
|
|
6
|
+
* Released under the MIT License.
|
|
7
|
+
* Surmon <https://github.com/surmon-china>
|
|
8
|
+
*/
|
|
3
9
|
(function(z, Q) {
|
|
4
|
-
/*!
|
|
5
|
-
* vue-awesome-swiper v4.1.1
|
|
6
|
-
* Copyright (c) Surmon. All rights reserved.
|
|
7
|
-
* Released under the MIT License.
|
|
8
|
-
* Surmon <https://github.com/surmon-china>
|
|
9
|
-
*/
|
|
10
10
|
(function(_, p) {
|
|
11
11
|
z.exports = p(Y);
|
|
12
12
|
})(Z, function(_) {
|
|
@@ -60,38 +60,38 @@ var R = { exports: {} };
|
|
|
60
60
|
"loopFix"
|
|
61
61
|
];
|
|
62
62
|
/*! *****************************************************************************
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
64
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
65
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
66
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
69
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
70
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
71
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
74
|
+
and limitations under the License.
|
|
75
|
+
***************************************************************************** */
|
|
76
76
|
function B() {
|
|
77
77
|
for (var t = 0, n = 0, e = arguments.length; n < e; n++) t += arguments[n].length;
|
|
78
78
|
for (var r = Array(t), a = 0, n = 0; n < e; n++)
|
|
79
|
-
for (var
|
|
80
|
-
r[a] =
|
|
79
|
+
for (var v = arguments[n], u = 0, w = v.length; u < w; u++, a++)
|
|
80
|
+
r[a] = v[u];
|
|
81
81
|
return r;
|
|
82
82
|
}
|
|
83
83
|
var O = function(t) {
|
|
84
84
|
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\s+/g, "-").toLowerCase();
|
|
85
85
|
}, T = function(t, n, e) {
|
|
86
|
-
var r, a,
|
|
86
|
+
var r, a, v;
|
|
87
87
|
if (t && !t.destroyed) {
|
|
88
88
|
var u = ((r = n.composedPath) === null || r === void 0 ? void 0 : r.call(n)) || n.path;
|
|
89
89
|
if (n != null && n.target && u) {
|
|
90
90
|
var w = Array.from(t.slides), i = Array.from(u);
|
|
91
|
-
if (w.includes(n.target) || i.some(function(
|
|
92
|
-
return w.includes(
|
|
91
|
+
if (w.includes(n.target) || i.some(function(c) {
|
|
92
|
+
return w.includes(c);
|
|
93
93
|
})) {
|
|
94
|
-
var l = t.clickedIndex, o = Number((
|
|
94
|
+
var l = t.clickedIndex, o = Number((v = (a = t.clickedSlide) === null || a === void 0 ? void 0 : a.dataset) === null || v === void 0 ? void 0 : v.swiperSlideIndex), s = Number.isInteger(o) ? o : null;
|
|
95
95
|
e(b.ClickSlide, l, s), e(O(b.ClickSlide), l, s);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -99,8 +99,8 @@ var R = { exports: {} };
|
|
|
99
99
|
}, k = function(t, n) {
|
|
100
100
|
L.forEach(function(e) {
|
|
101
101
|
t.on(e, function() {
|
|
102
|
-
for (var r = arguments, a = [],
|
|
103
|
-
a[
|
|
102
|
+
for (var r = arguments, a = [], v = 0; v < arguments.length; v++)
|
|
103
|
+
a[v] = r[v];
|
|
104
104
|
n.apply(void 0, B([e], a));
|
|
105
105
|
var u = O(e);
|
|
106
106
|
u !== e && n.apply(void 0, B([u], a));
|
|
@@ -109,23 +109,23 @@ var R = { exports: {} };
|
|
|
109
109
|
}, M = "instanceName";
|
|
110
110
|
function U(t, n) {
|
|
111
111
|
var e = function(i, l) {
|
|
112
|
-
var o, s,
|
|
113
|
-
return g !== void 0 ? g : (d = (
|
|
112
|
+
var o, s, c, d, g = (s = (o = i.data) === null || o === void 0 ? void 0 : o.attrs) === null || s === void 0 ? void 0 : s[l];
|
|
113
|
+
return g !== void 0 ? g : (d = (c = i.data) === null || c === void 0 ? void 0 : c.attrs) === null || d === void 0 ? void 0 : d[O(l)];
|
|
114
114
|
}, r = function(i, l, o) {
|
|
115
115
|
return l.arg || e(o, M) || i.id || p.SwiperInstance;
|
|
116
116
|
}, a = function(i, l, o) {
|
|
117
117
|
var s = r(i, l, o);
|
|
118
118
|
return o.context[s] || null;
|
|
119
|
-
},
|
|
119
|
+
}, v = function(i) {
|
|
120
120
|
return i.value || n;
|
|
121
121
|
}, u = function(i) {
|
|
122
122
|
return [!0, void 0, null, ""].includes(i);
|
|
123
123
|
}, w = function(i) {
|
|
124
124
|
var l, o, s = ((l = i.data) === null || l === void 0 ? void 0 : l.on) || ((o = i.componentOptions) === null || o === void 0 ? void 0 : o.listeners);
|
|
125
|
-
return function(
|
|
125
|
+
return function(c) {
|
|
126
126
|
for (var d = arguments, g = [], y = 1; y < arguments.length; y++)
|
|
127
127
|
g[y - 1] = d[y];
|
|
128
|
-
var h, C = (h = s) === null || h === void 0 ? void 0 : h[
|
|
128
|
+
var h, C = (h = s) === null || h === void 0 ? void 0 : h[c];
|
|
129
129
|
C && C.fns.apply(C, g);
|
|
130
130
|
};
|
|
131
131
|
};
|
|
@@ -133,30 +133,30 @@ var R = { exports: {} };
|
|
|
133
133
|
// Init
|
|
134
134
|
bind: function(i, l, o) {
|
|
135
135
|
i.className.indexOf(I.containerClass) === -1 && (i.className += (i.className ? " " : "") + I.containerClass), i.addEventListener("click", function(s) {
|
|
136
|
-
var
|
|
137
|
-
T(d, s,
|
|
136
|
+
var c = w(o), d = a(i, l, o);
|
|
137
|
+
T(d, s, c);
|
|
138
138
|
});
|
|
139
139
|
},
|
|
140
140
|
// DOM inserted
|
|
141
141
|
inserted: function(i, l, o) {
|
|
142
|
-
var s = o.context,
|
|
143
|
-
(!h || h.destroyed) && (h = new t(i,
|
|
142
|
+
var s = o.context, c = v(l), d = r(i, l, o), g = w(o), y = s, h = y == null ? void 0 : y[d];
|
|
143
|
+
(!h || h.destroyed) && (h = new t(i, c), y[d] = h, k(h, g), g(b.Ready, h));
|
|
144
144
|
},
|
|
145
145
|
// On options changed or DOM updated
|
|
146
146
|
componentUpdated: function(i, l, o) {
|
|
147
|
-
var s,
|
|
147
|
+
var s, c, d, g, y, h, C, x, E, D, $, A, G = e(o, f.AutoUpdate);
|
|
148
148
|
if (u(G)) {
|
|
149
149
|
var S = a(i, l, o);
|
|
150
150
|
if (S) {
|
|
151
|
-
var K =
|
|
152
|
-
j && ((
|
|
151
|
+
var K = v(l), j = K.loop;
|
|
152
|
+
j && ((c = (s = S) === null || s === void 0 ? void 0 : s.loopDestroy) === null || c === void 0 || c.call(s)), (d = S == null ? void 0 : S.update) === null || d === void 0 || d.call(S), (y = (g = S.navigation) === null || g === void 0 ? void 0 : g.update) === null || y === void 0 || y.call(g), (C = (h = S.pagination) === null || h === void 0 ? void 0 : h.render) === null || C === void 0 || C.call(h), (E = (x = S.pagination) === null || x === void 0 ? void 0 : x.update) === null || E === void 0 || E.call(x), j && (($ = (D = S) === null || D === void 0 ? void 0 : D.loopCreate) === null || $ === void 0 || $.call(D), (A = S == null ? void 0 : S.update) === null || A === void 0 || A.call(S));
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
// Destroy this directive
|
|
157
157
|
unbind: function(i, l, o) {
|
|
158
|
-
var s,
|
|
159
|
-
if (u(
|
|
158
|
+
var s, c = e(o, f.AutoDestroy);
|
|
159
|
+
if (u(c)) {
|
|
160
160
|
var d = a(i, l, o);
|
|
161
161
|
d && d.initialized && ((s = d == null ? void 0 : d.destroy) === null || s === void 0 || s.call(d, u(e(o, f.DeleteInstanceOnDestroy)), u(e(o, f.CleanupStylesOnDestroy))));
|
|
162
162
|
}
|
|
@@ -235,8 +235,8 @@ var R = { exports: {} };
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
updateSwiper: function() {
|
|
238
|
-
var e, r, a,
|
|
239
|
-
this[f.AutoUpdate] && this.swiperInstance && (this.autoReLoopSwiper(), (r = (e = this.swiperInstance) === null || e === void 0 ? void 0 : e.update) === null || r === void 0 || r.call(e), (
|
|
238
|
+
var e, r, a, v, u, w, i, l;
|
|
239
|
+
this[f.AutoUpdate] && this.swiperInstance && (this.autoReLoopSwiper(), (r = (e = this.swiperInstance) === null || e === void 0 ? void 0 : e.update) === null || r === void 0 || r.call(e), (v = (a = this.swiperInstance.navigation) === null || a === void 0 ? void 0 : a.update) === null || v === void 0 || v.call(a), (w = (u = this.swiperInstance.pagination) === null || u === void 0 ? void 0 : u.render) === null || w === void 0 || w.call(u), (l = (i = this.swiperInstance.pagination) === null || i === void 0 ? void 0 : i.update) === null || l === void 0 || l.call(i));
|
|
240
240
|
},
|
|
241
241
|
destroySwiper: function() {
|
|
242
242
|
var e, r;
|