1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,1362 +0,0 @@ |
1 |
-(function (global, factory) { |
|
2 |
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('swiper/core'), require('rxjs')) : |
|
3 |
- typeof define === 'function' && define.amd ? define('swiper_angular', ['exports', '@angular/core', '@angular/common', 'swiper/core', 'rxjs'], factory) : |
|
4 |
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.swiper_angular = {}, global.ng.core, global.ng.common, global.Swiper, global.rxjs)); |
|
5 |
-}(this, (function (exports, core, common, Swiper, rxjs) { 'use strict'; |
|
6 |
- |
|
7 |
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } |
|
8 |
- |
|
9 |
- var Swiper__default = /*#__PURE__*/_interopDefaultLegacy(Swiper); |
|
10 |
- |
|
11 |
- /*! ***************************************************************************** |
|
12 |
- Copyright (c) Microsoft Corporation. |
|
13 |
- |
|
14 |
- Permission to use, copy, modify, and/or distribute this software for any |
|
15 |
- purpose with or without fee is hereby granted. |
|
16 |
- |
|
17 |
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
|
18 |
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|
19 |
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
|
20 |
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
|
21 |
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
22 |
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
23 |
- PERFORMANCE OF THIS SOFTWARE. |
|
24 |
- ***************************************************************************** */ |
|
25 |
- /* global Reflect, Promise */ |
|
26 |
- var extendStatics = function (d, b) { |
|
27 |
- extendStatics = Object.setPrototypeOf || |
|
28 |
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
|
29 |
- function (d, b) { for (var p in b) |
|
30 |
- if (Object.prototype.hasOwnProperty.call(b, p)) |
|
31 |
- d[p] = b[p]; }; |
|
32 |
- return extendStatics(d, b); |
|
33 |
- }; |
|
34 |
- function __extends(d, b) { |
|
35 |
- extendStatics(d, b); |
|
36 |
- function __() { this.constructor = d; } |
|
37 |
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
|
38 |
- } |
|
39 |
- var __assign = function () { |
|
40 |
- __assign = Object.assign || function __assign(t) { |
|
41 |
- for (var s, i = 1, n = arguments.length; i < n; i++) { |
|
42 |
- s = arguments[i]; |
|
43 |
- for (var p in s) |
|
44 |
- if (Object.prototype.hasOwnProperty.call(s, p)) |
|
45 |
- t[p] = s[p]; |
|
46 |
- } |
|
47 |
- return t; |
|
48 |
- }; |
|
49 |
- return __assign.apply(this, arguments); |
|
50 |
- }; |
|
51 |
- function __rest(s, e) { |
|
52 |
- var t = {}; |
|
53 |
- for (var p in s) |
|
54 |
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) |
|
55 |
- t[p] = s[p]; |
|
56 |
- if (s != null && typeof Object.getOwnPropertySymbols === "function") |
|
57 |
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { |
|
58 |
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) |
|
59 |
- t[p[i]] = s[p[i]]; |
|
60 |
- } |
|
61 |
- return t; |
|
62 |
- } |
|
63 |
- function __decorate(decorators, target, key, desc) { |
|
64 |
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
|
65 |
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") |
|
66 |
- r = Reflect.decorate(decorators, target, key, desc); |
|
67 |
- else |
|
68 |
- for (var i = decorators.length - 1; i >= 0; i--) |
|
69 |
- if (d = decorators[i]) |
|
70 |
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
|
71 |
- return c > 3 && r && Object.defineProperty(target, key, r), r; |
|
72 |
- } |
|
73 |
- function __param(paramIndex, decorator) { |
|
74 |
- return function (target, key) { decorator(target, key, paramIndex); }; |
|
75 |
- } |
|
76 |
- function __metadata(metadataKey, metadataValue) { |
|
77 |
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") |
|
78 |
- return Reflect.metadata(metadataKey, metadataValue); |
|
79 |
- } |
|
80 |
- function __awaiter(thisArg, _arguments, P, generator) { |
|
81 |
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
|
82 |
- return new (P || (P = Promise))(function (resolve, reject) { |
|
83 |
- function fulfilled(value) { try { |
|
84 |
- step(generator.next(value)); |
|
85 |
- } |
|
86 |
- catch (e) { |
|
87 |
- reject(e); |
|
88 |
- } } |
|
89 |
- function rejected(value) { try { |
|
90 |
- step(generator["throw"](value)); |
|
91 |
- } |
|
92 |
- catch (e) { |
|
93 |
- reject(e); |
|
94 |
- } } |
|
95 |
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
|
96 |
- step((generator = generator.apply(thisArg, _arguments || [])).next()); |
|
97 |
- }); |
|
98 |
- } |
|
99 |
- function __generator(thisArg, body) { |
|
100 |
- var _ = { label: 0, sent: function () { if (t[0] & 1) |
|
101 |
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
|
102 |
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g; |
|
103 |
- function verb(n) { return function (v) { return step([n, v]); }; } |
|
104 |
- function step(op) { |
|
105 |
- if (f) |
|
106 |
- throw new TypeError("Generator is already executing."); |
|
107 |
- while (_) |
|
108 |
- try { |
|
109 |
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) |
|
110 |
- return t; |
|
111 |
- if (y = 0, t) |
|
112 |
- op = [op[0] & 2, t.value]; |
|
113 |
- switch (op[0]) { |
|
114 |
- case 0: |
|
115 |
- case 1: |
|
116 |
- t = op; |
|
117 |
- break; |
|
118 |
- case 4: |
|
119 |
- _.label++; |
|
120 |
- return { value: op[1], done: false }; |
|
121 |
- case 5: |
|
122 |
- _.label++; |
|
123 |
- y = op[1]; |
|
124 |
- op = [0]; |
|
125 |
- continue; |
|
126 |
- case 7: |
|
127 |
- op = _.ops.pop(); |
|
128 |
- _.trys.pop(); |
|
129 |
- continue; |
|
130 |
- default: |
|
131 |
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { |
|
132 |
- _ = 0; |
|
133 |
- continue; |
|
134 |
- } |
|
135 |
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { |
|
136 |
- _.label = op[1]; |
|
137 |
- break; |
|
138 |
- } |
|
139 |
- if (op[0] === 6 && _.label < t[1]) { |
|
140 |
- _.label = t[1]; |
|
141 |
- t = op; |
|
142 |
- break; |
|
143 |
- } |
|
144 |
- if (t && _.label < t[2]) { |
|
145 |
- _.label = t[2]; |
|
146 |
- _.ops.push(op); |
|
147 |
- break; |
|
148 |
- } |
|
149 |
- if (t[2]) |
|
150 |
- _.ops.pop(); |
|
151 |
- _.trys.pop(); |
|
152 |
- continue; |
|
153 |
- } |
|
154 |
- op = body.call(thisArg, _); |
|
155 |
- } |
|
156 |
- catch (e) { |
|
157 |
- op = [6, e]; |
|
158 |
- y = 0; |
|
159 |
- } |
|
160 |
- finally { |
|
161 |
- f = t = 0; |
|
162 |
- } |
|
163 |
- if (op[0] & 5) |
|
164 |
- throw op[1]; |
|
165 |
- return { value: op[0] ? op[1] : void 0, done: true }; |
|
166 |
- } |
|
167 |
- } |
|
168 |
- var __createBinding = Object.create ? (function (o, m, k, k2) { |
|
169 |
- if (k2 === undefined) |
|
170 |
- k2 = k; |
|
171 |
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } }); |
|
172 |
- }) : (function (o, m, k, k2) { |
|
173 |
- if (k2 === undefined) |
|
174 |
- k2 = k; |
|
175 |
- o[k2] = m[k]; |
|
176 |
- }); |
|
177 |
- function __exportStar(m, o) { |
|
178 |
- for (var p in m) |
|
179 |
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) |
|
180 |
- __createBinding(o, m, p); |
|
181 |
- } |
|
182 |
- function __values(o) { |
|
183 |
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
|
184 |
- if (m) |
|
185 |
- return m.call(o); |
|
186 |
- if (o && typeof o.length === "number") |
|
187 |
- return { |
|
188 |
- next: function () { |
|
189 |
- if (o && i >= o.length) |
|
190 |
- o = void 0; |
|
191 |
- return { value: o && o[i++], done: !o }; |
|
192 |
- } |
|
193 |
- }; |
|
194 |
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); |
|
195 |
- } |
|
196 |
- function __read(o, n) { |
|
197 |
- var m = typeof Symbol === "function" && o[Symbol.iterator]; |
|
198 |
- if (!m) |
|
199 |
- return o; |
|
200 |
- var i = m.call(o), r, ar = [], e; |
|
201 |
- try { |
|
202 |
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) |
|
203 |
- ar.push(r.value); |
|
204 |
- } |
|
205 |
- catch (error) { |
|
206 |
- e = { error: error }; |
|
207 |
- } |
|
208 |
- finally { |
|
209 |
- try { |
|
210 |
- if (r && !r.done && (m = i["return"])) |
|
211 |
- m.call(i); |
|
212 |
- } |
|
213 |
- finally { |
|
214 |
- if (e) |
|
215 |
- throw e.error; |
|
216 |
- } |
|
217 |
- } |
|
218 |
- return ar; |
|
219 |
- } |
|
220 |
- function __spread() { |
|
221 |
- for (var ar = [], i = 0; i < arguments.length; i++) |
|
222 |
- ar = ar.concat(__read(arguments[i])); |
|
223 |
- return ar; |
|
224 |
- } |
|
225 |
- function __spreadArrays() { |
|
226 |
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) |
|
227 |
- s += arguments[i].length; |
|
228 |
- for (var r = Array(s), k = 0, i = 0; i < il; i++) |
|
229 |
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) |
|
230 |
- r[k] = a[j]; |
|
231 |
- return r; |
|
232 |
- } |
|
233 |
- ; |
|
234 |
- function __await(v) { |
|
235 |
- return this instanceof __await ? (this.v = v, this) : new __await(v); |
|
236 |
- } |
|
237 |
- function __asyncGenerator(thisArg, _arguments, generator) { |
|
238 |
- if (!Symbol.asyncIterator) |
|
239 |
- throw new TypeError("Symbol.asyncIterator is not defined."); |
|
240 |
- var g = generator.apply(thisArg, _arguments || []), i, q = []; |
|
241 |
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
|
242 |
- function verb(n) { if (g[n]) |
|
243 |
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
|
244 |
- function resume(n, v) { try { |
|
245 |
- step(g[n](v)); |
|
246 |
- } |
|
247 |
- catch (e) { |
|
248 |
- settle(q[0][3], e); |
|
249 |
- } } |
|
250 |
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
|
251 |
- function fulfill(value) { resume("next", value); } |
|
252 |
- function reject(value) { resume("throw", value); } |
|
253 |
- function settle(f, v) { if (f(v), q.shift(), q.length) |
|
254 |
- resume(q[0][0], q[0][1]); } |
|
255 |
- } |
|
256 |
- function __asyncDelegator(o) { |
|
257 |
- var i, p; |
|
258 |
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; |
|
259 |
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } |
|
260 |
- } |
|
261 |
- function __asyncValues(o) { |
|
262 |
- if (!Symbol.asyncIterator) |
|
263 |
- throw new TypeError("Symbol.asyncIterator is not defined."); |
|
264 |
- var m = o[Symbol.asyncIterator], i; |
|
265 |
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); |
|
266 |
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } |
|
267 |
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); } |
|
268 |
- } |
|
269 |
- function __makeTemplateObject(cooked, raw) { |
|
270 |
- if (Object.defineProperty) { |
|
271 |
- Object.defineProperty(cooked, "raw", { value: raw }); |
|
272 |
- } |
|
273 |
- else { |
|
274 |
- cooked.raw = raw; |
|
275 |
- } |
|
276 |
- return cooked; |
|
277 |
- } |
|
278 |
- ; |
|
279 |
- var __setModuleDefault = Object.create ? (function (o, v) { |
|
280 |
- Object.defineProperty(o, "default", { enumerable: true, value: v }); |
|
281 |
- }) : function (o, v) { |
|
282 |
- o["default"] = v; |
|
283 |
- }; |
|
284 |
- function __importStar(mod) { |
|
285 |
- if (mod && mod.__esModule) |
|
286 |
- return mod; |
|
287 |
- var result = {}; |
|
288 |
- if (mod != null) |
|
289 |
- for (var k in mod) |
|
290 |
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) |
|
291 |
- __createBinding(result, mod, k); |
|
292 |
- __setModuleDefault(result, mod); |
|
293 |
- return result; |
|
294 |
- } |
|
295 |
- function __importDefault(mod) { |
|
296 |
- return (mod && mod.__esModule) ? mod : { default: mod }; |
|
297 |
- } |
|
298 |
- function __classPrivateFieldGet(receiver, privateMap) { |
|
299 |
- if (!privateMap.has(receiver)) { |
|
300 |
- throw new TypeError("attempted to get private field on non-instance"); |
|
301 |
- } |
|
302 |
- return privateMap.get(receiver); |
|
303 |
- } |
|
304 |
- function __classPrivateFieldSet(receiver, privateMap, value) { |
|
305 |
- if (!privateMap.has(receiver)) { |
|
306 |
- throw new TypeError("attempted to set private field on non-instance"); |
|
307 |
- } |
|
308 |
- privateMap.set(receiver, value); |
|
309 |
- return value; |
|
310 |
- } |
|
311 |
- |
|
312 |
- function isObject(o) { |
|
313 |
- return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object; |
|
314 |
- } |
|
315 |
- function extend(target, src) { |
|
316 |
- Object.keys(src).forEach(function (key) { |
|
317 |
- if (typeof target[key] === 'undefined') { |
|
318 |
- target[key] = src[key]; |
|
319 |
- return; |
|
320 |
- } |
|
321 |
- if (target[key] && !src[key]) { |
|
322 |
- return; |
|
323 |
- } |
|
324 |
- if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) { |
|
325 |
- extend(target[key], src[key]); |
|
326 |
- } |
|
327 |
- else { |
|
328 |
- target[key] = src[key]; |
|
329 |
- } |
|
330 |
- }); |
|
331 |
- } |
|
332 |
- function uniqueClasses(classNames) { |
|
333 |
- if (classNames === void 0) { classNames = ''; } |
|
334 |
- var classes = classNames |
|
335 |
- .split(' ') |
|
336 |
- .map(function (c) { return c.trim(); }) |
|
337 |
- .filter(function (c) { return !!c; }); |
|
338 |
- var unique = []; |
|
339 |
- classes.forEach(function (c) { |
|
340 |
- if (unique.indexOf(c) < 0) |
|
341 |
- unique.push(c); |
|
342 |
- }); |
|
343 |
- return unique.join(' '); |
|
344 |
- } |
|
345 |
- function coerceBooleanProperty(value) { |
|
346 |
- return value != null && "" + value !== 'false'; |
|
347 |
- } |
|
348 |
- var ignoreNgOnChanges = ['pagination', 'navigation', 'scrollbar', 'virtual']; |
|
349 |
- function setProperty(val, obj) { |
|
350 |
- if (obj === void 0) { obj = {}; } |
|
351 |
- if (isObject(val)) { |
|
352 |
- return val; |
|
353 |
- } |
|
354 |
- var newValue = coerceBooleanProperty(val); |
|
355 |
- if (newValue === true) { |
|
356 |
- return obj; |
|
357 |
- } |
|
358 |
- return newValue; |
|
359 |
- } |
|
360 |
- |
|
361 |
- /* underscore in name -> watch for changes */ |
|
362 |
- var paramsList = [ |
|
363 |
- 'init', |
|
364 |
- '_direction', |
|
365 |
- 'touchEventsTarget', |
|
366 |
- 'initialSlide', |
|
367 |
- '_speed', |
|
368 |
- 'cssMode', |
|
369 |
- 'updateOnWindowResize', |
|
370 |
- 'nested', |
|
371 |
- '_width', |
|
372 |
- '_height', |
|
373 |
- 'preventInteractionOnTransition', |
|
374 |
- 'userAgent', |
|
375 |
- 'url', |
|
376 |
- '_edgeSwipeDetection', |
|
377 |
- '_edgeSwipeThreshold', |
|
378 |
- '_freeMode', |
|
379 |
- '_freeModeMomentum', |
|
380 |
- '_freeModeMomentumRatio', |
|
381 |
- '_freeModeMomentumBounce', |
|
382 |
- '_freeModeMomentumBounceRatio', |
|
383 |
- '_freeModeMomentumVelocityRatio', |
|
384 |
- '_freeModeSticky', |
|
385 |
- '_freeModeMinimumVelocity', |
|
386 |
- '_autoHeight', |
|
387 |
- 'setWrapperSize', |
|
388 |
- 'virtualTranslate', |
|
389 |
- '_effect', |
|
390 |
- 'breakpoints', |
|
391 |
- '_spaceBetween', |
|
392 |
- '_slidesPerView', |
|
393 |
- '_slidesPerColumn', |
|
394 |
- '_slidesPerColumnFill', |
|
395 |
- '_slidesPerGroup', |
|
396 |
- '_slidesPerGroupSkip', |
|
397 |
- '_centeredSlides', |
|
398 |
- '_centeredSlidesBounds', |
|
399 |
- '_slidesOffsetBefore', |
|
400 |
- '_slidesOffsetAfter', |
|
401 |
- 'normalizeSlideIndex', |
|
402 |
- '_centerInsufficientSlides', |
|
403 |
- '_watchOverflow', |
|
404 |
- 'roundLengths', |
|
405 |
- 'touchRatio', |
|
406 |
- 'touchAngle', |
|
407 |
- 'simulateTouch', |
|
408 |
- '_shortSwipes', |
|
409 |
- '_longSwipes', |
|
410 |
- 'longSwipesRatio', |
|
411 |
- 'longSwipesMs', |
|
412 |
- '_followFinger', |
|
413 |
- 'allowTouchMove', |
|
414 |
- '_threshold', |
|
415 |
- 'touchMoveStopPropagation', |
|
416 |
- 'touchStartPreventDefault', |
|
417 |
- 'touchStartForcePreventDefault', |
|
418 |
- 'touchReleaseOnEdges', |
|
419 |
- 'uniqueNavElements', |
|
420 |
- '_resistance', |
|
421 |
- '_resistanceRatio', |
|
422 |
- '_watchSlidesProgress', |
|
423 |
- '_watchSlidesVisibility', |
|
424 |
- '_grabCursor', |
|
425 |
- 'preventClicks', |
|
426 |
- 'preventClicksPropagation', |
|
427 |
- '_slideToClickedSlide', |
|
428 |
- '_preloadImages', |
|
429 |
- 'updateOnImagesReady', |
|
430 |
- '_loop', |
|
431 |
- '_loopAdditionalSlides', |
|
432 |
- '_loopedSlides', |
|
433 |
- '_loopFillGroupWithBlank', |
|
434 |
- 'loopPreventsSlide', |
|
435 |
- '_allowSlidePrev', |
|
436 |
- '_allowSlideNext', |
|
437 |
- '_swipeHandler', |
|
438 |
- '_noSwiping', |
|
439 |
- 'noSwipingClass', |
|
440 |
- 'noSwipingSelector', |
|
441 |
- 'passiveListeners', |
|
442 |
- 'containerModifierClass', |
|
443 |
- 'slideClass', |
|
444 |
- 'slideBlankClass', |
|
445 |
- 'slideActiveClass', |
|
446 |
- 'slideDuplicateActiveClass', |
|
447 |
- 'slideVisibleClass', |
|
448 |
- 'slideDuplicateClass', |
|
449 |
- 'slideNextClass', |
|
450 |
- 'slideDuplicateNextClass', |
|
451 |
- 'slidePrevClass', |
|
452 |
- 'slideDuplicatePrevClass', |
|
453 |
- 'wrapperClass', |
|
454 |
- 'runCallbacksOnInit', |
|
455 |
- // modules |
|
456 |
- 'a11y', |
|
457 |
- 'autoplay', |
|
458 |
- '_controller', |
|
459 |
- 'coverflowEffect', |
|
460 |
- 'cubeEffect', |
|
461 |
- 'fadeEffect', |
|
462 |
- 'flipEffect', |
|
463 |
- 'hashNavigation', |
|
464 |
- 'history', |
|
465 |
- 'keyboard', |
|
466 |
- 'lazy', |
|
467 |
- 'mousewheel', |
|
468 |
- '_navigation', |
|
469 |
- '_pagination', |
|
470 |
- 'parallax', |
|
471 |
- '_scrollbar', |
|
472 |
- '_thumbs', |
|
473 |
- 'virtual', |
|
474 |
- 'zoom', |
|
475 |
- ]; |
|
476 |
- |
|
477 |
- // eslint-disable-next-line |
|
478 |
- var ɵ0 = function (key) { return key.replace(/_/, ''); }; |
|
479 |
- var allowedParams = paramsList.map(ɵ0); |
|
480 |
- function getParams(obj) { |
|
481 |
- if (obj === void 0) { obj = {}; } |
|
482 |
- var params = { |
|
483 |
- on: {}, |
|
484 |
- }; |
|
485 |
- var passedParams = {}; |
|
486 |
- extend(params, Swiper__default['default'].defaults); |
|
487 |
- extend(params, Swiper__default['default'].extendedDefaults); |
|
488 |
- params._emitClasses = true; |
|
489 |
- var rest = {}; |
|
490 |
- Object.keys(obj).forEach(function (key) { |
|
491 |
- var _key = key.replace(/^_/, ''); |
|
492 |
- if (typeof obj[_key] === 'undefined') |
|
493 |
- return; |
|
494 |
- if (allowedParams.indexOf(_key) >= 0) { |
|
495 |
- if (isObject(obj[_key])) { |
|
496 |
- params[_key] = {}; |
|
497 |
- passedParams[_key] = {}; |
|
498 |
- extend(params[_key], obj[_key]); |
|
499 |
- extend(passedParams[_key], obj[_key]); |
|
500 |
- } |
|
501 |
- else { |
|
502 |
- params[_key] = obj[_key]; |
|
503 |
- passedParams[_key] = obj[_key]; |
|
504 |
- } |
|
505 |
- } |
|
506 |
- else { |
|
507 |
- rest[_key] = obj[_key]; |
|
508 |
- } |
|
509 |
- }); |
|
510 |
- return { params: params, passedParams: passedParams, rest: rest }; |
|
511 |
- } |
|
512 |
- |
|
513 |
- var SwiperSlideDirective = /** @class */ (function () { |
|
514 |
- function SwiperSlideDirective(template) { |
|
515 |
- this.template = template; |
|
516 |
- this.slideData = { |
|
517 |
- isActive: false, |
|
518 |
- isPrev: false, |
|
519 |
- isNext: false, |
|
520 |
- isVisible: false, |
|
521 |
- isDuplicate: false, |
|
522 |
- }; |
|
523 |
- } |
|
524 |
- Object.defineProperty(SwiperSlideDirective.prototype, "classNames", { |
|
525 |
- get: function () { |
|
526 |
- return this._classNames; |
|
527 |
- }, |
|
528 |
- set: function (val) { |
|
529 |
- if (this._classNames === val) { |
|
530 |
- return; |
|
531 |
- } |
|
532 |
- this._classNames = val; |
|
533 |
- this.slideData = { |
|
534 |
- isActive: this._hasClass(['swiper-slide-active', 'swiper-slide-duplicate-active']), |
|
535 |
- isVisible: this._hasClass(['swiper-slide-visible']), |
|
536 |
- isDuplicate: this._hasClass(['swiper-slide-duplicate']), |
|
537 |
- isPrev: this._hasClass(['swiper-slide-prev', 'swiper-slide-duplicate-prev']), |
|
538 |
- isNext: this._hasClass(['swiper-slide-next', 'swiper-slide-duplicate-next']), |
|
539 |
- }; |
|
540 |
- }, |
|
541 |
- enumerable: false, |
|
542 |
- configurable: true |
|
543 |
- }); |
|
544 |
- SwiperSlideDirective.prototype._hasClass = function (classNames) { |
|
545 |
- var _this = this; |
|
546 |
- return classNames.some(function (className) { return _this._classNames.indexOf(className) >= 0; }); |
|
547 |
- }; |
|
548 |
- return SwiperSlideDirective; |
|
549 |
- }()); |
|
550 |
- SwiperSlideDirective.decorators = [ |
|
551 |
- { type: core.Directive, args: [{ |
|
552 |
- selector: '[swiperSlide]', |
|
553 |
- },] } |
|
554 |
- ]; |
|
555 |
- SwiperSlideDirective.ctorParameters = function () { return [ |
|
556 |
- { type: core.TemplateRef } |
|
557 |
- ]; }; |
|
558 |
- SwiperSlideDirective.propDecorators = { |
|
559 |
- virtualIndex: [{ type: core.Input }] |
|
560 |
- }; |
|
561 |
- |
|
562 |
- var SwiperComponent = /** @class */ (function () { |
|
563 |
- function SwiperComponent(zone, elementRef, _changeDetectorRef) { |
|
564 |
- this.zone = zone; |
|
565 |
- this.elementRef = elementRef; |
|
566 |
- this._changeDetectorRef = _changeDetectorRef; |
|
567 |
- this.init = true; |
|
568 |
- this.slideClass = 'swiper-slide'; |
|
569 |
- this.wrapperClass = 'swiper-wrapper'; |
|
570 |
- // prettier-ignore |
|
571 |
- this.s__beforeBreakpoint = new core.EventEmitter(); |
|
572 |
- // prettier-ignore |
|
573 |
- this.s__containerClasses = new core.EventEmitter(); |
|
574 |
- // prettier-ignore |
|
575 |
- this.s__slideClass = new core.EventEmitter(); |
|
576 |
- // prettier-ignore |
|
577 |
- this.s__swiper = new core.EventEmitter(); |
|
578 |
- // prettier-ignore |
|
579 |
- this.s_activeIndexChange = new core.EventEmitter(); |
|
580 |
- // prettier-ignore |
|
581 |
- this.s_afterInit = new core.EventEmitter(); |
|
582 |
- // prettier-ignore |
|
583 |
- this.s_autoplay = new core.EventEmitter(); |
|
584 |
- // prettier-ignore |
|
585 |
- this.s_autoplayStart = new core.EventEmitter(); |
|
586 |
- // prettier-ignore |
|
587 |
- this.s_autoplayStop = new core.EventEmitter(); |
|
588 |
- // prettier-ignore |
|
589 |
- this.s_beforeDestroy = new core.EventEmitter(); |
|
590 |
- // prettier-ignore |
|
591 |
- this.s_beforeInit = new core.EventEmitter(); |
|
592 |
- // prettier-ignore |
|
593 |
- this.s_beforeLoopFix = new core.EventEmitter(); |
|
594 |
- // prettier-ignore |
|
595 |
- this.s_beforeResize = new core.EventEmitter(); |
|
596 |
- // prettier-ignore |
|
597 |
- this.s_beforeSlideChangeStart = new core.EventEmitter(); |
|
598 |
- // prettier-ignore |
|
599 |
- this.s_beforeTransitionStart = new core.EventEmitter(); |
|
600 |
- // prettier-ignore |
|
601 |
- this.s_breakpoint = new core.EventEmitter(); |
|
602 |
- // prettier-ignore |
|
603 |
- this.s_changeDirection = new core.EventEmitter(); |
|
604 |
- // prettier-ignore |
|
605 |
- this.s_click = new core.EventEmitter(); |
|
606 |
- // prettier-ignore |
|
607 |
- this.s_doubleTap = new core.EventEmitter(); |
|
608 |
- // prettier-ignore |
|
609 |
- this.s_doubleClick = new core.EventEmitter(); |
|
610 |
- // prettier-ignore |
|
611 |
- this.s_destroy = new core.EventEmitter(); |
|
612 |
- // prettier-ignore |
|
613 |
- this.s_fromEdge = new core.EventEmitter(); |
|
614 |
- // prettier-ignore |
|
615 |
- this.s_hashChange = new core.EventEmitter(); |
|
616 |
- // prettier-ignore |
|
617 |
- this.s_hashSet = new core.EventEmitter(); |
|
618 |
- // prettier-ignore |
|
619 |
- this.s_imagesReady = new core.EventEmitter(); |
|
620 |
- // prettier-ignore |
|
621 |
- this.s_init = new core.EventEmitter(); |
|
622 |
- // prettier-ignore |
|
623 |
- this.s_keyPress = new core.EventEmitter(); |
|
624 |
- // prettier-ignore |
|
625 |
- this.s_lazyImageLoad = new core.EventEmitter(); |
|
626 |
- // prettier-ignore |
|
627 |
- this.s_lazyImageReady = new core.EventEmitter(); |
|
628 |
- // prettier-ignore |
|
629 |
- this.s_loopFix = new core.EventEmitter(); |
|
630 |
- // prettier-ignore |
|
631 |
- this.s_momentumBounce = new core.EventEmitter(); |
|
632 |
- // prettier-ignore |
|
633 |
- this.s_navigationHide = new core.EventEmitter(); |
|
634 |
- // prettier-ignore |
|
635 |
- this.s_navigationShow = new core.EventEmitter(); |
|
636 |
- // prettier-ignore |
|
637 |
- this.s_observerUpdate = new core.EventEmitter(); |
|
638 |
- // prettier-ignore |
|
639 |
- this.s_orientationchange = new core.EventEmitter(); |
|
640 |
- // prettier-ignore |
|
641 |
- this.s_paginationHide = new core.EventEmitter(); |
|
642 |
- // prettier-ignore |
|
643 |
- this.s_paginationRender = new core.EventEmitter(); |
|
644 |
- // prettier-ignore |
|
645 |
- this.s_paginationShow = new core.EventEmitter(); |
|
646 |
- // prettier-ignore |
|
647 |
- this.s_paginationUpdate = new core.EventEmitter(); |
|
648 |
- // prettier-ignore |
|
649 |
- this.s_progress = new core.EventEmitter(); |
|
650 |
- // prettier-ignore |
|
651 |
- this.s_reachBeginning = new core.EventEmitter(); |
|
652 |
- // prettier-ignore |
|
653 |
- this.s_reachEnd = new core.EventEmitter(); |
|
654 |
- // prettier-ignore |
|
655 |
- this.s_realIndexChange = new core.EventEmitter(); |
|
656 |
- // prettier-ignore |
|
657 |
- this.s_resize = new core.EventEmitter(); |
|
658 |
- // prettier-ignore |
|
659 |
- this.s_scroll = new core.EventEmitter(); |
|
660 |
- // prettier-ignore |
|
661 |
- this.s_scrollbarDragEnd = new core.EventEmitter(); |
|
662 |
- // prettier-ignore |
|
663 |
- this.s_scrollbarDragMove = new core.EventEmitter(); |
|
664 |
- // prettier-ignore |
|
665 |
- this.s_scrollbarDragStart = new core.EventEmitter(); |
|
666 |
- // prettier-ignore |
|
667 |
- this.s_setTransition = new core.EventEmitter(); |
|
668 |
- // prettier-ignore |
|
669 |
- this.s_setTranslate = new core.EventEmitter(); |
|
670 |
- // prettier-ignore |
|
671 |
- this.s_slideChange = new core.EventEmitter(); |
|
672 |
- // prettier-ignore |
|
673 |
- this.s_slideChangeTransitionEnd = new core.EventEmitter(); |
|
674 |
- // prettier-ignore |
|
675 |
- this.s_slideChangeTransitionStart = new core.EventEmitter(); |
|
676 |
- // prettier-ignore |
|
677 |
- this.s_slideNextTransitionEnd = new core.EventEmitter(); |
|
678 |
- // prettier-ignore |
|
679 |
- this.s_slideNextTransitionStart = new core.EventEmitter(); |
|
680 |
- // prettier-ignore |
|
681 |
- this.s_slidePrevTransitionEnd = new core.EventEmitter(); |
|
682 |
- // prettier-ignore |
|
683 |
- this.s_slidePrevTransitionStart = new core.EventEmitter(); |
|
684 |
- // prettier-ignore |
|
685 |
- this.s_slideResetTransitionStart = new core.EventEmitter(); |
|
686 |
- // prettier-ignore |
|
687 |
- this.s_slideResetTransitionEnd = new core.EventEmitter(); |
|
688 |
- // prettier-ignore |
|
689 |
- this.s_sliderMove = new core.EventEmitter(); |
|
690 |
- // prettier-ignore |
|
691 |
- this.s_sliderFirstMove = new core.EventEmitter(); |
|
692 |
- // prettier-ignore |
|
693 |
- this.s_slidesLengthChange = new core.EventEmitter(); |
|
694 |
- // prettier-ignore |
|
695 |
- this.s_slidesGridLengthChange = new core.EventEmitter(); |
|
696 |
- // prettier-ignore |
|
697 |
- this.s_snapGridLengthChange = new core.EventEmitter(); |
|
698 |
- // prettier-ignore |
|
699 |
- this.s_snapIndexChange = new core.EventEmitter(); |
|
700 |
- // prettier-ignore |
|
701 |
- this.s_tap = new core.EventEmitter(); |
|
702 |
- // prettier-ignore |
|
703 |
- this.s_toEdge = new core.EventEmitter(); |
|
704 |
- // prettier-ignore |
|
705 |
- this.s_touchEnd = new core.EventEmitter(); |
|
706 |
- // prettier-ignore |
|
707 |
- this.s_touchMove = new core.EventEmitter(); |
|
708 |
- // prettier-ignore |
|
709 |
- this.s_touchMoveOpposite = new core.EventEmitter(); |
|
710 |
- // prettier-ignore |
|
711 |
- this.s_touchStart = new core.EventEmitter(); |
|
712 |
- // prettier-ignore |
|
713 |
- this.s_transitionEnd = new core.EventEmitter(); |
|
714 |
- // prettier-ignore |
|
715 |
- this.s_transitionStart = new core.EventEmitter(); |
|
716 |
- // prettier-ignore |
|
717 |
- this.s_update = new core.EventEmitter(); |
|
718 |
- // prettier-ignore |
|
719 |
- this.s_zoomChange = new core.EventEmitter(); |
|
720 |
- // prettier-ignore |
|
721 |
- this.s_swiper = new core.EventEmitter(); |
|
722 |
- this.indexChange = new core.EventEmitter(); |
|
723 |
- this._activeSlides = new rxjs.Subject(); |
|
724 |
- this.containerClasses = 'swiper-container'; |
|
725 |
- this.style = null; |
|
726 |
- } |
|
727 |
- Object.defineProperty(SwiperComponent.prototype, "navigation", { |
|
728 |
- get: function () { |
|
729 |
- return this._navigation; |
|
730 |
- }, |
|
731 |
- set: function (val) { |
|
732 |
- this._navigation = setProperty(val, { |
|
733 |
- nextEl: null, |
|
734 |
- prevEl: null, |
|
735 |
- }); |
|
736 |
- }, |
|
737 |
- enumerable: false, |
|
738 |
- configurable: true |
|
739 |
- }); |
|
740 |
- Object.defineProperty(SwiperComponent.prototype, "pagination", { |
|
741 |
- get: function () { |
|
742 |
- return this._pagination; |
|
743 |
- }, |
|
744 |
- set: function (val) { |
|
745 |
- this._pagination = setProperty(val, { |
|
746 |
- el: null, |
|
747 |
- }); |
|
748 |
- }, |
|
749 |
- enumerable: false, |
|
750 |
- configurable: true |
|
751 |
- }); |
|
752 |
- Object.defineProperty(SwiperComponent.prototype, "scrollbar", { |
|
753 |
- get: function () { |
|
754 |
- return this._scrollbar; |
|
755 |
- }, |
|
756 |
- set: function (val) { |
|
757 |
- this._scrollbar = setProperty(val, { |
|
758 |
- el: null, |
|
759 |
- }); |
|
760 |
- }, |
|
761 |
- enumerable: false, |
|
762 |
- configurable: true |
|
763 |
- }); |
|
764 |
- Object.defineProperty(SwiperComponent.prototype, "virtual", { |
|
765 |
- get: function () { |
|
766 |
- return this._virtual; |
|
767 |
- }, |
|
768 |
- set: function (val) { |
|
769 |
- this._virtual = setProperty(val); |
|
770 |
- }, |
|
771 |
- enumerable: false, |
|
772 |
- configurable: true |
|
773 |
- }); |
|
774 |
- Object.defineProperty(SwiperComponent.prototype, "index", { |
|
775 |
- set: function (index) { |
|
776 |
- this.setIndex(index); |
|
777 |
- }, |
|
778 |
- enumerable: false, |
|
779 |
- configurable: true |
|
780 |
- }); |
|
781 |
- Object.defineProperty(SwiperComponent.prototype, "config", { |
|
782 |
- set: function (val) { |
|
783 |
- this.updateSwiper(val); |
|
784 |
- var params = getParams(val).params; |
|
785 |
- Object.assign(this, params); |
|
786 |
- }, |
|
787 |
- enumerable: false, |
|
788 |
- configurable: true |
|
789 |
- }); |
|
790 |
- Object.defineProperty(SwiperComponent.prototype, "prevElRef", { |
|
791 |
- set: function (el) { |
|
792 |
- this._setElement(el, this.navigation, 'navigation', 'prevEl'); |
|
793 |
- }, |
|
794 |
- enumerable: false, |
|
795 |
- configurable: true |
|
796 |
- }); |
|
797 |
- Object.defineProperty(SwiperComponent.prototype, "nextElRef", { |
|
798 |
- set: function (el) { |
|
799 |
- this._setElement(el, this.navigation, 'navigation', 'nextEl'); |
|
800 |
- }, |
|
801 |
- enumerable: false, |
|
802 |
- configurable: true |
|
803 |
- }); |
|
804 |
- Object.defineProperty(SwiperComponent.prototype, "scrollbarElRef", { |
|
805 |
- set: function (el) { |
|
806 |
- this._setElement(el, this.scrollbar, 'scrollbar'); |
|
807 |
- }, |
|
808 |
- enumerable: false, |
|
809 |
- configurable: true |
|
810 |
- }); |
|
811 |
- Object.defineProperty(SwiperComponent.prototype, "paginationElRef", { |
|
812 |
- set: function (el) { |
|
813 |
- this._setElement(el, this.pagination, 'pagination'); |
|
814 |
- }, |
|
815 |
- enumerable: false, |
|
816 |
- configurable: true |
|
817 |
- }); |
|
818 |
- Object.defineProperty(SwiperComponent.prototype, "slidesEl", { |
|
819 |
- set: function (val) { |
|
820 |
- var _this = this; |
|
821 |
- this.slides = val.map(function (slide, index) { |
|
822 |
- slide.slideIndex = index; |
|
823 |
- slide.classNames = _this.slideClass; |
|
824 |
- return slide; |
|
825 |
- }); |
|
826 |
- if (this.loop && !this.loopedSlides) { |
|
827 |
- this.calcLoopedSlides(); |
|
828 |
- } |
|
829 |
- if (!this.virtual) { |
|
830 |
- this.prependSlides = rxjs.of(this.slides.slice(this.slides.length - this.loopedSlides)); |
|
831 |
- this.appendSlides = rxjs.of(this.slides.slice(0, this.loopedSlides)); |
|
832 |
- } |
|
833 |
- }, |
|
834 |
- enumerable: false, |
|
835 |
- configurable: true |
|
836 |
- }); |
|
837 |
- Object.defineProperty(SwiperComponent.prototype, "activeSlides", { |
|
838 |
- get: function () { |
|
839 |
- if (this.virtual) { |
|
840 |
- return this._activeSlides; |
|
841 |
- } |
|
842 |
- return rxjs.of(this.slides); |
|
843 |
- }, |
|
844 |
- enumerable: false, |
|
845 |
- configurable: true |
|
846 |
- }); |
|
847 |
- SwiperComponent.prototype._setElement = function (el, ref, update, key) { |
|
848 |
- if (key === void 0) { key = 'el'; } |
|
849 |
- if (!el && !ref) { |
|
850 |
- return; |
|
851 |
- } |
|
852 |
- if (ref) { |
|
853 |
- if (ref[key] === el.nativeElement) { |
|
854 |
- return; |
|
855 |
- } |
|
856 |
- ref[key] = el.nativeElement; |
|
857 |
- } |
|
858 |
- var updateObj = {}; |
|
859 |
- updateObj[update] = true; |
|
860 |
- this.updateInitSwiper(updateObj); |
|
861 |
- }; |
|
862 |
- SwiperComponent.prototype.ngOnInit = function () { |
|
863 |
- var params = getParams(this).params; |
|
864 |
- Object.assign(this, params); |
|
865 |
- }; |
|
866 |
- SwiperComponent.prototype.ngAfterViewInit = function () { |
|
867 |
- if (this.init) { |
|
868 |
- this.initSwiper(); |
|
869 |
- this._changeDetectorRef.detectChanges(); |
|
870 |
- } |
|
871 |
- }; |
|
872 |
- SwiperComponent.prototype.initSwiper = function () { |
|
873 |
- var _this = this; |
|
874 |
- var _c = getParams(this), swiperParams = _c.params, passedParams = _c.passedParams; |
|
875 |
- Object.assign(this, swiperParams); |
|
876 |
- swiperParams.onAny = function (event) { |
|
877 |
- var args = []; |
|
878 |
- for (var _i = 1; _i < arguments.length; _i++) { |
|
879 |
- args[_i - 1] = arguments[_i]; |
|
880 |
- } |
|
881 |
- var emitter = _this["s_" + event]; |
|
882 |
- if (emitter) { |
|
883 |
- emitter.emit.apply(emitter, __spread(args)); |
|
884 |
- } |
|
885 |
- }; |
|
886 |
- Object.assign(swiperParams.on, { |
|
887 |
- slideChange: function () { |
|
888 |
- _this.indexChange.emit(_this.swiperRef.realIndex); |
|
889 |
- }, |
|
890 |
- _containerClasses: function (swiper, classes) { |
|
891 |
- this.containerClasses = classes; |
|
892 |
- }, |
|
893 |
- _swiper: function (swiper) { |
|
894 |
- _this.swiperRef = swiper; |
|
895 |
- _this.s_swiper.emit(_this.swiperRef); |
|
896 |
- swiper.loopCreate = function () { }; |
|
897 |
- swiper.loopDestroy = function () { }; |
|
898 |
- if (swiperParams.loop) { |
|
899 |
- swiper.loopedSlides = _this.loopedSlides; |
|
900 |
- } |
|
901 |
- if (swiper.virtual && swiper.params.virtual.enabled) { |
|
902 |
- swiper.virtual.slides = _this.slides; |
|
903 |
- swiper.params.virtual.cache = false; |
|
904 |
- swiper.params.virtual.renderExternal = function (data) { |
|
905 |
- _this.updateVirtualSlides(data); |
|
906 |
- }; |
|
907 |
- swiper.params.virtual.renderExternalUpdate = false; |
|
908 |
- } |
|
909 |
- _this._changeDetectorRef.detectChanges(); |
|
910 |
- }, |
|
911 |
- _slideClass: function (_, el, classNames) { |
|
912 |
- var slideIndex = parseInt(el.dataset.swiperSlideIndex); |
|
913 |
- if (_this.virtual) { |
|
914 |
- var virtualSlide = _this.slides.find(function (item) { |
|
915 |
- return item.virtualIndex && item.virtualIndex === slideIndex; |
|
916 |
- }); |
|
917 |
- if (virtualSlide) { |
|
918 |
- virtualSlide.classNames = classNames; |
|
919 |
- return; |
|
920 |
- } |
|
921 |
- } |
|
922 |
- _this.slides[slideIndex].classNames = classNames; |
|
923 |
- _this._changeDetectorRef.detectChanges(); |
|
924 |
- }, |
|
925 |
- }); |
|
926 |
- new Swiper__default['default'](this.elementRef.nativeElement, swiperParams); |
|
927 |
- }; |
|
928 |
- SwiperComponent.prototype.updateVirtualSlides = function (virtualData) { |
|
929 |
- var _c; |
|
930 |
- // TODO: type virtualData |
|
931 |
- if (!this.swiperRef || |
|
932 |
- (this.currentVirtualData && |
|
933 |
- this.currentVirtualData.from === virtualData.from && |
|
934 |
- this.currentVirtualData.to === virtualData.to && |
|
935 |
- this.currentVirtualData.offset === virtualData.offset)) { |
|
936 |
- return; |
|
937 |
- } |
|
938 |
- this.style = this.swiperRef.isHorizontal() |
|
939 |
- ? (_c = {}, |
|
940 |
- _c[this.swiperRef.rtlTranslate ? 'right' : 'left'] = virtualData.offset + "px", |
|
941 |
- _c) : { |
|
942 |
- top: virtualData.offset + "px", |
|
943 |
- }; |
|
944 |
- this.currentVirtualData = virtualData; |
|
945 |
- this._activeSlides.next(virtualData.slides); |
|
946 |
- this._changeDetectorRef.detectChanges(); |
|
947 |
- this.swiperRef.updateSlides(); |
|
948 |
- this.swiperRef.updateProgress(); |
|
949 |
- this.swiperRef.updateSlidesClasses(); |
|
950 |
- if (this.swiperRef.lazy && this.swiperRef.params.lazy['enabled']) { |
|
951 |
- this.swiperRef.lazy.load(); |
|
952 |
- } |
|
953 |
- this.swiperRef.virtual.update(true); |
|
954 |
- return; |
|
955 |
- }; |
|
956 |
- SwiperComponent.prototype.ngOnChanges = function (changedParams) { |
|
957 |
- this.updateSwiper(changedParams); |
|
958 |
- this._changeDetectorRef.detectChanges(); |
|
959 |
- }; |
|
960 |
- SwiperComponent.prototype.updateInitSwiper = function (changedParams) { |
|
961 |
- if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) { |
|
962 |
- return; |
|
963 |
- } |
|
964 |
- var _c = this.swiperRef, currentParams = _c.params, pagination = _c.pagination, navigation = _c.navigation, scrollbar = _c.scrollbar, virtual = _c.virtual, thumbs = _c.thumbs; |
|
965 |
- if (changedParams.pagination) { |
|
966 |
- if (this.pagination && |
|
967 |
- typeof this.pagination !== 'boolean' && |
|
968 |
- this.pagination.el && |
|
969 |
- pagination && |
|
970 |
- !pagination.el) { |
|
971 |
- this.updateParameter('pagination', this.pagination); |
|
972 |
- pagination.init(); |
|
973 |
- pagination.render(); |
|
974 |
- pagination.update(); |
|
975 |
- } |
|
976 |
- else { |
|
977 |
- pagination.destroy(); |
|
978 |
- pagination.el = null; |
|
979 |
- } |
|
980 |
- } |
|
981 |
- if (changedParams.scrollbar) { |
|
982 |
- if (this.scrollbar && |
|
983 |
- typeof this.scrollbar !== 'boolean' && |
|
984 |
- this.scrollbar.el && |
|
985 |
- scrollbar && |
|
986 |
- !scrollbar.el) { |
|
987 |
- this.updateParameter('scrollbar', this.scrollbar); |
|
988 |
- scrollbar.init(); |
|
989 |
- scrollbar.updateSize(); |
|
990 |
- scrollbar.setTranslate(); |
|
991 |
- } |
|
992 |
- else { |
|
993 |
- scrollbar.destroy(); |
|
994 |
- scrollbar.el = null; |
|
995 |
- } |
|
996 |
- } |
|
997 |
- if (changedParams.navigation) { |
|
998 |
- if (this.navigation && |
|
999 |
- typeof this.navigation !== 'boolean' && |
|
1000 |
- this.navigation.prevEl && |
|
1001 |
- this.navigation.nextEl && |
|
1002 |
- navigation && |
|
1003 |
- !navigation.prevEl && |
|
1004 |
- !navigation.nextEl) { |
|
1005 |
- this.updateParameter('navigation', this.navigation); |
|
1006 |
- navigation.init(); |
|
1007 |
- navigation.update(); |
|
1008 |
- } |
|
1009 |
- else if (navigation.prevEl && navigation.nextEl) { |
|
1010 |
- navigation.destroy(); |
|
1011 |
- navigation.nextEl = null; |
|
1012 |
- navigation.prevEl = null; |
|
1013 |
- } |
|
1014 |
- } |
|
1015 |
- if (changedParams.thumbs && this.thumbs && this.thumbs.swiper) { |
|
1016 |
- this.updateParameter('thumbs', this.thumbs); |
|
1017 |
- var initialized = thumbs.init(); |
|
1018 |
- if (initialized) |
|
1019 |
- thumbs.update(true); |
|
1020 |
- } |
|
1021 |
- if (changedParams.controller && this.controller && this.controller.control) { |
|
1022 |
- this.swiperRef.controller.control = this.controller.control; |
|
1023 |
- } |
|
1024 |
- this.swiperRef.update(); |
|
1025 |
- }; |
|
1026 |
- SwiperComponent.prototype.updateSwiper = function (changedParams) { |
|
1027 |
- var _a, _b; |
|
1028 |
- if (changedParams.config) { |
|
1029 |
- return; |
|
1030 |
- } |
|
1031 |
- if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) { |
|
1032 |
- return; |
|
1033 |
- } |
|
1034 |
- for (var key in changedParams) { |
|
1035 |
- if (ignoreNgOnChanges.indexOf(key) >= 0) { |
|
1036 |
- continue; |
|
1037 |
- } |
|
1038 |
- var newValue = (_b = (_a = changedParams[key]) === null || _a === void 0 ? void 0 : _a.currentValue) !== null && _b !== void 0 ? _b : changedParams[key]; |
|
1039 |
- this.updateParameter(key, newValue); |
|
1040 |
- } |
|
1041 |
- if (changedParams.allowSlideNext) { |
|
1042 |
- this.swiperRef.allowSlideNext = this.allowSlideNext; |
|
1043 |
- } |
|
1044 |
- if (changedParams.allowSlidePrev) { |
|
1045 |
- this.swiperRef.allowSlidePrev = this.allowSlidePrev; |
|
1046 |
- } |
|
1047 |
- if (changedParams.direction) { |
|
1048 |
- this.swiperRef.changeDirection(this.direction, false); |
|
1049 |
- } |
|
1050 |
- if (changedParams.breakpoints) { |
|
1051 |
- if (this.loop && !this.loopedSlides) { |
|
1052 |
- this.calcLoopedSlides(); |
|
1053 |
- } |
|
1054 |
- this.swiperRef.currentBreakpoint = null; |
|
1055 |
- this.swiperRef.setBreakpoint(); |
|
1056 |
- } |
|
1057 |
- this.swiperRef.update(); |
|
1058 |
- }; |
|
1059 |
- SwiperComponent.prototype.calcLoopedSlides = function () { |
|
1060 |
- if (!this.loop) { |
|
1061 |
- return; |
|
1062 |
- } |
|
1063 |
- var slidesPerViewParams = this.slidesPerView; |
|
1064 |
- if (this.breakpoints) { |
|
1065 |
- var breakpoint = Swiper__default['default'].prototype.getBreakpoint(this.breakpoints); |
|
1066 |
- var breakpointOnlyParams = breakpoint in this.breakpoints ? this.breakpoints[breakpoint] : undefined; |
|
1067 |
- if (breakpointOnlyParams && breakpointOnlyParams.slidesPerView) { |
|
1068 |
- slidesPerViewParams = breakpointOnlyParams.slidesPerView; |
|
1069 |
- } |
|
1070 |
- } |
|
1071 |
- if (slidesPerViewParams === 'auto') { |
|
1072 |
- this.loopedSlides = this.slides.length; |
|
1073 |
- return this.slides.length; |
|
1074 |
- } |
|
1075 |
- var loopedSlides = this.loopedSlides || slidesPerViewParams; |
|
1076 |
- loopedSlides += this.loopAdditionalSlides; |
|
1077 |
- if (loopedSlides > this.slides.length) { |
|
1078 |
- loopedSlides = this.slides.length; |
|
1079 |
- } |
|
1080 |
- this.loopedSlides = loopedSlides; |
|
1081 |
- return loopedSlides; |
|
1082 |
- }; |
|
1083 |
- SwiperComponent.prototype.updateParameter = function (key, value) { |
|
1084 |
- if (!(this.swiperRef && !this.swiperRef.destroyed)) { |
|
1085 |
- return; |
|
1086 |
- } |
|
1087 |
- var _key = key.replace(/^_/, ''); |
|
1088 |
- if (Object.keys(this.swiperRef.modules).indexOf(_key) >= 0) { |
|
1089 |
- extend(value, this.swiperRef.modules[_key].params[_key]); |
|
1090 |
- } |
|
1091 |
- if (isObject(this.swiperRef.params[_key]) && isObject(value)) { |
|
1092 |
- extend(this.swiperRef.params[_key], value); |
|
1093 |
- } |
|
1094 |
- else { |
|
1095 |
- this.swiperRef.params[_key] = value; |
|
1096 |
- } |
|
1097 |
- }; |
|
1098 |
- SwiperComponent.prototype.setIndex = function (index, speed, silent) { |
|
1099 |
- var _this = this; |
|
1100 |
- if (!this.swiperRef) { |
|
1101 |
- this.initialSlide = index; |
|
1102 |
- return; |
|
1103 |
- } |
|
1104 |
- if (index === this.swiperRef.realIndex) { |
|
1105 |
- return; |
|
1106 |
- } |
|
1107 |
- this.zone.runOutsideAngular(function () { |
|
1108 |
- if (_this.loop) { |
|
1109 |
- _this.swiperRef.slideToLoop(index, speed, !silent); |
|
1110 |
- } |
|
1111 |
- else { |
|
1112 |
- _this.swiperRef.slideTo(index, speed, !silent); |
|
1113 |
- } |
|
1114 |
- }); |
|
1115 |
- }; |
|
1116 |
- SwiperComponent.prototype.ngOnDestroy = function () { |
|
1117 |
- this.swiperRef.destroy(); |
|
1118 |
- }; |
|
1119 |
- return SwiperComponent; |
|
1120 |
- }()); |
|
1121 |
- SwiperComponent.decorators = [ |
|
1122 |
- { type: core.Component, args: [{ |
|
1123 |
- selector: 'swiper, [swiper]', |
|
1124 |
- template: "<ng-content select=\"[slot=container-start]\"></ng-content>\n<ng-container *ngIf=\"navigation\">\n <div class=\"swiper-button-prev\" #prevElRef></div>\n <div class=\"swiper-button-next\" #nextElRef></div>\n</ng-container>\n<div *ngIf=\"scrollbar\" class=\"swiper-scrollbar\" #scrollbarElRef></div>\n<div *ngIf=\"pagination\" class=\"swiper-pagination\" #paginationElRef></div>\n<div [ngClass]=\"wrapperClass\">\n <ng-content select=\"[slot=wrapper-start]\"></ng-content>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: prependSlides,\n key: 'prepend'\n }\n \"\n ></ng-template>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: activeSlides,\n key: ''\n }\n \"\n ></ng-template>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: appendSlides,\n key: 'append'\n }\n \"\n ></ng-template>\n <ng-content select=\"[slot=wrapper-end]\"></ng-content>\n</div>\n<ng-content select=\"[slot=container-end]\"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides=\"loopSlides\" let-slideKey=\"key\">\n <div\n *ngFor=\"let slide of loopSlides | async\"\n [ngClass]=\"slide.classNames + ' ' + (slideKey !== '' ? slideDuplicateClass : '')\"\n [attr.data-swiper-slide-index]=\"slide.virtualIndex ? slide.virtualIndex : slide.slideIndex\"\n [style]=\"style\"\n >\n <ng-template\n [ngTemplateOutlet]=\"slide.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: slide.slideData\n }\"\n ></ng-template>\n </div>\n</ng-template>\n", |
|
1125 |
- changeDetection: core.ChangeDetectionStrategy.OnPush, |
|
1126 |
- encapsulation: core.ViewEncapsulation.None, |
|
1127 |
- styles: ["\n swiper {\n display: block;\n }\n "] |
|
1128 |
- },] } |
|
1129 |
- ]; |
|
1130 |
- SwiperComponent.ctorParameters = function () { return [ |
|
1131 |
- { type: core.NgZone }, |
|
1132 |
- { type: core.ElementRef }, |
|
1133 |
- { type: core.ChangeDetectorRef } |
|
1134 |
- ]; }; |
|
1135 |
- SwiperComponent.propDecorators = { |
|
1136 |
- init: [{ type: core.Input }], |
|
1137 |
- direction: [{ type: core.Input }], |
|
1138 |
- touchEventsTarget: [{ type: core.Input }], |
|
1139 |
- initialSlide: [{ type: core.Input }], |
|
1140 |
- speed: [{ type: core.Input }], |
|
1141 |
- cssMode: [{ type: core.Input }], |
|
1142 |
- updateOnWindowResize: [{ type: core.Input }], |
|
1143 |
- nested: [{ type: core.Input }], |
|
1144 |
- width: [{ type: core.Input }], |
|
1145 |
- height: [{ type: core.Input }], |
|
1146 |
- preventInteractionOnTransition: [{ type: core.Input }], |
|
1147 |
- userAgent: [{ type: core.Input }], |
|
1148 |
- url: [{ type: core.Input }], |
|
1149 |
- edgeSwipeDetection: [{ type: core.Input }], |
|
1150 |
- edgeSwipeThreshold: [{ type: core.Input }], |
|
1151 |
- freeMode: [{ type: core.Input }], |
|
1152 |
- freeModeMomentum: [{ type: core.Input }], |
|
1153 |
- freeModeMomentumRatio: [{ type: core.Input }], |
|
1154 |
- freeModeMomentumBounce: [{ type: core.Input }], |
|
1155 |
- freeModeMomentumBounceRatio: [{ type: core.Input }], |
|
1156 |
- freeModeMomentumVelocityRatio: [{ type: core.Input }], |
|
1157 |
- freeModeSticky: [{ type: core.Input }], |
|
1158 |
- freeModeMinimumVelocity: [{ type: core.Input }], |
|
1159 |
- autoHeight: [{ type: core.Input }], |
|
1160 |
- setWrapperSize: [{ type: core.Input }], |
|
1161 |
- virtualTranslate: [{ type: core.Input }], |
|
1162 |
- effect: [{ type: core.Input }], |
|
1163 |
- breakpoints: [{ type: core.Input }], |
|
1164 |
- spaceBetween: [{ type: core.Input }], |
|
1165 |
- slidesPerView: [{ type: core.Input }], |
|
1166 |
- slidesPerColumn: [{ type: core.Input }], |
|
1167 |
- slidesPerColumnFill: [{ type: core.Input }], |
|
1168 |
- slidesPerGroup: [{ type: core.Input }], |
|
1169 |
- slidesPerGroupSkip: [{ type: core.Input }], |
|
1170 |
- centeredSlides: [{ type: core.Input }], |
|
1171 |
- centeredSlidesBounds: [{ type: core.Input }], |
|
1172 |
- slidesOffsetBefore: [{ type: core.Input }], |
|
1173 |
- slidesOffsetAfter: [{ type: core.Input }], |
|
1174 |
- normalizeSlideIndex: [{ type: core.Input }], |
|
1175 |
- centerInsufficientSlides: [{ type: core.Input }], |
|
1176 |
- watchOverflow: [{ type: core.Input }], |
|
1177 |
- roundLengths: [{ type: core.Input }], |
|
1178 |
- touchRatio: [{ type: core.Input }], |
|
1179 |
- touchAngle: [{ type: core.Input }], |
|
1180 |
- simulateTouch: [{ type: core.Input }], |
|
1181 |
- shortSwipes: [{ type: core.Input }], |
|
1182 |
- longSwipes: [{ type: core.Input }], |
|
1183 |
- longSwipesRatio: [{ type: core.Input }], |
|
1184 |
- longSwipesMs: [{ type: core.Input }], |
|
1185 |
- followFinger: [{ type: core.Input }], |
|
1186 |
- allowTouchMove: [{ type: core.Input }], |
|
1187 |
- threshold: [{ type: core.Input }], |
|
1188 |
- touchMoveStopPropagation: [{ type: core.Input }], |
|
1189 |
- touchStartPreventDefault: [{ type: core.Input }], |
|
1190 |
- touchStartForcePreventDefault: [{ type: core.Input }], |
|
1191 |
- touchReleaseOnEdges: [{ type: core.Input }], |
|
1192 |
- uniqueNavElements: [{ type: core.Input }], |
|
1193 |
- resistance: [{ type: core.Input }], |
|
1194 |
- resistanceRatio: [{ type: core.Input }], |
|
1195 |
- watchSlidesProgress: [{ type: core.Input }], |
|
1196 |
- watchSlidesVisibility: [{ type: core.Input }], |
|
1197 |
- grabCursor: [{ type: core.Input }], |
|
1198 |
- preventClicks: [{ type: core.Input }], |
|
1199 |
- preventClicksPropagation: [{ type: core.Input }], |
|
1200 |
- slideToClickedSlide: [{ type: core.Input }], |
|
1201 |
- preloadImages: [{ type: core.Input }], |
|
1202 |
- updateOnImagesReady: [{ type: core.Input }], |
|
1203 |
- loop: [{ type: core.Input }], |
|
1204 |
- loopAdditionalSlides: [{ type: core.Input }], |
|
1205 |
- loopedSlides: [{ type: core.Input }], |
|
1206 |
- loopFillGroupWithBlank: [{ type: core.Input }], |
|
1207 |
- loopPreventsSlide: [{ type: core.Input }], |
|
1208 |
- allowSlidePrev: [{ type: core.Input }], |
|
1209 |
- allowSlideNext: [{ type: core.Input }], |
|
1210 |
- swipeHandler: [{ type: core.Input }], |
|
1211 |
- noSwiping: [{ type: core.Input }], |
|
1212 |
- noSwipingClass: [{ type: core.Input }], |
|
1213 |
- noSwipingSelector: [{ type: core.Input }], |
|
1214 |
- passiveListeners: [{ type: core.Input }], |
|
1215 |
- containerModifierClass: [{ type: core.Input }], |
|
1216 |
- slideClass: [{ type: core.Input }], |
|
1217 |
- slideBlankClass: [{ type: core.Input }], |
|
1218 |
- slideActiveClass: [{ type: core.Input }], |
|
1219 |
- slideDuplicateActiveClass: [{ type: core.Input }], |
|
1220 |
- slideVisibleClass: [{ type: core.Input }], |
|
1221 |
- slideDuplicateClass: [{ type: core.Input }], |
|
1222 |
- slideNextClass: [{ type: core.Input }], |
|
1223 |
- slideDuplicateNextClass: [{ type: core.Input }], |
|
1224 |
- slidePrevClass: [{ type: core.Input }], |
|
1225 |
- slideDuplicatePrevClass: [{ type: core.Input }], |
|
1226 |
- wrapperClass: [{ type: core.Input }], |
|
1227 |
- runCallbacksOnInit: [{ type: core.Input }], |
|
1228 |
- a11y: [{ type: core.Input }], |
|
1229 |
- autoplay: [{ type: core.Input }], |
|
1230 |
- controller: [{ type: core.Input }], |
|
1231 |
- coverflowEffect: [{ type: core.Input }], |
|
1232 |
- cubeEffect: [{ type: core.Input }], |
|
1233 |
- fadeEffect: [{ type: core.Input }], |
|
1234 |
- flipEffect: [{ type: core.Input }], |
|
1235 |
- hashNavigation: [{ type: core.Input }], |
|
1236 |
- history: [{ type: core.Input }], |
|
1237 |
- keyboard: [{ type: core.Input }], |
|
1238 |
- lazy: [{ type: core.Input }], |
|
1239 |
- mousewheel: [{ type: core.Input }], |
|
1240 |
- parallax: [{ type: core.Input }], |
|
1241 |
- thumbs: [{ type: core.Input }], |
|
1242 |
- zoom: [{ type: core.Input }], |
|
1243 |
- navigation: [{ type: core.Input }], |
|
1244 |
- pagination: [{ type: core.Input }], |
|
1245 |
- scrollbar: [{ type: core.Input }], |
|
1246 |
- virtual: [{ type: core.Input }], |
|
1247 |
- index: [{ type: core.Input }], |
|
1248 |
- config: [{ type: core.Input }], |
|
1249 |
- s__beforeBreakpoint: [{ type: core.Output, args: ['_beforeBreakpoint',] }], |
|
1250 |
- s__containerClasses: [{ type: core.Output, args: ['_containerClasses',] }], |
|
1251 |
- s__slideClass: [{ type: core.Output, args: ['_slideClass',] }], |
|
1252 |
- s__swiper: [{ type: core.Output, args: ['_swiper',] }], |
|
1253 |
- s_activeIndexChange: [{ type: core.Output, args: ['activeIndexChange',] }], |
|
1254 |
- s_afterInit: [{ type: core.Output, args: ['afterInit',] }], |
|
1255 |
- s_autoplay: [{ type: core.Output, args: ['autoplay',] }], |
|
1256 |
- s_autoplayStart: [{ type: core.Output, args: ['autoplayStart',] }], |
|
1257 |
- s_autoplayStop: [{ type: core.Output, args: ['autoplayStop',] }], |
|
1258 |
- s_beforeDestroy: [{ type: core.Output, args: ['beforeDestroy',] }], |
|
1259 |
- s_beforeInit: [{ type: core.Output, args: ['beforeInit',] }], |
|
1260 |
- s_beforeLoopFix: [{ type: core.Output, args: ['beforeLoopFix',] }], |
|
1261 |
- s_beforeResize: [{ type: core.Output, args: ['beforeResize',] }], |
|
1262 |
- s_beforeSlideChangeStart: [{ type: core.Output, args: ['beforeSlideChangeStart',] }], |
|
1263 |
- s_beforeTransitionStart: [{ type: core.Output, args: ['beforeTransitionStart',] }], |
|
1264 |
- s_breakpoint: [{ type: core.Output, args: ['breakpoint',] }], |
|
1265 |
- s_changeDirection: [{ type: core.Output, args: ['changeDirection',] }], |
|
1266 |
- s_click: [{ type: core.Output, args: ['click',] }], |
|
1267 |
- s_doubleTap: [{ type: core.Output, args: ['doubleTap',] }], |
|
1268 |
- s_doubleClick: [{ type: core.Output, args: ['doubleClick',] }], |
|
1269 |
- s_destroy: [{ type: core.Output, args: ['destroy',] }], |
|
1270 |
- s_fromEdge: [{ type: core.Output, args: ['fromEdge',] }], |
|
1271 |
- s_hashChange: [{ type: core.Output, args: ['hashChange',] }], |
|
1272 |
- s_hashSet: [{ type: core.Output, args: ['hashSet',] }], |
|
1273 |
- s_imagesReady: [{ type: core.Output, args: ['imagesReady',] }], |
|
1274 |
- s_init: [{ type: core.Output, args: ['init',] }], |
|
1275 |
- s_keyPress: [{ type: core.Output, args: ['keyPress',] }], |
|
1276 |
- s_lazyImageLoad: [{ type: core.Output, args: ['lazyImageLoad',] }], |
|
1277 |
- s_lazyImageReady: [{ type: core.Output, args: ['lazyImageReady',] }], |
|
1278 |
- s_loopFix: [{ type: core.Output, args: ['loopFix',] }], |
|
1279 |
- s_momentumBounce: [{ type: core.Output, args: ['momentumBounce',] }], |
|
1280 |
- s_navigationHide: [{ type: core.Output, args: ['navigationHide',] }], |
|
1281 |
- s_navigationShow: [{ type: core.Output, args: ['navigationShow',] }], |
|
1282 |
- s_observerUpdate: [{ type: core.Output, args: ['observerUpdate',] }], |
|
1283 |
- s_orientationchange: [{ type: core.Output, args: ['orientationchange',] }], |
|
1284 |
- s_paginationHide: [{ type: core.Output, args: ['paginationHide',] }], |
|
1285 |
- s_paginationRender: [{ type: core.Output, args: ['paginationRender',] }], |
|
1286 |
- s_paginationShow: [{ type: core.Output, args: ['paginationShow',] }], |
|
1287 |
- s_paginationUpdate: [{ type: core.Output, args: ['paginationUpdate',] }], |
|
1288 |
- s_progress: [{ type: core.Output, args: ['progress',] }], |
|
1289 |
- s_reachBeginning: [{ type: core.Output, args: ['reachBeginning',] }], |
|
1290 |
- s_reachEnd: [{ type: core.Output, args: ['reachEnd',] }], |
|
1291 |
- s_realIndexChange: [{ type: core.Output, args: ['realIndexChange',] }], |
|
1292 |
- s_resize: [{ type: core.Output, args: ['resize',] }], |
|
1293 |
- s_scroll: [{ type: core.Output, args: ['scroll',] }], |
|
1294 |
- s_scrollbarDragEnd: [{ type: core.Output, args: ['scrollbarDragEnd',] }], |
|
1295 |
- s_scrollbarDragMove: [{ type: core.Output, args: ['scrollbarDragMove',] }], |
|
1296 |
- s_scrollbarDragStart: [{ type: core.Output, args: ['scrollbarDragStart',] }], |
|
1297 |
- s_setTransition: [{ type: core.Output, args: ['setTransition',] }], |
|
1298 |
- s_setTranslate: [{ type: core.Output, args: ['setTranslate',] }], |
|
1299 |
- s_slideChange: [{ type: core.Output, args: ['slideChange',] }], |
|
1300 |
- s_slideChangeTransitionEnd: [{ type: core.Output, args: ['slideChangeTransitionEnd',] }], |
|
1301 |
- s_slideChangeTransitionStart: [{ type: core.Output, args: ['slideChangeTransitionStart',] }], |
|
1302 |
- s_slideNextTransitionEnd: [{ type: core.Output, args: ['slideNextTransitionEnd',] }], |
|
1303 |
- s_slideNextTransitionStart: [{ type: core.Output, args: ['slideNextTransitionStart',] }], |
|
1304 |
- s_slidePrevTransitionEnd: [{ type: core.Output, args: ['slidePrevTransitionEnd',] }], |
|
1305 |
- s_slidePrevTransitionStart: [{ type: core.Output, args: ['slidePrevTransitionStart',] }], |
|
1306 |
- s_slideResetTransitionStart: [{ type: core.Output, args: ['slideResetTransitionStart',] }], |
|
1307 |
- s_slideResetTransitionEnd: [{ type: core.Output, args: ['slideResetTransitionEnd',] }], |
|
1308 |
- s_sliderMove: [{ type: core.Output, args: ['sliderMove',] }], |
|
1309 |
- s_sliderFirstMove: [{ type: core.Output, args: ['sliderFirstMove',] }], |
|
1310 |
- s_slidesLengthChange: [{ type: core.Output, args: ['slidesLengthChange',] }], |
|
1311 |
- s_slidesGridLengthChange: [{ type: core.Output, args: ['slidesGridLengthChange',] }], |
|
1312 |
- s_snapGridLengthChange: [{ type: core.Output, args: ['snapGridLengthChange',] }], |
|
1313 |
- s_snapIndexChange: [{ type: core.Output, args: ['snapIndexChange',] }], |
|
1314 |
- s_tap: [{ type: core.Output, args: ['tap',] }], |
|
1315 |
- s_toEdge: [{ type: core.Output, args: ['toEdge',] }], |
|
1316 |
- s_touchEnd: [{ type: core.Output, args: ['touchEnd',] }], |
|
1317 |
- s_touchMove: [{ type: core.Output, args: ['touchMove',] }], |
|
1318 |
- s_touchMoveOpposite: [{ type: core.Output, args: ['touchMoveOpposite',] }], |
|
1319 |
- s_touchStart: [{ type: core.Output, args: ['touchStart',] }], |
|
1320 |
- s_transitionEnd: [{ type: core.Output, args: ['transitionEnd',] }], |
|
1321 |
- s_transitionStart: [{ type: core.Output, args: ['transitionStart',] }], |
|
1322 |
- s_update: [{ type: core.Output, args: ['update',] }], |
|
1323 |
- s_zoomChange: [{ type: core.Output, args: ['zoomChange',] }], |
|
1324 |
- s_swiper: [{ type: core.Output, args: ['swiper',] }], |
|
1325 |
- indexChange: [{ type: core.Output }], |
|
1326 |
- prevElRef: [{ type: core.ViewChild, args: ['prevElRef', { static: false },] }], |
|
1327 |
- nextElRef: [{ type: core.ViewChild, args: ['nextElRef', { static: false },] }], |
|
1328 |
- scrollbarElRef: [{ type: core.ViewChild, args: ['scrollbarElRef', { static: false },] }], |
|
1329 |
- paginationElRef: [{ type: core.ViewChild, args: ['paginationElRef', { static: false },] }], |
|
1330 |
- slidesEl: [{ type: core.ContentChildren, args: [SwiperSlideDirective, { descendants: true },] }], |
|
1331 |
- containerClasses: [{ type: core.HostBinding, args: ['class',] }] |
|
1332 |
- }; |
|
1333 |
- |
|
1334 |
- var SwiperModule = /** @class */ (function () { |
|
1335 |
- function SwiperModule() { |
|
1336 |
- } |
|
1337 |
- return SwiperModule; |
|
1338 |
- }()); |
|
1339 |
- SwiperModule.decorators = [ |
|
1340 |
- { type: core.NgModule, args: [{ |
|
1341 |
- declarations: [SwiperComponent, SwiperSlideDirective], |
|
1342 |
- exports: [SwiperComponent, SwiperSlideDirective], |
|
1343 |
- imports: [common.CommonModule], |
|
1344 |
- },] } |
|
1345 |
- ]; |
|
1346 |
- |
|
1347 |
- /* |
|
1348 |
- * Public API Surface of angular |
|
1349 |
- */ |
|
1350 |
- |
|
1351 |
- /** |
|
1352 |
- * Generated bundle index. Do not edit. |
|
1353 |
- */ |
|
1354 |
- |
|
1355 |
- exports.SwiperComponent = SwiperComponent; |
|
1356 |
- exports.SwiperModule = SwiperModule; |
|
1357 |
- exports.SwiperSlideDirective = SwiperSlideDirective; |
|
1358 |
- |
|
1359 |
- Object.defineProperty(exports, '__esModule', { value: true }); |
|
1360 |
- |
|
1361 |
-}))); |
|
1362 |
-//# sourceMappingURL=swiper_angular.umd.js.map |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,1362 @@ |
1 |
+(function (global, factory) { |
|
2 |
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('swiper/core'), require('rxjs')) : |
|
3 |
+ typeof define === 'function' && define.amd ? define('swiper_angular', ['exports', '@angular/core', '@angular/common', 'swiper/core', 'rxjs'], factory) : |
|
4 |
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.swiper_angular = {}, global.ng.core, global.ng.common, global.Swiper, global.rxjs)); |
|
5 |
+}(this, (function (exports, core, common, Swiper, rxjs) { 'use strict'; |
|
6 |
+ |
|
7 |
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } |
|
8 |
+ |
|
9 |
+ var Swiper__default = /*#__PURE__*/_interopDefaultLegacy(Swiper); |
|
10 |
+ |
|
11 |
+ /*! ***************************************************************************** |
|
12 |
+ Copyright (c) Microsoft Corporation. |
|
13 |
+ |
|
14 |
+ Permission to use, copy, modify, and/or distribute this software for any |
|
15 |
+ purpose with or without fee is hereby granted. |
|
16 |
+ |
|
17 |
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
|
18 |
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|
19 |
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
|
20 |
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
|
21 |
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
22 |
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
23 |
+ PERFORMANCE OF THIS SOFTWARE. |
|
24 |
+ ***************************************************************************** */ |
|
25 |
+ /* global Reflect, Promise */ |
|
26 |
+ var extendStatics = function (d, b) { |
|
27 |
+ extendStatics = Object.setPrototypeOf || |
|
28 |
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
|
29 |
+ function (d, b) { for (var p in b) |
|
30 |
+ if (Object.prototype.hasOwnProperty.call(b, p)) |
|
31 |
+ d[p] = b[p]; }; |
|
32 |
+ return extendStatics(d, b); |
|
33 |
+ }; |
|
34 |
+ function __extends(d, b) { |
|
35 |
+ extendStatics(d, b); |
|
36 |
+ function __() { this.constructor = d; } |
|
37 |
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
|
38 |
+ } |
|
39 |
+ var __assign = function () { |
|
40 |
+ __assign = Object.assign || function __assign(t) { |
|
41 |
+ for (var s, i = 1, n = arguments.length; i < n; i++) { |
|
42 |
+ s = arguments[i]; |
|
43 |
+ for (var p in s) |
|
44 |
+ if (Object.prototype.hasOwnProperty.call(s, p)) |
|
45 |
+ t[p] = s[p]; |
|
46 |
+ } |
|
47 |
+ return t; |
|
48 |
+ }; |
|
49 |
+ return __assign.apply(this, arguments); |
|
50 |
+ }; |
|
51 |
+ function __rest(s, e) { |
|
52 |
+ var t = {}; |
|
53 |
+ for (var p in s) |
|
54 |
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) |
|
55 |
+ t[p] = s[p]; |
|
56 |
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") |
|
57 |
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { |
|
58 |
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) |
|
59 |
+ t[p[i]] = s[p[i]]; |
|
60 |
+ } |
|
61 |
+ return t; |
|
62 |
+ } |
|
63 |
+ function __decorate(decorators, target, key, desc) { |
|
64 |
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
|
65 |
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") |
|
66 |
+ r = Reflect.decorate(decorators, target, key, desc); |
|
67 |
+ else |
|
68 |
+ for (var i = decorators.length - 1; i >= 0; i--) |
|
69 |
+ if (d = decorators[i]) |
|
70 |
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
|
71 |
+ return c > 3 && r && Object.defineProperty(target, key, r), r; |
|
72 |
+ } |
|
73 |
+ function __param(paramIndex, decorator) { |
|
74 |
+ return function (target, key) { decorator(target, key, paramIndex); }; |
|
75 |
+ } |
|
76 |
+ function __metadata(metadataKey, metadataValue) { |
|
77 |
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") |
|
78 |
+ return Reflect.metadata(metadataKey, metadataValue); |
|
79 |
+ } |
|
80 |
+ function __awaiter(thisArg, _arguments, P, generator) { |
|
81 |
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
|
82 |
+ return new (P || (P = Promise))(function (resolve, reject) { |
|
83 |
+ function fulfilled(value) { try { |
|
84 |
+ step(generator.next(value)); |
|
85 |
+ } |
|
86 |
+ catch (e) { |
|
87 |
+ reject(e); |
|
88 |
+ } } |
|
89 |
+ function rejected(value) { try { |
|
90 |
+ step(generator["throw"](value)); |
|
91 |
+ } |
|
92 |
+ catch (e) { |
|
93 |
+ reject(e); |
|
94 |
+ } } |
|
95 |
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
|
96 |
+ step((generator = generator.apply(thisArg, _arguments || [])).next()); |
|
97 |
+ }); |
|
98 |
+ } |
|
99 |
+ function __generator(thisArg, body) { |
|
100 |
+ var _ = { label: 0, sent: function () { if (t[0] & 1) |
|
101 |
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
|
102 |
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g; |
|
103 |
+ function verb(n) { return function (v) { return step([n, v]); }; } |
|
104 |
+ function step(op) { |
|
105 |
+ if (f) |
|
106 |
+ throw new TypeError("Generator is already executing."); |
|
107 |
+ while (_) |
|
108 |
+ try { |
|
109 |
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) |
|
110 |
+ return t; |
|
111 |
+ if (y = 0, t) |
|
112 |
+ op = [op[0] & 2, t.value]; |
|
113 |
+ switch (op[0]) { |
|
114 |
+ case 0: |
|
115 |
+ case 1: |
|
116 |
+ t = op; |
|
117 |
+ break; |
|
118 |
+ case 4: |
|
119 |
+ _.label++; |
|
120 |
+ return { value: op[1], done: false }; |
|
121 |
+ case 5: |
|
122 |
+ _.label++; |
|
123 |
+ y = op[1]; |
|
124 |
+ op = [0]; |
|
125 |
+ continue; |
|
126 |
+ case 7: |
|
127 |
+ op = _.ops.pop(); |
|
128 |
+ _.trys.pop(); |
|
129 |
+ continue; |
|
130 |
+ default: |
|
131 |
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { |
|
132 |
+ _ = 0; |
|
133 |
+ continue; |
|
134 |
+ } |
|
135 |
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { |
|
136 |
+ _.label = op[1]; |
|
137 |
+ break; |
|
138 |
+ } |
|
139 |
+ if (op[0] === 6 && _.label < t[1]) { |
|
140 |
+ _.label = t[1]; |
|
141 |
+ t = op; |
|
142 |
+ break; |
|
143 |
+ } |
|
144 |
+ if (t && _.label < t[2]) { |
|
145 |
+ _.label = t[2]; |
|
146 |
+ _.ops.push(op); |
|
147 |
+ break; |
|
148 |
+ } |
|
149 |
+ if (t[2]) |
|
150 |
+ _.ops.pop(); |
|
151 |
+ _.trys.pop(); |
|
152 |
+ continue; |
|
153 |
+ } |
|
154 |
+ op = body.call(thisArg, _); |
|
155 |
+ } |
|
156 |
+ catch (e) { |
|
157 |
+ op = [6, e]; |
|
158 |
+ y = 0; |
|
159 |
+ } |
|
160 |
+ finally { |
|
161 |
+ f = t = 0; |
|
162 |
+ } |
|
163 |
+ if (op[0] & 5) |
|
164 |
+ throw op[1]; |
|
165 |
+ return { value: op[0] ? op[1] : void 0, done: true }; |
|
166 |
+ } |
|
167 |
+ } |
|
168 |
+ var __createBinding = Object.create ? (function (o, m, k, k2) { |
|
169 |
+ if (k2 === undefined) |
|
170 |
+ k2 = k; |
|
171 |
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } }); |
|
172 |
+ }) : (function (o, m, k, k2) { |
|
173 |
+ if (k2 === undefined) |
|
174 |
+ k2 = k; |
|
175 |
+ o[k2] = m[k]; |
|
176 |
+ }); |
|
177 |
+ function __exportStar(m, o) { |
|
178 |
+ for (var p in m) |
|
179 |
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) |
|
180 |
+ __createBinding(o, m, p); |
|
181 |
+ } |
|
182 |
+ function __values(o) { |
|
183 |
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
|
184 |
+ if (m) |
|
185 |
+ return m.call(o); |
|
186 |
+ if (o && typeof o.length === "number") |
|
187 |
+ return { |
|
188 |
+ next: function () { |
|
189 |
+ if (o && i >= o.length) |
|
190 |
+ o = void 0; |
|
191 |
+ return { value: o && o[i++], done: !o }; |
|
192 |
+ } |
|
193 |
+ }; |
|
194 |
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); |
|
195 |
+ } |
|
196 |
+ function __read(o, n) { |
|
197 |
+ var m = typeof Symbol === "function" && o[Symbol.iterator]; |
|
198 |
+ if (!m) |
|
199 |
+ return o; |
|
200 |
+ var i = m.call(o), r, ar = [], e; |
|
201 |
+ try { |
|
202 |
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) |
|
203 |
+ ar.push(r.value); |
|
204 |
+ } |
|
205 |
+ catch (error) { |
|
206 |
+ e = { error: error }; |
|
207 |
+ } |
|
208 |
+ finally { |
|
209 |
+ try { |
|
210 |
+ if (r && !r.done && (m = i["return"])) |
|
211 |
+ m.call(i); |
|
212 |
+ } |
|
213 |
+ finally { |
|
214 |
+ if (e) |
|
215 |
+ throw e.error; |
|
216 |
+ } |
|
217 |
+ } |
|
218 |
+ return ar; |
|
219 |
+ } |
|
220 |
+ function __spread() { |
|
221 |
+ for (var ar = [], i = 0; i < arguments.length; i++) |
|
222 |
+ ar = ar.concat(__read(arguments[i])); |
|
223 |
+ return ar; |
|
224 |
+ } |
|
225 |
+ function __spreadArrays() { |
|
226 |
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) |
|
227 |
+ s += arguments[i].length; |
|
228 |
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) |
|
229 |
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) |
|
230 |
+ r[k] = a[j]; |
|
231 |
+ return r; |
|
232 |
+ } |
|
233 |
+ ; |
|
234 |
+ function __await(v) { |
|
235 |
+ return this instanceof __await ? (this.v = v, this) : new __await(v); |
|
236 |
+ } |
|
237 |
+ function __asyncGenerator(thisArg, _arguments, generator) { |
|
238 |
+ if (!Symbol.asyncIterator) |
|
239 |
+ throw new TypeError("Symbol.asyncIterator is not defined."); |
|
240 |
+ var g = generator.apply(thisArg, _arguments || []), i, q = []; |
|
241 |
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
|
242 |
+ function verb(n) { if (g[n]) |
|
243 |
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
|
244 |
+ function resume(n, v) { try { |
|
245 |
+ step(g[n](v)); |
|
246 |
+ } |
|
247 |
+ catch (e) { |
|
248 |
+ settle(q[0][3], e); |
|
249 |
+ } } |
|
250 |
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
|
251 |
+ function fulfill(value) { resume("next", value); } |
|
252 |
+ function reject(value) { resume("throw", value); } |
|
253 |
+ function settle(f, v) { if (f(v), q.shift(), q.length) |
|
254 |
+ resume(q[0][0], q[0][1]); } |
|
255 |
+ } |
|
256 |
+ function __asyncDelegator(o) { |
|
257 |
+ var i, p; |
|
258 |
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; |
|
259 |
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } |
|
260 |
+ } |
|
261 |
+ function __asyncValues(o) { |
|
262 |
+ if (!Symbol.asyncIterator) |
|
263 |
+ throw new TypeError("Symbol.asyncIterator is not defined."); |
|
264 |
+ var m = o[Symbol.asyncIterator], i; |
|
265 |
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); |
|
266 |
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } |
|
267 |
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); } |
|
268 |
+ } |
|
269 |
+ function __makeTemplateObject(cooked, raw) { |
|
270 |
+ if (Object.defineProperty) { |
|
271 |
+ Object.defineProperty(cooked, "raw", { value: raw }); |
|
272 |
+ } |
|
273 |
+ else { |
|
274 |
+ cooked.raw = raw; |
|
275 |
+ } |
|
276 |
+ return cooked; |
|
277 |
+ } |
|
278 |
+ ; |
|
279 |
+ var __setModuleDefault = Object.create ? (function (o, v) { |
|
280 |
+ Object.defineProperty(o, "default", { enumerable: true, value: v }); |
|
281 |
+ }) : function (o, v) { |
|
282 |
+ o["default"] = v; |
|
283 |
+ }; |
|
284 |
+ function __importStar(mod) { |
|
285 |
+ if (mod && mod.__esModule) |
|
286 |
+ return mod; |
|
287 |
+ var result = {}; |
|
288 |
+ if (mod != null) |
|
289 |
+ for (var k in mod) |
|
290 |
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) |
|
291 |
+ __createBinding(result, mod, k); |
|
292 |
+ __setModuleDefault(result, mod); |
|
293 |
+ return result; |
|
294 |
+ } |
|
295 |
+ function __importDefault(mod) { |
|
296 |
+ return (mod && mod.__esModule) ? mod : { default: mod }; |
|
297 |
+ } |
|
298 |
+ function __classPrivateFieldGet(receiver, privateMap) { |
|
299 |
+ if (!privateMap.has(receiver)) { |
|
300 |
+ throw new TypeError("attempted to get private field on non-instance"); |
|
301 |
+ } |
|
302 |
+ return privateMap.get(receiver); |
|
303 |
+ } |
|
304 |
+ function __classPrivateFieldSet(receiver, privateMap, value) { |
|
305 |
+ if (!privateMap.has(receiver)) { |
|
306 |
+ throw new TypeError("attempted to set private field on non-instance"); |
|
307 |
+ } |
|
308 |
+ privateMap.set(receiver, value); |
|
309 |
+ return value; |
|
310 |
+ } |
|
311 |
+ |
|
312 |
+ function isObject(o) { |
|
313 |
+ return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object; |
|
314 |
+ } |
|
315 |
+ function extend(target, src) { |
|
316 |
+ Object.keys(src).forEach(function (key) { |
|
317 |
+ if (typeof target[key] === 'undefined') { |
|
318 |
+ target[key] = src[key]; |
|
319 |
+ return; |
|
320 |
+ } |
|
321 |
+ if (target[key] && !src[key]) { |
|
322 |
+ return; |
|
323 |
+ } |
|
324 |
+ if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) { |
|
325 |
+ extend(target[key], src[key]); |
|
326 |
+ } |
|
327 |
+ else { |
|
328 |
+ target[key] = src[key]; |
|
329 |
+ } |
|
330 |
+ }); |
|
331 |
+ } |
|
332 |
+ function uniqueClasses(classNames) { |
|
333 |
+ if (classNames === void 0) { classNames = ''; } |
|
334 |
+ var classes = classNames |
|
335 |
+ .split(' ') |
|
336 |
+ .map(function (c) { return c.trim(); }) |
|
337 |
+ .filter(function (c) { return !!c; }); |
|
338 |
+ var unique = []; |
|
339 |
+ classes.forEach(function (c) { |
|
340 |
+ if (unique.indexOf(c) < 0) |
|
341 |
+ unique.push(c); |
|
342 |
+ }); |
|
343 |
+ return unique.join(' '); |
|
344 |
+ } |
|
345 |
+ function coerceBooleanProperty(value) { |
|
346 |
+ return value != null && "" + value !== 'false'; |
|
347 |
+ } |
|
348 |
+ var ignoreNgOnChanges = ['pagination', 'navigation', 'scrollbar', 'virtual']; |
|
349 |
+ function setProperty(val, obj) { |
|
350 |
+ if (obj === void 0) { obj = {}; } |
|
351 |
+ if (isObject(val)) { |
|
352 |
+ return val; |
|
353 |
+ } |
|
354 |
+ var newValue = coerceBooleanProperty(val); |
|
355 |
+ if (newValue === true) { |
|
356 |
+ return obj; |
|
357 |
+ } |
|
358 |
+ return newValue; |
|
359 |
+ } |
|
360 |
+ |
|
361 |
+ /* underscore in name -> watch for changes */ |
|
362 |
+ var paramsList = [ |
|
363 |
+ 'init', |
|
364 |
+ '_direction', |
|
365 |
+ 'touchEventsTarget', |
|
366 |
+ 'initialSlide', |
|
367 |
+ '_speed', |
|
368 |
+ 'cssMode', |
|
369 |
+ 'updateOnWindowResize', |
|
370 |
+ 'nested', |
|
371 |
+ '_width', |
|
372 |
+ '_height', |
|
373 |
+ 'preventInteractionOnTransition', |
|
374 |
+ 'userAgent', |
|
375 |
+ 'url', |
|
376 |
+ '_edgeSwipeDetection', |
|
377 |
+ '_edgeSwipeThreshold', |
|
378 |
+ '_freeMode', |
|
379 |
+ '_freeModeMomentum', |
|
380 |
+ '_freeModeMomentumRatio', |
|
381 |
+ '_freeModeMomentumBounce', |
|
382 |
+ '_freeModeMomentumBounceRatio', |
|
383 |
+ '_freeModeMomentumVelocityRatio', |
|
384 |
+ '_freeModeSticky', |
|
385 |
+ '_freeModeMinimumVelocity', |
|
386 |
+ '_autoHeight', |
|
387 |
+ 'setWrapperSize', |
|
388 |
+ 'virtualTranslate', |
|
389 |
+ '_effect', |
|
390 |
+ 'breakpoints', |
|
391 |
+ '_spaceBetween', |
|
392 |
+ '_slidesPerView', |
|
393 |
+ '_slidesPerColumn', |
|
394 |
+ '_slidesPerColumnFill', |
|
395 |
+ '_slidesPerGroup', |
|
396 |
+ '_slidesPerGroupSkip', |
|
397 |
+ '_centeredSlides', |
|
398 |
+ '_centeredSlidesBounds', |
|
399 |
+ '_slidesOffsetBefore', |
|
400 |
+ '_slidesOffsetAfter', |
|
401 |
+ 'normalizeSlideIndex', |
|
402 |
+ '_centerInsufficientSlides', |
|
403 |
+ '_watchOverflow', |
|
404 |
+ 'roundLengths', |
|
405 |
+ 'touchRatio', |
|
406 |
+ 'touchAngle', |
|
407 |
+ 'simulateTouch', |
|
408 |
+ '_shortSwipes', |
|
409 |
+ '_longSwipes', |
|
410 |
+ 'longSwipesRatio', |
|
411 |
+ 'longSwipesMs', |
|
412 |
+ '_followFinger', |
|
413 |
+ 'allowTouchMove', |
|
414 |
+ '_threshold', |
|
415 |
+ 'touchMoveStopPropagation', |
|
416 |
+ 'touchStartPreventDefault', |
|
417 |
+ 'touchStartForcePreventDefault', |
|
418 |
+ 'touchReleaseOnEdges', |
|
419 |
+ 'uniqueNavElements', |
|
420 |
+ '_resistance', |
|
421 |
+ '_resistanceRatio', |
|
422 |
+ '_watchSlidesProgress', |
|
423 |
+ '_watchSlidesVisibility', |
|
424 |
+ '_grabCursor', |
|
425 |
+ 'preventClicks', |
|
426 |
+ 'preventClicksPropagation', |
|
427 |
+ '_slideToClickedSlide', |
|
428 |
+ '_preloadImages', |
|
429 |
+ 'updateOnImagesReady', |
|
430 |
+ '_loop', |
|
431 |
+ '_loopAdditionalSlides', |
|
432 |
+ '_loopedSlides', |
|
433 |
+ '_loopFillGroupWithBlank', |
|
434 |
+ 'loopPreventsSlide', |
|
435 |
+ '_allowSlidePrev', |
|
436 |
+ '_allowSlideNext', |
|
437 |
+ '_swipeHandler', |
|
438 |
+ '_noSwiping', |
|
439 |
+ 'noSwipingClass', |
|
440 |
+ 'noSwipingSelector', |
|
441 |
+ 'passiveListeners', |
|
442 |
+ 'containerModifierClass', |
|
443 |
+ 'slideClass', |
|
444 |
+ 'slideBlankClass', |
|
445 |
+ 'slideActiveClass', |
|
446 |
+ 'slideDuplicateActiveClass', |
|
447 |
+ 'slideVisibleClass', |
|
448 |
+ 'slideDuplicateClass', |
|
449 |
+ 'slideNextClass', |
|
450 |
+ 'slideDuplicateNextClass', |
|
451 |
+ 'slidePrevClass', |
|
452 |
+ 'slideDuplicatePrevClass', |
|
453 |
+ 'wrapperClass', |
|
454 |
+ 'runCallbacksOnInit', |
|
455 |
+ // modules |
|
456 |
+ 'a11y', |
|
457 |
+ 'autoplay', |
|
458 |
+ '_controller', |
|
459 |
+ 'coverflowEffect', |
|
460 |
+ 'cubeEffect', |
|
461 |
+ 'fadeEffect', |
|
462 |
+ 'flipEffect', |
|
463 |
+ 'hashNavigation', |
|
464 |
+ 'history', |
|
465 |
+ 'keyboard', |
|
466 |
+ 'lazy', |
|
467 |
+ 'mousewheel', |
|
468 |
+ '_navigation', |
|
469 |
+ '_pagination', |
|
470 |
+ 'parallax', |
|
471 |
+ '_scrollbar', |
|
472 |
+ '_thumbs', |
|
473 |
+ 'virtual', |
|
474 |
+ 'zoom', |
|
475 |
+ ]; |
|
476 |
+ |
|
477 |
+ // eslint-disable-next-line |
|
478 |
+ var ɵ0 = function (key) { return key.replace(/_/, ''); }; |
|
479 |
+ var allowedParams = paramsList.map(ɵ0); |
|
480 |
+ function getParams(obj) { |
|
481 |
+ if (obj === void 0) { obj = {}; } |
|
482 |
+ var params = { |
|
483 |
+ on: {}, |
|
484 |
+ }; |
|
485 |
+ var passedParams = {}; |
|
486 |
+ extend(params, Swiper__default['default'].defaults); |
|
487 |
+ extend(params, Swiper__default['default'].extendedDefaults); |
|
488 |
+ params._emitClasses = true; |
|
489 |
+ var rest = {}; |
|
490 |
+ Object.keys(obj).forEach(function (key) { |
|
491 |
+ var _key = key.replace(/^_/, ''); |
|
492 |
+ if (typeof obj[_key] === 'undefined') |
|
493 |
+ return; |
|
494 |
+ if (allowedParams.indexOf(_key) >= 0) { |
|
495 |
+ if (isObject(obj[_key])) { |
|
496 |
+ params[_key] = {}; |
|
497 |
+ passedParams[_key] = {}; |
|
498 |
+ extend(params[_key], obj[_key]); |
|
499 |
+ extend(passedParams[_key], obj[_key]); |
|
500 |
+ } |
|
501 |
+ else { |
|
502 |
+ params[_key] = obj[_key]; |
|
503 |
+ passedParams[_key] = obj[_key]; |
|
504 |
+ } |
|
505 |
+ } |
|
506 |
+ else { |
|
507 |
+ rest[_key] = obj[_key]; |
|
508 |
+ } |
|
509 |
+ }); |
|
510 |
+ return { params: params, passedParams: passedParams, rest: rest }; |
|
511 |
+ } |
|
512 |
+ |
|
513 |
+ var SwiperSlideDirective = /** @class */ (function () { |
|
514 |
+ function SwiperSlideDirective(template) { |
|
515 |
+ this.template = template; |
|
516 |
+ this.slideData = { |
|
517 |
+ isActive: false, |
|
518 |
+ isPrev: false, |
|
519 |
+ isNext: false, |
|
520 |
+ isVisible: false, |
|
521 |
+ isDuplicate: false, |
|
522 |
+ }; |
|
523 |
+ } |
|
524 |
+ Object.defineProperty(SwiperSlideDirective.prototype, "classNames", { |
|
525 |
+ get: function () { |
|
526 |
+ return this._classNames; |
|
527 |
+ }, |
|
528 |
+ set: function (val) { |
|
529 |
+ if (this._classNames === val) { |
|
530 |
+ return; |
|
531 |
+ } |
|
532 |
+ this._classNames = val; |
|
533 |
+ this.slideData = { |
|
534 |
+ isActive: this._hasClass(['swiper-slide-active', 'swiper-slide-duplicate-active']), |
|
535 |
+ isVisible: this._hasClass(['swiper-slide-visible']), |
|
536 |
+ isDuplicate: this._hasClass(['swiper-slide-duplicate']), |
|
537 |
+ isPrev: this._hasClass(['swiper-slide-prev', 'swiper-slide-duplicate-prev']), |
|
538 |
+ isNext: this._hasClass(['swiper-slide-next', 'swiper-slide-duplicate-next']), |
|
539 |
+ }; |
|
540 |
+ }, |
|
541 |
+ enumerable: false, |
|
542 |
+ configurable: true |
|
543 |
+ }); |
|
544 |
+ SwiperSlideDirective.prototype._hasClass = function (classNames) { |
|
545 |
+ var _this = this; |
|
546 |
+ return classNames.some(function (className) { return _this._classNames.indexOf(className) >= 0; }); |
|
547 |
+ }; |
|
548 |
+ return SwiperSlideDirective; |
|
549 |
+ }()); |
|
550 |
+ SwiperSlideDirective.decorators = [ |
|
551 |
+ { type: core.Directive, args: [{ |
|
552 |
+ selector: '[swiperSlide]', |
|
553 |
+ },] } |
|
554 |
+ ]; |
|
555 |
+ SwiperSlideDirective.ctorParameters = function () { return [ |
|
556 |
+ { type: core.TemplateRef } |
|
557 |
+ ]; }; |
|
558 |
+ SwiperSlideDirective.propDecorators = { |
|
559 |
+ virtualIndex: [{ type: core.Input }] |
|
560 |
+ }; |
|
561 |
+ |
|
562 |
+ var SwiperComponent = /** @class */ (function () { |
|
563 |
+ function SwiperComponent(zone, elementRef, _changeDetectorRef) { |
|
564 |
+ this.zone = zone; |
|
565 |
+ this.elementRef = elementRef; |
|
566 |
+ this._changeDetectorRef = _changeDetectorRef; |
|
567 |
+ this.init = true; |
|
568 |
+ this.slideClass = 'swiper-slide'; |
|
569 |
+ this.wrapperClass = 'swiper-wrapper'; |
|
570 |
+ // prettier-ignore |
|
571 |
+ this.s__beforeBreakpoint = new core.EventEmitter(); |
|
572 |
+ // prettier-ignore |
|
573 |
+ this.s__containerClasses = new core.EventEmitter(); |
|
574 |
+ // prettier-ignore |
|
575 |
+ this.s__slideClass = new core.EventEmitter(); |
|
576 |
+ // prettier-ignore |
|
577 |
+ this.s__swiper = new core.EventEmitter(); |
|
578 |
+ // prettier-ignore |
|
579 |
+ this.s_activeIndexChange = new core.EventEmitter(); |
|
580 |
+ // prettier-ignore |
|
581 |
+ this.s_afterInit = new core.EventEmitter(); |
|
582 |
+ // prettier-ignore |
|
583 |
+ this.s_autoplay = new core.EventEmitter(); |
|
584 |
+ // prettier-ignore |
|
585 |
+ this.s_autoplayStart = new core.EventEmitter(); |
|
586 |
+ // prettier-ignore |
|
587 |
+ this.s_autoplayStop = new core.EventEmitter(); |
|
588 |
+ // prettier-ignore |
|
589 |
+ this.s_beforeDestroy = new core.EventEmitter(); |
|
590 |
+ // prettier-ignore |
|
591 |
+ this.s_beforeInit = new core.EventEmitter(); |
|
592 |
+ // prettier-ignore |
|
593 |
+ this.s_beforeLoopFix = new core.EventEmitter(); |
|
594 |
+ // prettier-ignore |
|
595 |
+ this.s_beforeResize = new core.EventEmitter(); |
|
596 |
+ // prettier-ignore |
|
597 |
+ this.s_beforeSlideChangeStart = new core.EventEmitter(); |
|
598 |
+ // prettier-ignore |
|
599 |
+ this.s_beforeTransitionStart = new core.EventEmitter(); |
|
600 |
+ // prettier-ignore |
|
601 |
+ this.s_breakpoint = new core.EventEmitter(); |
|
602 |
+ // prettier-ignore |
|
603 |
+ this.s_changeDirection = new core.EventEmitter(); |
|
604 |
+ // prettier-ignore |
|
605 |
+ this.s_click = new core.EventEmitter(); |
|
606 |
+ // prettier-ignore |
|
607 |
+ this.s_doubleTap = new core.EventEmitter(); |
|
608 |
+ // prettier-ignore |
|
609 |
+ this.s_doubleClick = new core.EventEmitter(); |
|
610 |
+ // prettier-ignore |
|
611 |
+ this.s_destroy = new core.EventEmitter(); |
|
612 |
+ // prettier-ignore |
|
613 |
+ this.s_fromEdge = new core.EventEmitter(); |
|
614 |
+ // prettier-ignore |
|
615 |
+ this.s_hashChange = new core.EventEmitter(); |
|
616 |
+ // prettier-ignore |
|
617 |
+ this.s_hashSet = new core.EventEmitter(); |
|
618 |
+ // prettier-ignore |
|
619 |
+ this.s_imagesReady = new core.EventEmitter(); |
|
620 |
+ // prettier-ignore |
|
621 |
+ this.s_init = new core.EventEmitter(); |
|
622 |
+ // prettier-ignore |
|
623 |
+ this.s_keyPress = new core.EventEmitter(); |
|
624 |
+ // prettier-ignore |
|
625 |
+ this.s_lazyImageLoad = new core.EventEmitter(); |
|
626 |
+ // prettier-ignore |
|
627 |
+ this.s_lazyImageReady = new core.EventEmitter(); |
|
628 |
+ // prettier-ignore |
|
629 |
+ this.s_loopFix = new core.EventEmitter(); |
|
630 |
+ // prettier-ignore |
|
631 |
+ this.s_momentumBounce = new core.EventEmitter(); |
|
632 |
+ // prettier-ignore |
|
633 |
+ this.s_navigationHide = new core.EventEmitter(); |
|
634 |
+ // prettier-ignore |
|
635 |
+ this.s_navigationShow = new core.EventEmitter(); |
|
636 |
+ // prettier-ignore |
|
637 |
+ this.s_observerUpdate = new core.EventEmitter(); |
|
638 |
+ // prettier-ignore |
|
639 |
+ this.s_orientationchange = new core.EventEmitter(); |
|
640 |
+ // prettier-ignore |
|
641 |
+ this.s_paginationHide = new core.EventEmitter(); |
|
642 |
+ // prettier-ignore |
|
643 |
+ this.s_paginationRender = new core.EventEmitter(); |
|
644 |
+ // prettier-ignore |
|
645 |
+ this.s_paginationShow = new core.EventEmitter(); |
|
646 |
+ // prettier-ignore |
|
647 |
+ this.s_paginationUpdate = new core.EventEmitter(); |
|
648 |
+ // prettier-ignore |
|
649 |
+ this.s_progress = new core.EventEmitter(); |
|
650 |
+ // prettier-ignore |
|
651 |
+ this.s_reachBeginning = new core.EventEmitter(); |
|
652 |
+ // prettier-ignore |
|
653 |
+ this.s_reachEnd = new core.EventEmitter(); |
|
654 |
+ // prettier-ignore |
|
655 |
+ this.s_realIndexChange = new core.EventEmitter(); |
|
656 |
+ // prettier-ignore |
|
657 |
+ this.s_resize = new core.EventEmitter(); |
|
658 |
+ // prettier-ignore |
|
659 |
+ this.s_scroll = new core.EventEmitter(); |
|
660 |
+ // prettier-ignore |
|
661 |
+ this.s_scrollbarDragEnd = new core.EventEmitter(); |
|
662 |
+ // prettier-ignore |
|
663 |
+ this.s_scrollbarDragMove = new core.EventEmitter(); |
|
664 |
+ // prettier-ignore |
|
665 |
+ this.s_scrollbarDragStart = new core.EventEmitter(); |
|
666 |
+ // prettier-ignore |
|
667 |
+ this.s_setTransition = new core.EventEmitter(); |
|
668 |
+ // prettier-ignore |
|
669 |
+ this.s_setTranslate = new core.EventEmitter(); |
|
670 |
+ // prettier-ignore |
|
671 |
+ this.s_slideChange = new core.EventEmitter(); |
|
672 |
+ // prettier-ignore |
|
673 |
+ this.s_slideChangeTransitionEnd = new core.EventEmitter(); |
|
674 |
+ // prettier-ignore |
|
675 |
+ this.s_slideChangeTransitionStart = new core.EventEmitter(); |
|
676 |
+ // prettier-ignore |
|
677 |
+ this.s_slideNextTransitionEnd = new core.EventEmitter(); |
|
678 |
+ // prettier-ignore |
|
679 |
+ this.s_slideNextTransitionStart = new core.EventEmitter(); |
|
680 |
+ // prettier-ignore |
|
681 |
+ this.s_slidePrevTransitionEnd = new core.EventEmitter(); |
|
682 |
+ // prettier-ignore |
|
683 |
+ this.s_slidePrevTransitionStart = new core.EventEmitter(); |
|
684 |
+ // prettier-ignore |
|
685 |
+ this.s_slideResetTransitionStart = new core.EventEmitter(); |
|
686 |
+ // prettier-ignore |
|
687 |
+ this.s_slideResetTransitionEnd = new core.EventEmitter(); |
|
688 |
+ // prettier-ignore |
|
689 |
+ this.s_sliderMove = new core.EventEmitter(); |
|
690 |
+ // prettier-ignore |
|
691 |
+ this.s_sliderFirstMove = new core.EventEmitter(); |
|
692 |
+ // prettier-ignore |
|
693 |
+ this.s_slidesLengthChange = new core.EventEmitter(); |
|
694 |
+ // prettier-ignore |
|
695 |
+ this.s_slidesGridLengthChange = new core.EventEmitter(); |
|
696 |
+ // prettier-ignore |
|
697 |
+ this.s_snapGridLengthChange = new core.EventEmitter(); |
|
698 |
+ // prettier-ignore |
|
699 |
+ this.s_snapIndexChange = new core.EventEmitter(); |
|
700 |
+ // prettier-ignore |
|
701 |
+ this.s_tap = new core.EventEmitter(); |
|
702 |
+ // prettier-ignore |
|
703 |
+ this.s_toEdge = new core.EventEmitter(); |
|
704 |
+ // prettier-ignore |
|
705 |
+ this.s_touchEnd = new core.EventEmitter(); |
|
706 |
+ // prettier-ignore |
|
707 |
+ this.s_touchMove = new core.EventEmitter(); |
|
708 |
+ // prettier-ignore |
|
709 |
+ this.s_touchMoveOpposite = new core.EventEmitter(); |
|
710 |
+ // prettier-ignore |
|
711 |
+ this.s_touchStart = new core.EventEmitter(); |
|
712 |
+ // prettier-ignore |
|
713 |
+ this.s_transitionEnd = new core.EventEmitter(); |
|
714 |
+ // prettier-ignore |
|
715 |
+ this.s_transitionStart = new core.EventEmitter(); |
|
716 |
+ // prettier-ignore |
|
717 |
+ this.s_update = new core.EventEmitter(); |
|
718 |
+ // prettier-ignore |
|
719 |
+ this.s_zoomChange = new core.EventEmitter(); |
|
720 |
+ // prettier-ignore |
|
721 |
+ this.s_swiper = new core.EventEmitter(); |
|
722 |
+ this.indexChange = new core.EventEmitter(); |
|
723 |
+ this._activeSlides = new rxjs.Subject(); |
|
724 |
+ this.containerClasses = 'swiper-container'; |
|
725 |
+ this.style = null; |
|
726 |
+ } |
|
727 |
+ Object.defineProperty(SwiperComponent.prototype, "navigation", { |
|
728 |
+ get: function () { |
|
729 |
+ return this._navigation; |
|
730 |
+ }, |
|
731 |
+ set: function (val) { |
|
732 |
+ this._navigation = setProperty(val, { |
|
733 |
+ nextEl: null, |
|
734 |
+ prevEl: null, |
|
735 |
+ }); |
|
736 |
+ }, |
|
737 |
+ enumerable: false, |
|
738 |
+ configurable: true |
|
739 |
+ }); |
|
740 |
+ Object.defineProperty(SwiperComponent.prototype, "pagination", { |
|
741 |
+ get: function () { |
|
742 |
+ return this._pagination; |
|
743 |
+ }, |
|
744 |
+ set: function (val) { |
|
745 |
+ this._pagination = setProperty(val, { |
|
746 |
+ el: null, |
|
747 |
+ }); |
|
748 |
+ }, |
|
749 |
+ enumerable: false, |
|
750 |
+ configurable: true |
|
751 |
+ }); |
|
752 |
+ Object.defineProperty(SwiperComponent.prototype, "scrollbar", { |
|
753 |
+ get: function () { |
|
754 |
+ return this._scrollbar; |
|
755 |
+ }, |
|
756 |
+ set: function (val) { |
|
757 |
+ this._scrollbar = setProperty(val, { |
|
758 |
+ el: null, |
|
759 |
+ }); |
|
760 |
+ }, |
|
761 |
+ enumerable: false, |
|
762 |
+ configurable: true |
|
763 |
+ }); |
|
764 |
+ Object.defineProperty(SwiperComponent.prototype, "virtual", { |
|
765 |
+ get: function () { |
|
766 |
+ return this._virtual; |
|
767 |
+ }, |
|
768 |
+ set: function (val) { |
|
769 |
+ this._virtual = setProperty(val); |
|
770 |
+ }, |
|
771 |
+ enumerable: false, |
|
772 |
+ configurable: true |
|
773 |
+ }); |
|
774 |
+ Object.defineProperty(SwiperComponent.prototype, "index", { |
|
775 |
+ set: function (index) { |
|
776 |
+ this.setIndex(index); |
|
777 |
+ }, |
|
778 |
+ enumerable: false, |
|
779 |
+ configurable: true |
|
780 |
+ }); |
|
781 |
+ Object.defineProperty(SwiperComponent.prototype, "config", { |
|
782 |
+ set: function (val) { |
|
783 |
+ this.updateSwiper(val); |
|
784 |
+ var params = getParams(val).params; |
|
785 |
+ Object.assign(this, params); |
|
786 |
+ }, |
|
787 |
+ enumerable: false, |
|
788 |
+ configurable: true |
|
789 |
+ }); |
|
790 |
+ Object.defineProperty(SwiperComponent.prototype, "prevElRef", { |
|
791 |
+ set: function (el) { |
|
792 |
+ this._setElement(el, this.navigation, 'navigation', 'prevEl'); |
|
793 |
+ }, |
|
794 |
+ enumerable: false, |
|
795 |
+ configurable: true |
|
796 |
+ }); |
|
797 |
+ Object.defineProperty(SwiperComponent.prototype, "nextElRef", { |
|
798 |
+ set: function (el) { |
|
799 |
+ this._setElement(el, this.navigation, 'navigation', 'nextEl'); |
|
800 |
+ }, |
|
801 |
+ enumerable: false, |
|
802 |
+ configurable: true |
|
803 |
+ }); |
|
804 |
+ Object.defineProperty(SwiperComponent.prototype, "scrollbarElRef", { |
|
805 |
+ set: function (el) { |
|
806 |
+ this._setElement(el, this.scrollbar, 'scrollbar'); |
|
807 |
+ }, |
|
808 |
+ enumerable: false, |
|
809 |
+ configurable: true |
|
810 |
+ }); |
|
811 |
+ Object.defineProperty(SwiperComponent.prototype, "paginationElRef", { |
|
812 |
+ set: function (el) { |
|
813 |
+ this._setElement(el, this.pagination, 'pagination'); |
|
814 |
+ }, |
|
815 |
+ enumerable: false, |
|
816 |
+ configurable: true |
|
817 |
+ }); |
|
818 |
+ Object.defineProperty(SwiperComponent.prototype, "slidesEl", { |
|
819 |
+ set: function (val) { |
|
820 |
+ var _this = this; |
|
821 |
+ this.slides = val.map(function (slide, index) { |
|
822 |
+ slide.slideIndex = index; |
|
823 |
+ slide.classNames = _this.slideClass; |
|
824 |
+ return slide; |
|
825 |
+ }); |
|
826 |
+ if (this.loop && !this.loopedSlides) { |
|
827 |
+ this.calcLoopedSlides(); |
|
828 |
+ } |
|
829 |
+ if (!this.virtual) { |
|
830 |
+ this.prependSlides = rxjs.of(this.slides.slice(this.slides.length - this.loopedSlides)); |
|
831 |
+ this.appendSlides = rxjs.of(this.slides.slice(0, this.loopedSlides)); |
|
832 |
+ } |
|
833 |
+ }, |
|
834 |
+ enumerable: false, |
|
835 |
+ configurable: true |
|
836 |
+ }); |
|
837 |
+ Object.defineProperty(SwiperComponent.prototype, "activeSlides", { |
|
838 |
+ get: function () { |
|
839 |
+ if (this.virtual) { |
|
840 |
+ return this._activeSlides; |
|
841 |
+ } |
|
842 |
+ return rxjs.of(this.slides); |
|
843 |
+ }, |
|
844 |
+ enumerable: false, |
|
845 |
+ configurable: true |
|
846 |
+ }); |
|
847 |
+ SwiperComponent.prototype._setElement = function (el, ref, update, key) { |
|
848 |
+ if (key === void 0) { key = 'el'; } |
|
849 |
+ if (!el && !ref) { |
|
850 |
+ return; |
|
851 |
+ } |
|
852 |
+ if (ref) { |
|
853 |
+ if (ref[key] === el.nativeElement) { |
|
854 |
+ return; |
|
855 |
+ } |
|
856 |
+ ref[key] = el.nativeElement; |
|
857 |
+ } |
|
858 |
+ var updateObj = {}; |
|
859 |
+ updateObj[update] = true; |
|
860 |
+ this.updateInitSwiper(updateObj); |
|
861 |
+ }; |
|
862 |
+ SwiperComponent.prototype.ngOnInit = function () { |
|
863 |
+ var params = getParams(this).params; |
|
864 |
+ Object.assign(this, params); |
|
865 |
+ }; |
|
866 |
+ SwiperComponent.prototype.ngAfterViewInit = function () { |
|
867 |
+ if (this.init) { |
|
868 |
+ this.initSwiper(); |
|
869 |
+ this._changeDetectorRef.detectChanges(); |
|
870 |
+ } |
|
871 |
+ }; |
|
872 |
+ SwiperComponent.prototype.initSwiper = function () { |
|
873 |
+ var _this = this; |
|
874 |
+ var _c = getParams(this), swiperParams = _c.params, passedParams = _c.passedParams; |
|
875 |
+ Object.assign(this, swiperParams); |
|
876 |
+ swiperParams.onAny = function (event) { |
|
877 |
+ var args = []; |
|
878 |
+ for (var _i = 1; _i < arguments.length; _i++) { |
|
879 |
+ args[_i - 1] = arguments[_i]; |
|
880 |
+ } |
|
881 |
+ var emitter = _this["s_" + event]; |
|
882 |
+ if (emitter) { |
|
883 |
+ emitter.emit.apply(emitter, __spread(args)); |
|
884 |
+ } |
|
885 |
+ }; |
|
886 |
+ Object.assign(swiperParams.on, { |
|
887 |
+ slideChange: function () { |
|
888 |
+ _this.indexChange.emit(_this.swiperRef.realIndex); |
|
889 |
+ }, |
|
890 |
+ _containerClasses: function (swiper, classes) { |
|
891 |
+ this.containerClasses = classes; |
|
892 |
+ }, |
|
893 |
+ _swiper: function (swiper) { |
|
894 |
+ _this.swiperRef = swiper; |
|
895 |
+ _this.s_swiper.emit(_this.swiperRef); |
|
896 |
+ swiper.loopCreate = function () { }; |
|
897 |
+ swiper.loopDestroy = function () { }; |
|
898 |
+ if (swiperParams.loop) { |
|
899 |
+ swiper.loopedSlides = _this.loopedSlides; |
|
900 |
+ } |
|
901 |
+ if (swiper.virtual && swiper.params.virtual.enabled) { |
|
902 |
+ swiper.virtual.slides = _this.slides; |
|
903 |
+ swiper.params.virtual.cache = false; |
|
904 |
+ swiper.params.virtual.renderExternal = function (data) { |
|
905 |
+ _this.updateVirtualSlides(data); |
|
906 |
+ }; |
|
907 |
+ swiper.params.virtual.renderExternalUpdate = false; |
|
908 |
+ } |
|
909 |
+ _this._changeDetectorRef.detectChanges(); |
|
910 |
+ }, |
|
911 |
+ _slideClass: function (_, el, classNames) { |
|
912 |
+ var slideIndex = parseInt(el.dataset.swiperSlideIndex); |
|
913 |
+ if (_this.virtual) { |
|
914 |
+ var virtualSlide = _this.slides.find(function (item) { |
|
915 |
+ return item.virtualIndex && item.virtualIndex === slideIndex; |
|
916 |
+ }); |
|
917 |
+ if (virtualSlide) { |
|
918 |
+ virtualSlide.classNames = classNames; |
|
919 |
+ return; |
|
920 |
+ } |
|
921 |
+ } |
|
922 |
+ _this.slides[slideIndex].classNames = classNames; |
|
923 |
+ _this._changeDetectorRef.detectChanges(); |
|
924 |
+ }, |
|
925 |
+ }); |
|
926 |
+ new Swiper__default['default'](this.elementRef.nativeElement, swiperParams); |
|
927 |
+ }; |
|
928 |
+ SwiperComponent.prototype.updateVirtualSlides = function (virtualData) { |
|
929 |
+ var _c; |
|
930 |
+ // TODO: type virtualData |
|
931 |
+ if (!this.swiperRef || |
|
932 |
+ (this.currentVirtualData && |
|
933 |
+ this.currentVirtualData.from === virtualData.from && |
|
934 |
+ this.currentVirtualData.to === virtualData.to && |
|
935 |
+ this.currentVirtualData.offset === virtualData.offset)) { |
|
936 |
+ return; |
|
937 |
+ } |
|
938 |
+ this.style = this.swiperRef.isHorizontal() |
|
939 |
+ ? (_c = {}, |
|
940 |
+ _c[this.swiperRef.rtlTranslate ? 'right' : 'left'] = virtualData.offset + "px", |
|
941 |
+ _c) : { |
|
942 |
+ top: virtualData.offset + "px", |
|
943 |
+ }; |
|
944 |
+ this.currentVirtualData = virtualData; |
|
945 |
+ this._activeSlides.next(virtualData.slides); |
|
946 |
+ this._changeDetectorRef.detectChanges(); |
|
947 |
+ this.swiperRef.updateSlides(); |
|
948 |
+ this.swiperRef.updateProgress(); |
|
949 |
+ this.swiperRef.updateSlidesClasses(); |
|
950 |
+ if (this.swiperRef.lazy && this.swiperRef.params.lazy['enabled']) { |
|
951 |
+ this.swiperRef.lazy.load(); |
|
952 |
+ } |
|
953 |
+ this.swiperRef.virtual.update(true); |
|
954 |
+ return; |
|
955 |
+ }; |
|
956 |
+ SwiperComponent.prototype.ngOnChanges = function (changedParams) { |
|
957 |
+ this.updateSwiper(changedParams); |
|
958 |
+ this._changeDetectorRef.detectChanges(); |
|
959 |
+ }; |
|
960 |
+ SwiperComponent.prototype.updateInitSwiper = function (changedParams) { |
|
961 |
+ if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) { |
|
962 |
+ return; |
|
963 |
+ } |
|
964 |
+ var _c = this.swiperRef, currentParams = _c.params, pagination = _c.pagination, navigation = _c.navigation, scrollbar = _c.scrollbar, virtual = _c.virtual, thumbs = _c.thumbs; |
|
965 |
+ if (changedParams.pagination) { |
|
966 |
+ if (this.pagination && |
|
967 |
+ typeof this.pagination !== 'boolean' && |
|
968 |
+ this.pagination.el && |
|
969 |
+ pagination && |
|
970 |
+ !pagination.el) { |
|
971 |
+ this.updateParameter('pagination', this.pagination); |
|
972 |
+ pagination.init(); |
|
973 |
+ pagination.render(); |
|
974 |
+ pagination.update(); |
|
975 |
+ } |
|
976 |
+ else { |
|
977 |
+ pagination.destroy(); |
|
978 |
+ pagination.el = null; |
|
979 |
+ } |
|
980 |
+ } |
|
981 |
+ if (changedParams.scrollbar) { |
|
982 |
+ if (this.scrollbar && |
|
983 |
+ typeof this.scrollbar !== 'boolean' && |
|
984 |
+ this.scrollbar.el && |
|
985 |
+ scrollbar && |
|
986 |
+ !scrollbar.el) { |
|
987 |
+ this.updateParameter('scrollbar', this.scrollbar); |
|
988 |
+ scrollbar.init(); |
|
989 |
+ scrollbar.updateSize(); |
|
990 |
+ scrollbar.setTranslate(); |
|
991 |
+ } |
|
992 |
+ else { |
|
993 |
+ scrollbar.destroy(); |
|
994 |
+ scrollbar.el = null; |
|
995 |
+ } |
|
996 |
+ } |
|
997 |
+ if (changedParams.navigation) { |
|
998 |
+ if (this.navigation && |
|
999 |
+ typeof this.navigation !== 'boolean' && |
|
1000 |
+ this.navigation.prevEl && |
|
1001 |
+ this.navigation.nextEl && |
|
1002 |
+ navigation && |
|
1003 |
+ !navigation.prevEl && |
|
1004 |
+ !navigation.nextEl) { |
|
1005 |
+ this.updateParameter('navigation', this.navigation); |
|
1006 |
+ navigation.init(); |
|
1007 |
+ navigation.update(); |
|
1008 |
+ } |
|
1009 |
+ else if (navigation.prevEl && navigation.nextEl) { |
|
1010 |
+ navigation.destroy(); |
|
1011 |
+ navigation.nextEl = null; |
|
1012 |
+ navigation.prevEl = null; |
|
1013 |
+ } |
|
1014 |
+ } |
|
1015 |
+ if (changedParams.thumbs && this.thumbs && this.thumbs.swiper) { |
|
1016 |
+ this.updateParameter('thumbs', this.thumbs); |
|
1017 |
+ var initialized = thumbs.init(); |
|
1018 |
+ if (initialized) |
|
1019 |
+ thumbs.update(true); |
|
1020 |
+ } |
|
1021 |
+ if (changedParams.controller && this.controller && this.controller.control) { |
|
1022 |
+ this.swiperRef.controller.control = this.controller.control; |
|
1023 |
+ } |
|
1024 |
+ this.swiperRef.update(); |
|
1025 |
+ }; |
|
1026 |
+ SwiperComponent.prototype.updateSwiper = function (changedParams) { |
|
1027 |
+ var _a, _b; |
|
1028 |
+ if (changedParams.config) { |
|
1029 |
+ return; |
|
1030 |
+ } |
|
1031 |
+ if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) { |
|
1032 |
+ return; |
|
1033 |
+ } |
|
1034 |
+ for (var key in changedParams) { |
|
1035 |
+ if (ignoreNgOnChanges.indexOf(key) >= 0) { |
|
1036 |
+ continue; |
|
1037 |
+ } |
|
1038 |
+ var newValue = (_b = (_a = changedParams[key]) === null || _a === void 0 ? void 0 : _a.currentValue) !== null && _b !== void 0 ? _b : changedParams[key]; |
|
1039 |
+ this.updateParameter(key, newValue); |
|
1040 |
+ } |
|
1041 |
+ if (changedParams.allowSlideNext) { |
|
1042 |
+ this.swiperRef.allowSlideNext = this.allowSlideNext; |
|
1043 |
+ } |
|
1044 |
+ if (changedParams.allowSlidePrev) { |
|
1045 |
+ this.swiperRef.allowSlidePrev = this.allowSlidePrev; |
|
1046 |
+ } |
|
1047 |
+ if (changedParams.direction) { |
|
1048 |
+ this.swiperRef.changeDirection(this.direction, false); |
|
1049 |
+ } |
|
1050 |
+ if (changedParams.breakpoints) { |
|
1051 |
+ if (this.loop && !this.loopedSlides) { |
|
1052 |
+ this.calcLoopedSlides(); |
|
1053 |
+ } |
|
1054 |
+ this.swiperRef.currentBreakpoint = null; |
|
1055 |
+ this.swiperRef.setBreakpoint(); |
|
1056 |
+ } |
|
1057 |
+ this.swiperRef.update(); |
|
1058 |
+ }; |
|
1059 |
+ SwiperComponent.prototype.calcLoopedSlides = function () { |
|
1060 |
+ if (!this.loop) { |
|
1061 |
+ return; |
|
1062 |
+ } |
|
1063 |
+ var slidesPerViewParams = this.slidesPerView; |
|
1064 |
+ if (this.breakpoints) { |
|
1065 |
+ var breakpoint = Swiper__default['default'].prototype.getBreakpoint(this.breakpoints); |
|
1066 |
+ var breakpointOnlyParams = breakpoint in this.breakpoints ? this.breakpoints[breakpoint] : undefined; |
|
1067 |
+ if (breakpointOnlyParams && breakpointOnlyParams.slidesPerView) { |
|
1068 |
+ slidesPerViewParams = breakpointOnlyParams.slidesPerView; |
|
1069 |
+ } |
|
1070 |
+ } |
|
1071 |
+ if (slidesPerViewParams === 'auto') { |
|
1072 |
+ this.loopedSlides = this.slides.length; |
|
1073 |
+ return this.slides.length; |
|
1074 |
+ } |
|
1075 |
+ var loopedSlides = this.loopedSlides || slidesPerViewParams; |
|
1076 |
+ loopedSlides += this.loopAdditionalSlides; |
|
1077 |
+ if (loopedSlides > this.slides.length) { |
|
1078 |
+ loopedSlides = this.slides.length; |
|
1079 |
+ } |
|
1080 |
+ this.loopedSlides = loopedSlides; |
|
1081 |
+ return loopedSlides; |
|
1082 |
+ }; |
|
1083 |
+ SwiperComponent.prototype.updateParameter = function (key, value) { |
|
1084 |
+ if (!(this.swiperRef && !this.swiperRef.destroyed)) { |
|
1085 |
+ return; |
|
1086 |
+ } |
|
1087 |
+ var _key = key.replace(/^_/, ''); |
|
1088 |
+ if (Object.keys(this.swiperRef.modules).indexOf(_key) >= 0) { |
|
1089 |
+ extend(value, this.swiperRef.modules[_key].params[_key]); |
|
1090 |
+ } |
|
1091 |
+ if (isObject(this.swiperRef.params[_key]) && isObject(value)) { |
|
1092 |
+ extend(this.swiperRef.params[_key], value); |
|
1093 |
+ } |
|
1094 |
+ else { |
|
1095 |
+ this.swiperRef.params[_key] = value; |
|
1096 |
+ } |
|
1097 |
+ }; |
|
1098 |
+ SwiperComponent.prototype.setIndex = function (index, speed, silent) { |
|
1099 |
+ var _this = this; |
|
1100 |
+ if (!this.swiperRef) { |
|
1101 |
+ this.initialSlide = index; |
|
1102 |
+ return; |
|
1103 |
+ } |
|
1104 |
+ if (index === this.swiperRef.realIndex) { |
|
1105 |
+ return; |
|
1106 |
+ } |
|
1107 |
+ this.zone.runOutsideAngular(function () { |
|
1108 |
+ if (_this.loop) { |
|
1109 |
+ _this.swiperRef.slideToLoop(index, speed, !silent); |
|
1110 |
+ } |
|
1111 |
+ else { |
|
1112 |
+ _this.swiperRef.slideTo(index, speed, !silent); |
|
1113 |
+ } |
|
1114 |
+ }); |
|
1115 |
+ }; |
|
1116 |
+ SwiperComponent.prototype.ngOnDestroy = function () { |
|
1117 |
+ this.swiperRef.destroy(); |
|
1118 |
+ }; |
|
1119 |
+ return SwiperComponent; |
|
1120 |
+ }()); |
|
1121 |
+ SwiperComponent.decorators = [ |
|
1122 |
+ { type: core.Component, args: [{ |
|
1123 |
+ selector: 'swiper, [swiper]', |
|
1124 |
+ template: "<ng-content select=\"[slot=container-start]\"></ng-content>\n<ng-container *ngIf=\"navigation\">\n <div class=\"swiper-button-prev\" #prevElRef></div>\n <div class=\"swiper-button-next\" #nextElRef></div>\n</ng-container>\n<div *ngIf=\"scrollbar\" class=\"swiper-scrollbar\" #scrollbarElRef></div>\n<div *ngIf=\"pagination\" class=\"swiper-pagination\" #paginationElRef></div>\n<div [ngClass]=\"wrapperClass\">\n <ng-content select=\"[slot=wrapper-start]\"></ng-content>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: prependSlides,\n key: 'prepend'\n }\n \"\n ></ng-template>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: activeSlides,\n key: ''\n }\n \"\n ></ng-template>\n <ng-template\n *ngTemplateOutlet=\"\n slidesTemplate;\n context: {\n loopSlides: appendSlides,\n key: 'append'\n }\n \"\n ></ng-template>\n <ng-content select=\"[slot=wrapper-end]\"></ng-content>\n</div>\n<ng-content select=\"[slot=container-end]\"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides=\"loopSlides\" let-slideKey=\"key\">\n <div\n *ngFor=\"let slide of loopSlides | async\"\n [ngClass]=\"slide.classNames + ' ' + (slideKey !== '' ? slideDuplicateClass : '')\"\n [attr.data-swiper-slide-index]=\"slide.virtualIndex ? slide.virtualIndex : slide.slideIndex\"\n [style]=\"style\"\n >\n <ng-template\n [ngTemplateOutlet]=\"slide.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: slide.slideData\n }\"\n ></ng-template>\n </div>\n</ng-template>\n", |
|
1125 |
+ changeDetection: core.ChangeDetectionStrategy.OnPush, |
|
1126 |
+ encapsulation: core.ViewEncapsulation.None, |
|
1127 |
+ styles: ["\n swiper {\n display: block;\n }\n "] |
|
1128 |
+ },] } |
|
1129 |
+ ]; |
|
1130 |
+ SwiperComponent.ctorParameters = function () { return [ |
|
1131 |
+ { type: core.NgZone }, |
|
1132 |
+ { type: core.ElementRef }, |
|
1133 |
+ { type: core.ChangeDetectorRef } |
|
1134 |
+ ]; }; |
|
1135 |
+ SwiperComponent.propDecorators = { |
|
1136 |
+ init: [{ type: core.Input }], |
|
1137 |
+ direction: [{ type: core.Input }], |
|
1138 |
+ touchEventsTarget: [{ type: core.Input }], |
|
1139 |
+ initialSlide: [{ type: core.Input }], |
|
1140 |
+ speed: [{ type: core.Input }], |
|
1141 |
+ cssMode: [{ type: core.Input }], |
|
1142 |
+ updateOnWindowResize: [{ type: core.Input }], |
|
1143 |
+ nested: [{ type: core.Input }], |
|
1144 |
+ width: [{ type: core.Input }], |
|
1145 |
+ height: [{ type: core.Input }], |
|
1146 |
+ preventInteractionOnTransition: [{ type: core.Input }], |
|
1147 |
+ userAgent: [{ type: core.Input }], |
|
1148 |
+ url: [{ type: core.Input }], |
|
1149 |
+ edgeSwipeDetection: [{ type: core.Input }], |
|
1150 |
+ edgeSwipeThreshold: [{ type: core.Input }], |
|
1151 |
+ freeMode: [{ type: core.Input }], |
|
1152 |
+ freeModeMomentum: [{ type: core.Input }], |
|
1153 |
+ freeModeMomentumRatio: [{ type: core.Input }], |
|
1154 |
+ freeModeMomentumBounce: [{ type: core.Input }], |
|
1155 |
+ freeModeMomentumBounceRatio: [{ type: core.Input }], |
|
1156 |
+ freeModeMomentumVelocityRatio: [{ type: core.Input }], |
|
1157 |
+ freeModeSticky: [{ type: core.Input }], |
|
1158 |
+ freeModeMinimumVelocity: [{ type: core.Input }], |
|
1159 |
+ autoHeight: [{ type: core.Input }], |
|
1160 |
+ setWrapperSize: [{ type: core.Input }], |
|
1161 |
+ virtualTranslate: [{ type: core.Input }], |
|
1162 |
+ effect: [{ type: core.Input }], |
|
1163 |
+ breakpoints: [{ type: core.Input }], |
|
1164 |
+ spaceBetween: [{ type: core.Input }], |
|
1165 |
+ slidesPerView: [{ type: core.Input }], |
|
1166 |
+ slidesPerColumn: [{ type: core.Input }], |
|
1167 |
+ slidesPerColumnFill: [{ type: core.Input }], |
|
1168 |
+ slidesPerGroup: [{ type: core.Input }], |
|
1169 |
+ slidesPerGroupSkip: [{ type: core.Input }], |
|
1170 |
+ centeredSlides: [{ type: core.Input }], |
|
1171 |
+ centeredSlidesBounds: [{ type: core.Input }], |
|
1172 |
+ slidesOffsetBefore: [{ type: core.Input }], |
|
1173 |
+ slidesOffsetAfter: [{ type: core.Input }], |
|
1174 |
+ normalizeSlideIndex: [{ type: core.Input }], |
|
1175 |
+ centerInsufficientSlides: [{ type: core.Input }], |
|
1176 |
+ watchOverflow: [{ type: core.Input }], |
|
1177 |
+ roundLengths: [{ type: core.Input }], |
|
1178 |
+ touchRatio: [{ type: core.Input }], |
|
1179 |
+ touchAngle: [{ type: core.Input }], |
|
1180 |
+ simulateTouch: [{ type: core.Input }], |
|
1181 |
+ shortSwipes: [{ type: core.Input }], |
|
1182 |
+ longSwipes: [{ type: core.Input }], |
|
1183 |
+ longSwipesRatio: [{ type: core.Input }], |
|
1184 |
+ longSwipesMs: [{ type: core.Input }], |
|
1185 |
+ followFinger: [{ type: core.Input }], |
|
1186 |
+ allowTouchMove: [{ type: core.Input }], |
|
1187 |
+ threshold: [{ type: core.Input }], |
|
1188 |
+ touchMoveStopPropagation: [{ type: core.Input }], |
|
1189 |
+ touchStartPreventDefault: [{ type: core.Input }], |
|
1190 |
+ touchStartForcePreventDefault: [{ type: core.Input }], |
|
1191 |
+ touchReleaseOnEdges: [{ type: core.Input }], |
|
1192 |
+ uniqueNavElements: [{ type: core.Input }], |
|
1193 |
+ resistance: [{ type: core.Input }], |
|
1194 |
+ resistanceRatio: [{ type: core.Input }], |
|
1195 |
+ watchSlidesProgress: [{ type: core.Input }], |
|
1196 |
+ watchSlidesVisibility: [{ type: core.Input }], |
|
1197 |
+ grabCursor: [{ type: core.Input }], |
|
1198 |
+ preventClicks: [{ type: core.Input }], |
|
1199 |
+ preventClicksPropagation: [{ type: core.Input }], |
|
1200 |
+ slideToClickedSlide: [{ type: core.Input }], |
|
1201 |
+ preloadImages: [{ type: core.Input }], |
|
1202 |
+ updateOnImagesReady: [{ type: core.Input }], |
|
1203 |
+ loop: [{ type: core.Input }], |
|
1204 |
+ loopAdditionalSlides: [{ type: core.Input }], |
|
1205 |
+ loopedSlides: [{ type: core.Input }], |
|
1206 |
+ loopFillGroupWithBlank: [{ type: core.Input }], |
|
1207 |
+ loopPreventsSlide: [{ type: core.Input }], |
|
1208 |
+ allowSlidePrev: [{ type: core.Input }], |
|
1209 |
+ allowSlideNext: [{ type: core.Input }], |
|
1210 |
+ swipeHandler: [{ type: core.Input }], |
|
1211 |
+ noSwiping: [{ type: core.Input }], |
|
1212 |
+ noSwipingClass: [{ type: core.Input }], |
|
1213 |
+ noSwipingSelector: [{ type: core.Input }], |
|
1214 |
+ passiveListeners: [{ type: core.Input }], |
|
1215 |
+ containerModifierClass: [{ type: core.Input }], |
|
1216 |
+ slideClass: [{ type: core.Input }], |
|
1217 |
+ slideBlankClass: [{ type: core.Input }], |
|
1218 |
+ slideActiveClass: [{ type: core.Input }], |
|
1219 |
+ slideDuplicateActiveClass: [{ type: core.Input }], |
|
1220 |
+ slideVisibleClass: [{ type: core.Input }], |
|
1221 |
+ slideDuplicateClass: [{ type: core.Input }], |
|
1222 |
+ slideNextClass: [{ type: core.Input }], |
|
1223 |
+ slideDuplicateNextClass: [{ type: core.Input }], |
|
1224 |
+ slidePrevClass: [{ type: core.Input }], |
|
1225 |
+ slideDuplicatePrevClass: [{ type: core.Input }], |
|
1226 |
+ wrapperClass: [{ type: core.Input }], |
|
1227 |
+ runCallbacksOnInit: [{ type: core.Input }], |
|
1228 |
+ a11y: [{ type: core.Input }], |
|
1229 |
+ autoplay: [{ type: core.Input }], |
|
1230 |
+ controller: [{ type: core.Input }], |
|
1231 |
+ coverflowEffect: [{ type: core.Input }], |
|
1232 |
+ cubeEffect: [{ type: core.Input }], |
|
1233 |
+ fadeEffect: [{ type: core.Input }], |
|
1234 |
+ flipEffect: [{ type: core.Input }], |
|
1235 |
+ hashNavigation: [{ type: core.Input }], |
|
1236 |
+ history: [{ type: core.Input }], |
|
1237 |
+ keyboard: [{ type: core.Input }], |
|
1238 |
+ lazy: [{ type: core.Input }], |
|
1239 |
+ mousewheel: [{ type: core.Input }], |
|
1240 |
+ parallax: [{ type: core.Input }], |
|
1241 |
+ thumbs: [{ type: core.Input }], |
|
1242 |
+ zoom: [{ type: core.Input }], |
|
1243 |
+ navigation: [{ type: core.Input }], |
|
1244 |
+ pagination: [{ type: core.Input }], |
|
1245 |
+ scrollbar: [{ type: core.Input }], |
|
1246 |
+ virtual: [{ type: core.Input }], |
|
1247 |
+ index: [{ type: core.Input }], |
|
1248 |
+ config: [{ type: core.Input }], |
|
1249 |
+ s__beforeBreakpoint: [{ type: core.Output, args: ['_beforeBreakpoint',] }], |
|
1250 |
+ s__containerClasses: [{ type: core.Output, args: ['_containerClasses',] }], |
|
1251 |
+ s__slideClass: [{ type: core.Output, args: ['_slideClass',] }], |
|
1252 |
+ s__swiper: [{ type: core.Output, args: ['_swiper',] }], |
|
1253 |
+ s_activeIndexChange: [{ type: core.Output, args: ['activeIndexChange',] }], |
|
1254 |
+ s_afterInit: [{ type: core.Output, args: ['afterInit',] }], |
|
1255 |
+ s_autoplay: [{ type: core.Output, args: ['autoplay',] }], |
|
1256 |
+ s_autoplayStart: [{ type: core.Output, args: ['autoplayStart',] }], |
|
1257 |
+ s_autoplayStop: [{ type: core.Output, args: ['autoplayStop',] }], |
|
1258 |
+ s_beforeDestroy: [{ type: core.Output, args: ['beforeDestroy',] }], |
|
1259 |
+ s_beforeInit: [{ type: core.Output, args: ['beforeInit',] }], |
|
1260 |
+ s_beforeLoopFix: [{ type: core.Output, args: ['beforeLoopFix',] }], |
|
1261 |
+ s_beforeResize: [{ type: core.Output, args: ['beforeResize',] }], |
|
1262 |
+ s_beforeSlideChangeStart: [{ type: core.Output, args: ['beforeSlideChangeStart',] }], |
|
1263 |
+ s_beforeTransitionStart: [{ type: core.Output, args: ['beforeTransitionStart',] }], |
|
1264 |
+ s_breakpoint: [{ type: core.Output, args: ['breakpoint',] }], |
|
1265 |
+ s_changeDirection: [{ type: core.Output, args: ['changeDirection',] }], |
|
1266 |
+ s_click: [{ type: core.Output, args: ['click',] }], |
|
1267 |
+ s_doubleTap: [{ type: core.Output, args: ['doubleTap',] }], |
|
1268 |
+ s_doubleClick: [{ type: core.Output, args: ['doubleClick',] }], |
|
1269 |
+ s_destroy: [{ type: core.Output, args: ['destroy',] }], |
|
1270 |
+ s_fromEdge: [{ type: core.Output, args: ['fromEdge',] }], |
|
1271 |
+ s_hashChange: [{ type: core.Output, args: ['hashChange',] }], |
|
1272 |
+ s_hashSet: [{ type: core.Output, args: ['hashSet',] }], |
|
1273 |
+ s_imagesReady: [{ type: core.Output, args: ['imagesReady',] }], |
|
1274 |
+ s_init: [{ type: core.Output, args: ['init',] }], |
|
1275 |
+ s_keyPress: [{ type: core.Output, args: ['keyPress',] }], |
|
1276 |
+ s_lazyImageLoad: [{ type: core.Output, args: ['lazyImageLoad',] }], |
|
1277 |
+ s_lazyImageReady: [{ type: core.Output, args: ['lazyImageReady',] }], |
|
1278 |
+ s_loopFix: [{ type: core.Output, args: ['loopFix',] }], |
|
1279 |
+ s_momentumBounce: [{ type: core.Output, args: ['momentumBounce',] }], |
|
1280 |
+ s_navigationHide: [{ type: core.Output, args: ['navigationHide',] }], |
|
1281 |
+ s_navigationShow: [{ type: core.Output, args: ['navigationShow',] }], |
|
1282 |
+ s_observerUpdate: [{ type: core.Output, args: ['observerUpdate',] }], |
|
1283 |
+ s_orientationchange: [{ type: core.Output, args: ['orientationchange',] }], |
|
1284 |
+ s_paginationHide: [{ type: core.Output, args: ['paginationHide',] }], |
|
1285 |
+ s_paginationRender: [{ type: core.Output, args: ['paginationRender',] }], |
|
1286 |
+ s_paginationShow: [{ type: core.Output, args: ['paginationShow',] }], |
|
1287 |
+ s_paginationUpdate: [{ type: core.Output, args: ['paginationUpdate',] }], |
|
1288 |
+ s_progress: [{ type: core.Output, args: ['progress',] }], |
|
1289 |
+ s_reachBeginning: [{ type: core.Output, args: ['reachBeginning',] }], |
|
1290 |
+ s_reachEnd: [{ type: core.Output, args: ['reachEnd',] }], |
|
1291 |
+ s_realIndexChange: [{ type: core.Output, args: ['realIndexChange',] }], |
|
1292 |
+ s_resize: [{ type: core.Output, args: ['resize',] }], |
|
1293 |
+ s_scroll: [{ type: core.Output, args: ['scroll',] }], |
|
1294 |
+ s_scrollbarDragEnd: [{ type: core.Output, args: ['scrollbarDragEnd',] }], |
|
1295 |
+ s_scrollbarDragMove: [{ type: core.Output, args: ['scrollbarDragMove',] }], |
|
1296 |
+ s_scrollbarDragStart: [{ type: core.Output, args: ['scrollbarDragStart',] }], |
|
1297 |
+ s_setTransition: [{ type: core.Output, args: ['setTransition',] }], |
|
1298 |
+ s_setTranslate: [{ type: core.Output, args: ['setTranslate',] }], |
|
1299 |
+ s_slideChange: [{ type: core.Output, args: ['slideChange',] }], |
|
1300 |
+ s_slideChangeTransitionEnd: [{ type: core.Output, args: ['slideChangeTransitionEnd',] }], |
|
1301 |
+ s_slideChangeTransitionStart: [{ type: core.Output, args: ['slideChangeTransitionStart',] }], |
|
1302 |
+ s_slideNextTransitionEnd: [{ type: core.Output, args: ['slideNextTransitionEnd',] }], |
|
1303 |
+ s_slideNextTransitionStart: [{ type: core.Output, args: ['slideNextTransitionStart',] }], |
|
1304 |
+ s_slidePrevTransitionEnd: [{ type: core.Output, args: ['slidePrevTransitionEnd',] }], |
|
1305 |
+ s_slidePrevTransitionStart: [{ type: core.Output, args: ['slidePrevTransitionStart',] }], |
|
1306 |
+ s_slideResetTransitionStart: [{ type: core.Output, args: ['slideResetTransitionStart',] }], |
|
1307 |
+ s_slideResetTransitionEnd: [{ type: core.Output, args: ['slideResetTransitionEnd',] }], |
|
1308 |
+ s_sliderMove: [{ type: core.Output, args: ['sliderMove',] }], |
|
1309 |
+ s_sliderFirstMove: [{ type: core.Output, args: ['sliderFirstMove',] }], |
|
1310 |
+ s_slidesLengthChange: [{ type: core.Output, args: ['slidesLengthChange',] }], |
|
1311 |
+ s_slidesGridLengthChange: [{ type: core.Output, args: ['slidesGridLengthChange',] }], |
|
1312 |
+ s_snapGridLengthChange: [{ type: core.Output, args: ['snapGridLengthChange',] }], |
|
1313 |
+ s_snapIndexChange: [{ type: core.Output, args: ['snapIndexChange',] }], |
|
1314 |
+ s_tap: [{ type: core.Output, args: ['tap',] }], |
|
1315 |
+ s_toEdge: [{ type: core.Output, args: ['toEdge',] }], |
|
1316 |
+ s_touchEnd: [{ type: core.Output, args: ['touchEnd',] }], |
|
1317 |
+ s_touchMove: [{ type: core.Output, args: ['touchMove',] }], |
|
1318 |
+ s_touchMoveOpposite: [{ type: core.Output, args: ['touchMoveOpposite',] }], |
|
1319 |
+ s_touchStart: [{ type: core.Output, args: ['touchStart',] }], |
|
1320 |
+ s_transitionEnd: [{ type: core.Output, args: ['transitionEnd',] }], |
|
1321 |
+ s_transitionStart: [{ type: core.Output, args: ['transitionStart',] }], |
|
1322 |
+ s_update: [{ type: core.Output, args: ['update',] }], |
|
1323 |
+ s_zoomChange: [{ type: core.Output, args: ['zoomChange',] }], |
|
1324 |
+ s_swiper: [{ type: core.Output, args: ['swiper',] }], |
|
1325 |
+ indexChange: [{ type: core.Output }], |
|
1326 |
+ prevElRef: [{ type: core.ViewChild, args: ['prevElRef', { static: false },] }], |
|
1327 |
+ nextElRef: [{ type: core.ViewChild, args: ['nextElRef', { static: false },] }], |
|
1328 |
+ scrollbarElRef: [{ type: core.ViewChild, args: ['scrollbarElRef', { static: false },] }], |
|
1329 |
+ paginationElRef: [{ type: core.ViewChild, args: ['paginationElRef', { static: false },] }], |
|
1330 |
+ slidesEl: [{ type: core.ContentChildren, args: [SwiperSlideDirective, { descendants: true },] }], |
|
1331 |
+ containerClasses: [{ type: core.HostBinding, args: ['class',] }] |
|
1332 |
+ }; |
|
1333 |
+ |
|
1334 |
+ var SwiperModule = /** @class */ (function () { |
|
1335 |
+ function SwiperModule() { |
|
1336 |
+ } |
|
1337 |
+ return SwiperModule; |
|
1338 |
+ }()); |
|
1339 |
+ SwiperModule.decorators = [ |
|
1340 |
+ { type: core.NgModule, args: [{ |
|
1341 |
+ declarations: [SwiperComponent, SwiperSlideDirective], |
|
1342 |
+ exports: [SwiperComponent, SwiperSlideDirective], |
|
1343 |
+ imports: [common.CommonModule], |
|
1344 |
+ },] } |
|
1345 |
+ ]; |
|
1346 |
+ |
|
1347 |
+ /* |
|
1348 |
+ * Public API Surface of angular |
|
1349 |
+ */ |
|
1350 |
+ |
|
1351 |
+ /** |
|
1352 |
+ * Generated bundle index. Do not edit. |
|
1353 |
+ */ |
|
1354 |
+ |
|
1355 |
+ exports.SwiperComponent = SwiperComponent; |
|
1356 |
+ exports.SwiperModule = SwiperModule; |
|
1357 |
+ exports.SwiperSlideDirective = SwiperSlideDirective; |
|
1358 |
+ |
|
1359 |
+ Object.defineProperty(exports, '__esModule', { value: true }); |
|
1360 |
+ |
|
1361 |
+}))); |
|
1362 |
+//# sourceMappingURL=swiper_angular.umd.js.map |