nextalys-carousel 0.0.50 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/bundles/nextalys-carousel.umd.js +437 -344
- package/bundles/nextalys-carousel.umd.js.map +1 -1
- package/bundles/nextalys-carousel.umd.min.js +2 -2
- package/bundles/nextalys-carousel.umd.min.js.map +1 -1
- package/esm2015/lib/nxs-carousel/nxs-carousel-dialog.component.js +15 -19
- package/esm2015/lib/nxs-carousel/nxs-carousel-types.js +1 -1
- package/esm2015/lib/nxs-carousel/nxs-carousel.component.js +43 -71
- package/esm2015/lib/nxs-carousel/nxs-carousel.module.js +22 -25
- package/esm2015/nextalys-carousel.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/nextalys-carousel.js +76 -106
- package/fesm2015/nextalys-carousel.js.map +1 -1
- package/lib/nxs-carousel/nxs-carousel-dialog.component.d.ts +1 -0
- package/lib/nxs-carousel/nxs-carousel-dialog.component.d.ts.map +1 -0
- package/lib/nxs-carousel/nxs-carousel-types.d.ts +1 -0
- package/lib/nxs-carousel/nxs-carousel-types.d.ts.map +1 -0
- package/lib/nxs-carousel/nxs-carousel.component.d.ts +2 -0
- package/lib/nxs-carousel/nxs-carousel.component.d.ts.map +1 -0
- package/lib/nxs-carousel/nxs-carousel.module.d.ts +1 -0
- package/lib/nxs-carousel/nxs-carousel.module.d.ts.map +1 -0
- package/nextalys-carousel.d.ts +1 -0
- package/nextalys-carousel.d.ts.map +1 -0
- package/nextalys-carousel.metadata.json +1 -1
- package/package.json +4 -6
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -0
- package/esm5/lib/nxs-carousel/nxs-carousel-dialog.component.js +0 -29
- package/esm5/lib/nxs-carousel/nxs-carousel-types.js +0 -8
- package/esm5/lib/nxs-carousel/nxs-carousel.component.js +0 -394
- package/esm5/lib/nxs-carousel/nxs-carousel.module.js +0 -45
- package/esm5/nextalys-carousel.js +0 -6
- package/esm5/public-api.js +0 -4
- package/fesm5/nextalys-carousel.js +0 -467
- package/fesm5/nextalys-carousel.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextalys-carousel.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","ng://nextalys-carousel/lib/nxs-carousel/nxs-carousel-types.ts","ng://nextalys-carousel/lib/nxs-carousel/nxs-carousel-dialog.component.ts","ng://nextalys-carousel/lib/nxs-carousel/nxs-carousel.component.ts","ng://nextalys-carousel/lib/nxs-carousel/nxs-carousel.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","export interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport interface SwiperInstance {\n realIndex: number;\n activeIndex: number;\n on: (evt: 'slideChange' | 'click', cb: (data: any) => void) => void;\n destroy: (deleteInstance?: boolean, cleanStyles?: boolean) => void;\n slideTo: (index: number, speed?: number, runCallbacks?: boolean) => void;\n slideNext: (speed?: number, runCallbacks?: boolean) => void;\n slidePrev: (speed?: number, runCallbacks?: boolean) => void;\n}\nexport interface NxsCarouselOptions {\n watchSlidesVisibility?: boolean;\n watchSlidesProgress?: boolean;\n freeMode?: boolean;\n effect?: \"slide\" | \"fade\" | \"cube\" | \"coverflow\" | \"flip\";\n autoplay?: { delay: number; stopOnLastSlide?: boolean; disableOnInteraction?: boolean; reverseDirection?: boolean; waitForTransition?: boolean };\n roundLengths?: boolean;\n init?: boolean;\n initialSlide?: number;\n updateOnWindowResize?: boolean;\n direction?: 'horizontal' | 'vertical';\n slidesPerView?: number | 'auto';\n centeredSlides?: boolean;\n centeredSlidesBounds?: boolean;\n loop?: boolean;\n coverflowEffect?: {\n rotate: number;\n stretch: number;\n depth?: number;\n modifier?: number;\n slideShadows?: boolean;\n };\n pagination?: {\n el: string;\n clickable: boolean;\n type?: \"bullets\" | \"fraction\" | \"progressbar\" | \"custom\";\n };\n navigation?: {\n nextEl: string;\n prevEl: string;\n };\n spaceBetween?: number;\n breakpoints?: {\n [size: number]: {\n spaceBetween?: number;\n slidesPerView: number | 'auto';\n };\n };\n thumbs?: { swiper: SwiperInstance };\n nxsShowNavigationBullets?: boolean;\n nxsShowNavigationArrows?: boolean;\n nxsThumbnails?: {\n show: boolean; onMainSlider?: boolean; percentHeight?: number; perView?: number; breakpoints?: {\n [size: number]: {\n spaceBetween?: number;\n slidesPerView: number | 'auto';\n };\n };\n };\n nxsShowImagesCount?: boolean;\n nxsfullscreenOnClick?: boolean;\n /**\n * background mode : cover, contain, auto, etc...\n * default => cover\n */\n nxsCarouselImageBackgroundSize?: string;\n nxsCarouselDialogOptions?: NxsCarouselOptions;\n nxsCarouselDialogExitable?: boolean;\n nxsCarouselDialogSize?: { width: string; height: string; };\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}","import { Component, Inject, ViewEncapsulation } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { NxsCarouselImage, NxsCarouselOptions } from './nxs-carousel-types';\n\nexport interface NxsCarouselDialogData {\n images: NxsCarouselImage[];\n options?: NxsCarouselOptions;\n wrapperClass?: string;\n}\n@Component({\n selector: 'nxs-carousel-dialog',\n template: `\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n `,\n styleUrls: ['./nxs-carousel-dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NxsCarouselDialogComponent {\n public wrapperClass: string = 'nxs-carousel-wrapper';\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: NxsCarouselDialogData,\n public dialogRef: MatDialogRef<NxsCarouselDialogComponent>,\n ) {\n if (data.wrapperClass)\n this.wrapperClass += ' ' + data.wrapperClass;\n }\n\n}\n","import { Component, ViewEncapsulation, Input, ViewChild, ElementRef, Output, EventEmitter, PLATFORM_ID, Inject, Optional, NgZone, SimpleChanges } from '@angular/core';\nimport { NxsCarouselOptions, NxsCarouselImage, SwiperInstance, NxsCarouselModuleConfig } from './nxs-carousel-types';\nimport { NxsCarouselDialogData, NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { isPlatformBrowser } from '@angular/common';\nimport { EventsCollector } from 'nextalys-js-helpers/dist/events';\n@Component({\n selector: 'nxs-carousel',\n templateUrl: './nxs-carousel.component.html',\n styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NxsCarouselComponent {\n private mutationObserver: MutationObserver | null = null;\n recreateSliderSubscribed = false;\n private eventsCollector = new EventsCollector();\n public images: NxsCarouselImage[];\n\n @ViewChild('nxsSliderContainer', { static: true })\n nxsSliderContainer: ElementRef<HTMLDivElement>;\n\n @ViewChild('nxsSlidesWrapper', { static: true })\n nxsSlidesWrapper: ElementRef<HTMLDivElement>;\n\n //thumbnails\n @ViewChild('nxsThumbnailsSliderContainer', { static: true })\n nxsThumbnailsSliderContainer: ElementRef<HTMLDivElement>;\n @ViewChild('nxsThumbnailsSlidesWrapper', { static: true })\n nxsThumbnailsSlidesWrapper: ElementRef<HTMLDivElement>;\n options: NxsCarouselOptions = {};\n @Input('options')\n set setOptions(val: NxsCarouselOptions) {\n this.options = this.setDefaultOptions(val, false);\n }\n @Input('images')\n set setImages(val: NxsCarouselImage[]) {\n this.images = val;\n this.initSlides();\n this.createSlider(true);\n }\n @Input()\n hasHtmlContent = false;\n slidesCount: number = 0;\n public sliderInstance: SwiperInstance;\n public thumbnailsSliderInstance: SwiperInstance;\n\n @Output()\n slideChange = new EventEmitter<number>();\n public currentSlide = 0;\n @Output()\n slideClick = new EventEmitter<MouseEvent>();\n isBrowser = false;\n private swiperLibrary: any;\n\n constructor(\n private matDialog: MatDialog,\n private zone: NgZone,\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional() private config?: NxsCarouselModuleConfig,\n ) {\n if (!this.config)\n this.config = { debug: false };\n this.isBrowser = isPlatformBrowser(this.platformId);\n this.log('constructor - isBrowser', this.isBrowser);\n this.options = this.setDefaultOptions(undefined, false);\n }\n private log(...args: any[]) {\n if (!this.config.debug)\n return;\n console.log('[NxsCarousel]', ...args);\n }\n\n onContentChange(changes: MutationRecord[]) {\n // console.log(\"Log: NxsCarouselComponent -> onContentChange -> changes\", changes);\n // changes.forEach(change => console.log(change.target));\n }\n initSlides() {\n if (!this.isBrowser) {\n this.log('prevent initSlides on platform server');\n return;\n }\n if (!this.nxsSlidesWrapper) {\n this.log('can not initSlides : nxsSlidesWrapper is not defined !');\n return;\n }\n this.log('initSlides begins');\n this.zone.runOutsideAngular(() => {\n if (!this.hasHtmlContent && this.images) {\n this.nxsSlidesWrapper.nativeElement.innerHTML = '';\n for (let i = 0; i < this.images.length; i++) {\n const div = document.createElement('div');\n div.className = 'swiper-slide';\n div.style.backgroundImage = 'url(' + this.images[i].src + ')';\n if (this.options.nxsCarouselImageBackgroundSize)\n div.style.backgroundSize = this.options.nxsCarouselImageBackgroundSize;\n this.nxsSlidesWrapper.nativeElement.appendChild(div);\n }\n this.slidesCount = this.images.length;\n if (!!this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n this.nxsThumbnailsSlidesWrapper.nativeElement.innerHTML = '';\n for (let i = 0; i < this.images.length; i++) {\n const div = document.createElement('div');\n div.className = 'swiper-slide';\n div.style.backgroundImage = 'url(' + this.images[i].src + ')';\n this.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(div);\n }\n }\n this.log('initSlides - images are defined - slides count => ', this.slidesCount);\n }\n else if (this.hasHtmlContent) {\n this.log('initSlides - html content - slides length => ', this.nxsSlidesWrapper.nativeElement.children.length);\n for (let i = 0; i < this.nxsSlidesWrapper.nativeElement.children.length; i++) {\n const child = this.nxsSlidesWrapper.nativeElement.children[i];\n if (!child.className)\n child.className = 'swiper-slide';\n else if (child.className.indexOf('swiper-slide') === -1) {\n child.className += ' swiper-slide';\n }\n }\n this.slidesCount = this.nxsSlidesWrapper.nativeElement.children.length;\n this.log('initSlides - html content - slides count => ', this.slidesCount);\n }\n });\n\n }\n ngOnDestroy(): void {\n if (!this.isBrowser) {\n return;\n }\n this.eventsCollector.unsubscribeAll();\n if (this.mutationObserver)\n this.mutationObserver.disconnect();\n if (this.sliderInstance)\n this.sliderInstance.destroy();\n }\n private subscribeToSlideChanged() {\n if (!this.hasHtmlContent) {\n this.log('subscribeToSlideChanged cannot be subscribed : has no html content');\n return;\n }\n if (!this.nxsSlidesWrapper || !this.nxsSlidesWrapper.nativeElement) {\n this.log('subscribeToSlideChanged error : nxsSlidesWrapper is not defined');\n return;\n }\n if (typeof MutationObserver === 'undefined') {\n this.log('cannot use mutation observer');\n return;\n }\n\n if (this.mutationObserver)\n this.mutationObserver.disconnect();\n\n this.log('subscribe to mutation observer');\n this.mutationObserver = new MutationObserver((mutationsList) => {\n // console.log(\"Log: NxsCarouselComponent -> subscribeToSlideChanged -> mutationsList\", mutationsList);\n // console.log(\"Log: NxsCarouselComponent -> subscribeToSlideChanged -> MutationObserver\");\n this.log('mutation observer - html content has changed');\n if (mutationsList.length === 0)\n return;\n let mustUpdate = false;\n for (const mutation of mutationsList) {\n if (mutation.addedNodes.length > 0 || mutation.removedNodes.length > 0) {\n mustUpdate = true;\n break;\n }\n }\n if (mustUpdate) {\n this.initSlides();\n this.createSlider(true);\n }\n\n });\n this.mutationObserver.observe(this.nxsSlidesWrapper.nativeElement, { childList: true, attributes: false, });\n }\n ngAfterViewInit(): void {\n this.initSlides();\n this.createSlider(true);\n }\n getMainSliderHeight() {\n if (!this.options)\n return '';\n if (this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n if (this.options.nxsThumbnails.onMainSlider) {\n return '100%';\n }\n else if (this.options.nxsThumbnails.percentHeight) {\n return (100 - this.options.nxsThumbnails.percentHeight) + '%';\n }\n }\n return '';\n }\n private setDefaultOptions(options: NxsCarouselOptions, forDialog: boolean) {\n if (!options && forDialog) {\n options = { nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true }\n }\n else if (!options)\n options = { nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: false }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: false, nxsCarouselDialogOptions: {} }\n if (options.nxsCarouselDialogOptions) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails = { show: false };\n if (typeof options.nxsCarouselDialogOptions.effect === 'undefined')\n options.nxsCarouselDialogOptions.effect = 'slide';\n if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')\n options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;\n\n if (options.nxsCarouselDialogOptions.nxsThumbnails.show) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.perView = 10;\n options.nxsCarouselDialogOptions.nxsThumbnails.breakpoints = {\n 640: {\n slidesPerView: 5,\n },\n 768: {\n slidesPerView: 7,\n },\n 1024: {\n slidesPerView: 8,\n },\n };\n }\n }\n if (typeof options.nxsThumbnails === 'undefined')\n options.nxsThumbnails = { show: false };\n\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')\n options.nxsThumbnails.percentHeight = 20;\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.perView === 'undefined')\n options.nxsThumbnails.perView = 10;\n\n\n if (forDialog)\n options.nxsfullscreenOnClick = false;\n if (options.nxsThumbnails.onMainSlider)\n options.nxsShowNavigationBullets = false;\n return options;\n }\n public showFullScreenCarousel(images: NxsCarouselImage[], wrapperClass?: string) {\n this.options.nxsCarouselDialogOptions = this.setDefaultOptions(this.options.nxsCarouselDialogOptions, true);\n const data: NxsCarouselDialogData = { images, wrapperClass, options: this.options.nxsCarouselDialogOptions };\n this.matDialog.open(NxsCarouselDialogComponent, {\n data,\n panelClass: 'nxs-carousel-dialog',\n width: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.width : undefined,\n height: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.height : undefined,\n disableClose: !this.options.nxsCarouselDialogExitable,\n });\n }\n private createSlider(forceRecreate: boolean) {\n if (!this.isBrowser) {\n this.log('prevent createSlider : platform is server');\n return;\n }\n if (!this.nxsSliderContainer) {\n this.log('can not createSlider : nxsSliderContainer is not defined !');\n return;\n }\n this.log('createSlider', this.nxsSliderContainer.nativeElement);\n if (this.slidesCount === 0) {\n this.log('can not createSlider : slidesCount === 0');\n this.subscribeToSlideChanged();\n return;\n }\n if (this.sliderInstance && !forceRecreate) {\n this.log('can re create slider => slider is already created.');\n return;\n }\n this.zone.runOutsideAngular(async () => {\n if (this.sliderInstance)\n this.sliderInstance.destroy();\n this.options.pagination = {\n el: '.nxs-carousel-pagination',\n clickable: true,\n type: 'bullets',\n };\n this.options.navigation = {\n nextEl: '.nxs-carousel-button-next',\n prevEl: '.nxs-carousel-button-prev',\n };\n if (!this.swiperLibrary)\n this.swiperLibrary = await import(\"swiper\");\n const Swiper = this.swiperLibrary.default;\n if (!!this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n const thumbnailsOptions: NxsCarouselOptions = {\n slidesPerView: this.options.nxsThumbnails.perView,\n loop: false,\n freeMode: true,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n breakpoints: this.options.nxsThumbnails.breakpoints,\n // spaceBetween: 10,\n };\n this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);\n this.options.thumbs = { swiper: this.thumbnailsSliderInstance };\n }\n this.sliderInstance = new Swiper(this.nxsSliderContainer.nativeElement, this.options);\n this.log('sliderInstance has been created', this.sliderInstance);\n this.sliderInstance.on('slideChange', () => {\n this.zone.run(() => {\n this.currentSlide = this.sliderInstance.realIndex;\n this.log(\"slideChange\", this.currentSlide);\n this.slideChange.next(this.currentSlide);\n });\n });\n this.sliderInstance.on('click', (evt: MouseEvent) => {\n const target = evt.target as HTMLElement;\n if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1)\n return;\n this.zone.run(() => {\n this.slideClick.next(evt);\n if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {\n this.showFullScreenCarousel(this.images, 'fullscreen-carousel');\n }\n });\n\n });\n this.subscribeToSlideChanged();\n });\n }\n\n goToSlide(index: number, speed?: number) {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slideTo(index, speed);\n }\n next() {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slideNext();\n }\n previous() {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slidePrev();\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { NxsCarouselComponent } from './nxs-carousel.component';\nimport { NxsCarouselModuleConfig } from './nxs-carousel-types';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n@NgModule({\n declarations: [\n NxsCarouselComponent,\n NxsCarouselDialogComponent,\n ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatDialogModule,\n ObserversModule,\n ],\n exports: [\n NxsCarouselComponent,\n ],\n})\nexport class NxsCarouselModule {\n public static forRoot(config?: NxsCarouselModuleConfig): ModuleWithProviders<NxsCarouselModule> {\n return {\n ngModule: NxsCarouselModule,\n providers: [\n { provide: NxsCarouselModuleConfig, useValue: config },\n ]\n };\n }\n}"],"names":["Inject","MAT_DIALOG_DATA","MatDialogRef","Component","ViewEncapsulation","EventsCollector","EventEmitter","isPlatformBrowser","MatDialog","NgZone","PLATFORM_ID","Optional","ViewChild","ElementRef","Input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;gBACP,QAAQ,EAAE,cAAc;gBACxB,+1DAA4C;gBAE5C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;aACxC,CAAC;YA8CO,WAAAJ,WAAM,CAACU,gBAAW,CAAC,CAAA;YACnB,WAAAC,aAAQ,EAAE,CAAA;6CAHQH,gBAAS;gBACdC,WAAM,UAES,uBAAuB;WA9C/C,oBAAoB,CAsUhC;QAAD,2BAAC;KAtUD;;;QCcA;SASC;8BATY,iBAAiB;QACZ,yBAAO,GAArB,UAAsB,MAAgC;YAClD,OAAO;gBACH,QAAQ,EAAE,mBAAiB;gBAC3B,SAAS,EAAE;oBACP,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,EAAE;iBACzD;aACJ,CAAC;SACL;;QARQ,iBAAiB;YAhB7BO,aAAQ,CAAC;gBACN,YAAY,EAAE;oBACV,oBAAoB;oBACpB,0BAA0B;iBAC7B;gBACD,OAAO,EAAE;oBACLC,mBAAY;oBACZC,kBAAa;oBACbC,sBAAe;oBACfC,sBAAe;oBACfC,yBAAe;iBAClB;gBACD,OAAO,EAAE;oBACL,oBAAoB;iBACvB;aACJ,CAAC;WACW,iBAAiB,CAS7B;QAAD,wBAAC;KATD;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"nextalys-carousel.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../src/lib/nxs-carousel/nxs-carousel-types.ts","../../src/lib/nxs-carousel/nxs-carousel-dialog.component.ts","../../src/lib/nxs-carousel/nxs-carousel.component.ts","../../src/lib/nxs-carousel/nxs-carousel.module.ts","../../src/nextalys-carousel.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","export interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport interface SwiperInstance {\n realIndex: number;\n activeIndex: number;\n on: (evt: 'slideChange' | 'click', cb: (data: any) => void) => void;\n destroy: (deleteInstance?: boolean, cleanStyles?: boolean) => void;\n slideTo: (index: number, speed?: number, runCallbacks?: boolean) => void;\n slideNext: (speed?: number, runCallbacks?: boolean) => void;\n slidePrev: (speed?: number, runCallbacks?: boolean) => void;\n}\nexport interface NxsCarouselOptions {\n watchSlidesVisibility?: boolean;\n watchSlidesProgress?: boolean;\n freeMode?: boolean;\n effect?: \"slide\" | \"fade\" | \"cube\" | \"coverflow\" | \"flip\";\n autoplay?: { delay: number; stopOnLastSlide?: boolean; disableOnInteraction?: boolean; reverseDirection?: boolean; waitForTransition?: boolean };\n roundLengths?: boolean;\n init?: boolean;\n initialSlide?: number;\n updateOnWindowResize?: boolean;\n direction?: 'horizontal' | 'vertical';\n slidesPerView?: number | 'auto';\n centeredSlides?: boolean;\n centeredSlidesBounds?: boolean;\n loop?: boolean;\n coverflowEffect?: {\n rotate: number;\n stretch: number;\n depth?: number;\n modifier?: number;\n slideShadows?: boolean;\n };\n pagination?: {\n el: string;\n clickable: boolean;\n type?: \"bullets\" | \"fraction\" | \"progressbar\" | \"custom\";\n };\n navigation?: {\n nextEl: string;\n prevEl: string;\n };\n spaceBetween?: number;\n breakpoints?: {\n [size: number]: {\n spaceBetween?: number;\n slidesPerView: number | 'auto';\n };\n };\n thumbs?: { swiper: SwiperInstance };\n nxsShowNavigationBullets?: boolean;\n nxsShowNavigationArrows?: boolean;\n nxsThumbnails?: {\n show: boolean; onMainSlider?: boolean; percentHeight?: number; perView?: number; breakpoints?: {\n [size: number]: {\n spaceBetween?: number;\n slidesPerView: number | 'auto';\n };\n };\n };\n nxsShowImagesCount?: boolean;\n nxsfullscreenOnClick?: boolean;\n /**\n * background mode : cover, contain, auto, etc...\n * default => cover\n */\n nxsCarouselImageBackgroundSize?: string;\n nxsCarouselDialogOptions?: NxsCarouselOptions;\n nxsCarouselDialogExitable?: boolean;\n nxsCarouselDialogSize?: { width: string; height: string; };\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}","import { Component, Inject, ViewEncapsulation } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { NxsCarouselImage, NxsCarouselOptions } from './nxs-carousel-types';\n\nexport interface NxsCarouselDialogData {\n images: NxsCarouselImage[];\n options?: NxsCarouselOptions;\n wrapperClass?: string;\n}\n@Component({\n selector: 'nxs-carousel-dialog',\n template: `\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n `,\n styleUrls: ['./nxs-carousel-dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NxsCarouselDialogComponent {\n public wrapperClass: string = 'nxs-carousel-wrapper';\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: NxsCarouselDialogData,\n public dialogRef: MatDialogRef<NxsCarouselDialogComponent>,\n ) {\n if (data.wrapperClass)\n this.wrapperClass += ' ' + data.wrapperClass;\n }\n\n}\n","import { Component, ViewEncapsulation, Input, ViewChild, ElementRef, Output, EventEmitter, PLATFORM_ID, Inject, Optional, NgZone, SimpleChanges } from '@angular/core';\nimport { NxsCarouselOptions, NxsCarouselImage, SwiperInstance, NxsCarouselModuleConfig } from './nxs-carousel-types';\nimport { NxsCarouselDialogData, NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { isPlatformBrowser } from '@angular/common';\nimport { EventsCollector } from 'nextalys-js-helpers/dist/events';\n@Component({\n selector: 'nxs-carousel',\n templateUrl: './nxs-carousel.component.html',\n styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NxsCarouselComponent {\n private mutationObserver: MutationObserver | null = null;\n recreateSliderSubscribed = false;\n private eventsCollector = new EventsCollector();\n public images: NxsCarouselImage[];\n\n @ViewChild('nxsSliderContainer', { static: true })\n nxsSliderContainer: ElementRef<HTMLDivElement>;\n\n @ViewChild('nxsSlidesWrapper', { static: true })\n nxsSlidesWrapper: ElementRef<HTMLDivElement>;\n\n //thumbnails\n @ViewChild('nxsThumbnailsSliderContainer', { static: true })\n nxsThumbnailsSliderContainer: ElementRef<HTMLDivElement>;\n @ViewChild('nxsThumbnailsSlidesWrapper', { static: true })\n nxsThumbnailsSlidesWrapper: ElementRef<HTMLDivElement>;\n options: NxsCarouselOptions = {};\n @Input('options')\n set setOptions(val: NxsCarouselOptions) {\n this.options = this.setDefaultOptions(val, false);\n }\n @Input('images')\n set setImages(val: NxsCarouselImage[]) {\n this.images = val;\n this.initSlides();\n this.createSlider(true);\n }\n @Input()\n hasHtmlContent = false;\n slidesCount: number = 0;\n public sliderInstance: SwiperInstance;\n public thumbnailsSliderInstance: SwiperInstance;\n\n @Output()\n slideChange = new EventEmitter<number>();\n public currentSlide = 0;\n @Output()\n slideClick = new EventEmitter<MouseEvent>();\n isBrowser = false;\n private swiperLibrary: any;\n\n constructor(\n private matDialog: MatDialog,\n private zone: NgZone,\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional() private config?: NxsCarouselModuleConfig,\n ) {\n if (!this.config)\n this.config = { debug: false };\n this.isBrowser = isPlatformBrowser(this.platformId);\n this.log('constructor - isBrowser', this.isBrowser);\n this.options = this.setDefaultOptions(undefined, false);\n }\n private log(...args: any[]) {\n if (!this.config.debug)\n return;\n console.log('[NxsCarousel]', ...args);\n }\n\n onContentChange(changes: MutationRecord[]) {\n // console.log(\"Log: NxsCarouselComponent -> onContentChange -> changes\", changes);\n // changes.forEach(change => console.log(change.target));\n }\n initSlides() {\n if (!this.isBrowser) {\n this.log('prevent initSlides on platform server');\n return;\n }\n if (!this.nxsSlidesWrapper) {\n this.log('can not initSlides : nxsSlidesWrapper is not defined !');\n return;\n }\n this.log('initSlides begins');\n this.zone.runOutsideAngular(() => {\n if (!this.hasHtmlContent && this.images) {\n this.nxsSlidesWrapper.nativeElement.innerHTML = '';\n\n for (const cImage of this.images) {\n const div = document.createElement('div');\n div.className = 'swiper-slide';\n div.style.backgroundImage = 'url(' + cImage.src + ')';\n if (this.options.nxsCarouselImageBackgroundSize)\n div.style.backgroundSize = this.options.nxsCarouselImageBackgroundSize;\n this.nxsSlidesWrapper.nativeElement.appendChild(div);\n }\n this.slidesCount = this.images.length;\n if (!!this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n this.nxsThumbnailsSlidesWrapper.nativeElement.innerHTML = '';\n for (const cImage of this.images) {\n const div = document.createElement('div');\n div.className = 'swiper-slide';\n div.style.backgroundImage = 'url(' + cImage.src + ')';\n this.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(div);\n }\n }\n this.log('initSlides - images are defined - slides count => ', this.slidesCount);\n }\n else if (this.hasHtmlContent) {\n this.log('initSlides - html content - slides length => ', this.nxsSlidesWrapper.nativeElement.children.length);\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < this.nxsSlidesWrapper.nativeElement.children.length; i++) {\n const child = this.nxsSlidesWrapper.nativeElement.children[i];\n if (!child.className)\n child.className = 'swiper-slide';\n else if (child.className.indexOf('swiper-slide') === -1) {\n child.className += ' swiper-slide';\n }\n }\n this.slidesCount = this.nxsSlidesWrapper.nativeElement.children.length;\n this.log('initSlides - html content - slides count => ', this.slidesCount);\n }\n });\n\n }\n\n private destroy() {\n if (!this.isBrowser) {\n return;\n }\n this.eventsCollector?.unsubscribeAll();\n this.mutationObserver?.disconnect();\n this.sliderInstance?.destroy();\n }\n ngOnDestroy(): void {\n this.destroy();\n }\n private subscribeToSlideChanged() {\n if (!this.hasHtmlContent) {\n this.log('subscribeToSlideChanged cannot be subscribed : has no html content');\n return;\n }\n if (!this.nxsSlidesWrapper || !this.nxsSlidesWrapper.nativeElement) {\n this.log('subscribeToSlideChanged error : nxsSlidesWrapper is not defined');\n return;\n }\n if (typeof MutationObserver === 'undefined') {\n this.log('cannot use mutation observer');\n return;\n }\n\n if (this.mutationObserver)\n this.mutationObserver.disconnect();\n\n this.log('subscribe to mutation observer');\n this.mutationObserver = new MutationObserver((mutationsList) => {\n // console.log(\"Log: NxsCarouselComponent -> subscribeToSlideChanged -> mutationsList\", mutationsList);\n // console.log(\"Log: NxsCarouselComponent -> subscribeToSlideChanged -> MutationObserver\");\n this.log('mutation observer - html content has changed');\n if (mutationsList.length === 0)\n return;\n let mustUpdate = false;\n for (const mutation of mutationsList) {\n if (mutation.addedNodes.length > 0 || mutation.removedNodes.length > 0) {\n mustUpdate = true;\n break;\n }\n }\n if (mustUpdate) {\n this.initSlides();\n this.createSlider(true);\n }\n\n });\n this.mutationObserver.observe(this.nxsSlidesWrapper.nativeElement, { childList: true, attributes: false, });\n }\n ngAfterViewInit(): void {\n this.initSlides();\n this.createSlider(true);\n }\n getMainSliderHeight() {\n if (!this.options)\n return '';\n if (this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n if (this.options.nxsThumbnails.onMainSlider) {\n return '100%';\n }\n else if (this.options.nxsThumbnails.percentHeight) {\n return (100 - this.options.nxsThumbnails.percentHeight) + '%';\n }\n }\n return '';\n }\n private setDefaultOptions(options: NxsCarouselOptions, forDialog: boolean) {\n if (!options && forDialog) {\n options = { nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true };\n }\n else if (!options)\n options = { nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: false }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: false, nxsCarouselDialogOptions: {} };\n if (options.nxsCarouselDialogOptions) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails = { show: false };\n if (typeof options.nxsCarouselDialogOptions.effect === 'undefined')\n options.nxsCarouselDialogOptions.effect = 'slide';\n if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')\n options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;\n\n if (!!options.nxsCarouselDialogOptions.nxsThumbnails?.show) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.perView = 10;\n options.nxsCarouselDialogOptions.nxsThumbnails.breakpoints = {\n 640: {\n slidesPerView: 5,\n },\n 768: {\n slidesPerView: 7,\n },\n 1024: {\n slidesPerView: 8,\n },\n };\n }\n }\n if (!options.nxsThumbnails)\n options.nxsThumbnails = { show: false };\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')\n options.nxsThumbnails.percentHeight = 20;\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.perView === 'undefined')\n options.nxsThumbnails.perView = 10;\n\n\n if (forDialog)\n options.nxsfullscreenOnClick = false;\n if (options.nxsThumbnails.onMainSlider)\n options.nxsShowNavigationBullets = false;\n return options;\n }\n public showFullScreenCarousel(images: NxsCarouselImage[], wrapperClass?: string) {\n this.options.nxsCarouselDialogOptions = this.setDefaultOptions(this.options.nxsCarouselDialogOptions, true);\n const data: NxsCarouselDialogData = { images, wrapperClass, options: this.options.nxsCarouselDialogOptions };\n this.matDialog.open(NxsCarouselDialogComponent, {\n data,\n panelClass: 'nxs-carousel-dialog',\n width: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.width : undefined,\n height: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.height : undefined,\n disableClose: !this.options.nxsCarouselDialogExitable,\n });\n }\n private createSlider(forceRecreate: boolean) {\n if (!this.isBrowser) {\n this.log('prevent createSlider : platform is server');\n return;\n }\n if (!this.nxsSliderContainer) {\n this.log('can not createSlider : nxsSliderContainer is not defined !');\n return;\n }\n this.log('createSlider', this.nxsSliderContainer.nativeElement);\n if (this.slidesCount === 0) {\n this.log('can not createSlider : slidesCount === 0');\n this.subscribeToSlideChanged();\n return;\n }\n if (this.sliderInstance && !forceRecreate) {\n this.log('can re create slider => slider is already created.');\n return;\n }\n this.zone.runOutsideAngular(async () => {\n this.destroy();\n this.options.pagination = {\n el: '.nxs-carousel-pagination',\n clickable: true,\n type: 'bullets',\n };\n this.options.navigation = {\n nextEl: '.nxs-carousel-button-next',\n prevEl: '.nxs-carousel-button-prev',\n };\n if (!this.swiperLibrary)\n this.swiperLibrary = await import(\"swiper\");\n const Swiper = this.swiperLibrary.default;\n if (!!this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n const thumbnailsOptions: NxsCarouselOptions = {\n slidesPerView: this.options.nxsThumbnails.perView,\n loop: false,\n freeMode: true,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n breakpoints: this.options.nxsThumbnails.breakpoints,\n // spaceBetween: 10,\n };\n this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);\n this.options.thumbs = { swiper: this.thumbnailsSliderInstance };\n }\n this.sliderInstance = new Swiper(this.nxsSliderContainer.nativeElement, this.options);\n this.log('sliderInstance has been created', this.sliderInstance);\n this.sliderInstance.on('slideChange', () => {\n this.zone.run(() => {\n this.currentSlide = this.sliderInstance.realIndex;\n this.log(\"slideChange\", this.currentSlide);\n this.slideChange.next(this.currentSlide);\n });\n });\n this.sliderInstance.on('click', (evt: MouseEvent) => {\n const target = evt.target as HTMLElement;\n if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1)\n return;\n this.zone.run(() => {\n this.slideClick.next(evt);\n if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {\n this.showFullScreenCarousel(this.images, 'fullscreen-carousel');\n }\n });\n\n });\n this.subscribeToSlideChanged();\n });\n }\n\n goToSlide(index: number, speed?: number) {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slideTo(index, speed);\n }\n next() {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slideNext();\n }\n previous() {\n if (!this.sliderInstance)\n return;\n this.sliderInstance.slidePrev();\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { NxsCarouselComponent } from './nxs-carousel.component';\nimport { NxsCarouselModuleConfig } from './nxs-carousel-types';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n@NgModule({\n declarations: [\n NxsCarouselComponent,\n NxsCarouselDialogComponent,\n ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatDialogModule,\n ObserversModule,\n ],\n exports: [\n NxsCarouselComponent,\n ],\n})\nexport class NxsCarouselModule {\n public static forRoot(config?: NxsCarouselModuleConfig): ModuleWithProviders<NxsCarouselModule> {\n return {\n ngModule: NxsCarouselModule,\n providers: [\n { provide: NxsCarouselModuleConfig, useValue: config },\n ]\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {NxsCarouselDialogComponent as ɵa} from './lib/nxs-carousel/nxs-carousel-dialog.component';"],"names":["Component","ViewEncapsulation","Inject","MAT_DIALOG_DATA","MatDialogRef","EventsCollector","EventEmitter","isPlatformBrowser","MatDialog","NgZone","PLATFORM_ID","Optional","ViewChild","Input","Output","NgModule","CommonModule","MatIconModule","MatButtonModule","MatDialogModule","ObserversModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;QAC9F,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,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BAAe;wBACfC,yBAAe;qBAClB;oBACD,OAAO,EAAE;wBACL,oBAAoB;qBACvB;iBACJ;;;ICzBD;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/material/dialog"),require("@angular/common"),require("nextalys-js-helpers/dist/events"),require("@angular/material/button"),require("@angular/material/icon"),require("@angular/cdk/observers")):"function"==typeof define&&define.amd?define("nextalys-carousel",["exports","@angular/core","@angular/material/dialog","@angular/common","nextalys-js-helpers/dist/events","@angular/material/button","@angular/material/icon","@angular/cdk/observers"],n):n((e=e||self)["nextalys-carousel"]={},e.ng.core,e.ng.material.dialog,e.ng.common,e.events,e.ng.material.button,e.ng.material.icon,e.ng.cdk.observers)}(this,(function(e,n,i,t,
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/material/dialog"),require("@angular/common"),require("nextalys-js-helpers/dist/events"),require("@angular/material/button"),require("@angular/material/icon"),require("@angular/cdk/observers")):"function"==typeof define&&define.amd?define("nextalys-carousel",["exports","@angular/core","@angular/material/dialog","@angular/common","nextalys-js-helpers/dist/events","@angular/material/button","@angular/material/icon","@angular/cdk/observers"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["nextalys-carousel"]={},e.ng.core,e.ng.material.dialog,e.ng.common,e.events,e.ng.material.button,e.ng.material.icon,e.ng.cdk.observers)}(this,(function(e,n,i,s,t,o,r,a){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function l(e,n,i,t){var s,o=arguments.length,r=o<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,i):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,n,i,t);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(n,i,r):s(n,i))||r);return o>3&&r&&Object.defineProperty(n,i,r),r}function u(e,n){return function(i,t){n(i,t,e)}}function p(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function c(e,n,i,t){return new(i||(i=Promise))((function(s,o){function r(e){try{l(t.next(e))}catch(e){o(e)}}function a(e){try{l(t.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?s(e.value):(n=e.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,a)}l((t=t.apply(e,n||[])).next())}))}function d(e,n){var i,t,s,o,r={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,t&&(s=2&o[0]?t.return:o[0]?t.throw||((s=t.return)&&s.call(t),0):t.next)&&!(s=s.call(t,o[1])).done)return s;switch(t=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,t=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(s=r.trys,(s=s.length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(6===o[0]&&r.label<s[1]){r.label=s[1],s=o;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(o);break}s[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],t=0}finally{i=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(e){var n="function"==typeof Symbol&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,n){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var t,s,o=i.call(e),r=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)r.push(t.value)}catch(e){s={error:e}}finally{try{t&&!t.done&&(i=o.return)&&i.call(o)}finally{if(s)throw s.error}}return r}function x(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(g(arguments[n]));return e}var m=function(){this.debug=!1},f=function(){function e(e,n){this.data=e,this.dialogRef=n,this.wrapperClass="nxs-carousel-wrapper",e.wrapperClass&&(this.wrapperClass+=" "+e.wrapperClass)}return e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[i.MAT_DIALOG_DATA]}]},{type:i.MatDialogRef}]},e=l([n.Component({selector:"nxs-carousel-dialog",template:'\n <div class="nxs-carousel-dialog-flex-wrapper">\n <div class="nxs-carousel-dialog-header">\n <button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]="wrapperClass">\n <nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>\n </div>\n</div>\n ',encapsulation:n.ViewEncapsulation.None,styles:[".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}"]}),u(0,n.Inject(i.MAT_DIALOG_DATA)),p("design:paramtypes",[Object,i.MatDialogRef])],e)}(),b=function(){function e(e,i,o,r){this.matDialog=e,this.zone=i,this.platformId=o,this.config=r,this.mutationObserver=null,this.recreateSliderSubscribed=!1,this.eventsCollector=new s.EventsCollector,this.options={},this.hasHtmlContent=!1,this.slidesCount=0,this.slideChange=new n.EventEmitter,this.currentSlide=0,this.slideClick=new n.EventEmitter,this.isBrowser=!1,this.config||(this.config={debug:!1}),this.isBrowser=t.isPlatformBrowser(this.platformId),this.log("constructor - isBrowser",this.isBrowser),this.options=this.setDefaultOptions(void 0,!1)}return Object.defineProperty(e.prototype,"setOptions",{set:function(e){this.options=this.setDefaultOptions(e,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setImages",{set:function(e){this.images=e,this.initSlides(),this.createSlider(!0)},enumerable:!0,configurable:!0}),e.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.config.debug&&console.log.apply(console,x(["[NxsCarousel]"],e))},e.prototype.onContentChange=function(e){},e.prototype.initSlides=function(){var e=this;this.isBrowser?this.nxsSlidesWrapper?(this.log("initSlides begins"),this.zone.runOutsideAngular((function(){if(!e.hasHtmlContent&&e.images){e.nxsSlidesWrapper.nativeElement.innerHTML="";for(var n=0;n<e.images.length;n++){(i=document.createElement("div")).className="swiper-slide",i.style.backgroundImage="url("+e.images[n].src+")",e.options.nxsCarouselImageBackgroundSize&&(i.style.backgroundSize=e.options.nxsCarouselImageBackgroundSize),e.nxsSlidesWrapper.nativeElement.appendChild(i)}if(e.slidesCount=e.images.length,e.options.nxsThumbnails&&e.options.nxsThumbnails.show){e.nxsThumbnailsSlidesWrapper.nativeElement.innerHTML="";for(n=0;n<e.images.length;n++){var i;(i=document.createElement("div")).className="swiper-slide",i.style.backgroundImage="url("+e.images[n].src+")",e.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(i)}}e.log("initSlides - images are defined - slides count => ",e.slidesCount)}else if(e.hasHtmlContent){e.log("initSlides - html content - slides length => ",e.nxsSlidesWrapper.nativeElement.children.length);for(n=0;n<e.nxsSlidesWrapper.nativeElement.children.length;n++){var t=e.nxsSlidesWrapper.nativeElement.children[n];t.className?-1===t.className.indexOf("swiper-slide")&&(t.className+=" swiper-slide"):t.className="swiper-slide"}e.slidesCount=e.nxsSlidesWrapper.nativeElement.children.length,e.log("initSlides - html content - slides count => ",e.slidesCount)}}))):this.log("can not initSlides : nxsSlidesWrapper is not defined !"):this.log("prevent initSlides on platform server")},e.prototype.ngOnDestroy=function(){this.isBrowser&&(this.eventsCollector.unsubscribeAll(),this.mutationObserver&&this.mutationObserver.disconnect(),this.sliderInstance&&this.sliderInstance.destroy())},e.prototype.subscribeToSlideChanged=function(){var e=this;this.hasHtmlContent?this.nxsSlidesWrapper&&this.nxsSlidesWrapper.nativeElement?"undefined"!=typeof MutationObserver?(this.mutationObserver&&this.mutationObserver.disconnect(),this.log("subscribe to mutation observer"),this.mutationObserver=new MutationObserver((function(n){var i,t;if(e.log("mutation observer - html content has changed"),0!==n.length){var s=!1;try{for(var o=h(n),r=o.next();!r.done;r=o.next()){var a=r.value;if(a.addedNodes.length>0||a.removedNodes.length>0){s=!0;break}}}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}s&&(e.initSlides(),e.createSlider(!0))}})),this.mutationObserver.observe(this.nxsSlidesWrapper.nativeElement,{childList:!0,attributes:!1})):this.log("cannot use mutation observer"):this.log("subscribeToSlideChanged error : nxsSlidesWrapper is not defined"):this.log("subscribeToSlideChanged cannot be subscribed : has no html content")},e.prototype.ngAfterViewInit=function(){this.initSlides(),this.createSlider(!0)},e.prototype.getMainSliderHeight=function(){if(!this.options)return"";if(this.options.nxsThumbnails&&this.options.nxsThumbnails.show){if(this.options.nxsThumbnails.onMainSlider)return"100%";if(this.options.nxsThumbnails.percentHeight)return 100-this.options.nxsThumbnails.percentHeight+"%"}return""},e.prototype.setDefaultOptions=function(e,n){return!e&&n?e={nxsShowNavigationBullets:!0,loop:!0,nxsThumbnails:{show:!0},effect:"slide",nxsShowNavigationArrows:!0,nxsShowImagesCount:!0}:e||(e={nxsShowNavigationBullets:!0,loop:!0,nxsThumbnails:{show:!1},effect:"slide",nxsShowNavigationArrows:!0,nxsShowImagesCount:!1,nxsCarouselDialogOptions:{}}),e.nxsCarouselDialogOptions&&(void 0===e.nxsCarouselDialogOptions.nxsThumbnails&&(e.nxsCarouselDialogOptions.nxsThumbnails={show:!1}),void 0===e.nxsCarouselDialogOptions.effect&&(e.nxsCarouselDialogOptions.effect="slide"),void 0===e.nxsCarouselDialogOptions.nxsShowNavigationArrows&&(e.nxsCarouselDialogOptions.nxsShowNavigationArrows=!0),e.nxsCarouselDialogOptions.nxsThumbnails.show&&(void 0===e.nxsCarouselDialogOptions.nxsThumbnails.percentHeight&&(e.nxsCarouselDialogOptions.nxsThumbnails.percentHeight=20),void 0===e.nxsCarouselDialogOptions.nxsThumbnails.perView&&(e.nxsCarouselDialogOptions.nxsThumbnails.perView=10),e.nxsCarouselDialogOptions.nxsThumbnails.breakpoints={640:{slidesPerView:5},768:{slidesPerView:7},1024:{slidesPerView:8}})),void 0===e.nxsThumbnails&&(e.nxsThumbnails={show:!1}),e.nxsThumbnails.show&&void 0===e.nxsThumbnails.percentHeight&&(e.nxsThumbnails.percentHeight=20),e.nxsThumbnails.show&&void 0===e.nxsThumbnails.perView&&(e.nxsThumbnails.perView=10),n&&(e.nxsfullscreenOnClick=!1),e.nxsThumbnails.onMainSlider&&(e.nxsShowNavigationBullets=!1),e},e.prototype.showFullScreenCarousel=function(e,n){this.options.nxsCarouselDialogOptions=this.setDefaultOptions(this.options.nxsCarouselDialogOptions,!0);var i={images:e,wrapperClass:n,options:this.options.nxsCarouselDialogOptions};this.matDialog.open(f,{data:i,panelClass:"nxs-carousel-dialog",width:this.options.nxsCarouselDialogSize?this.options.nxsCarouselDialogSize.width:void 0,height:this.options.nxsCarouselDialogSize?this.options.nxsCarouselDialogSize.height:void 0,disableClose:!this.options.nxsCarouselDialogExitable})},e.prototype.createSlider=function(e){var n=this;if(this.isBrowser)if(this.nxsSliderContainer){if(this.log("createSlider",this.nxsSliderContainer.nativeElement),0===this.slidesCount)return this.log("can not createSlider : slidesCount === 0"),void this.subscribeToSlideChanged();!this.sliderInstance||e?this.zone.runOutsideAngular((function(){return c(n,void 0,void 0,(function(){var e,n,i,t=this;return d(this,(function(s){switch(s.label){case 0:return this.sliderInstance&&this.sliderInstance.destroy(),this.options.pagination={el:".nxs-carousel-pagination",clickable:!0,type:"bullets"},this.options.navigation={nextEl:".nxs-carousel-button-next",prevEl:".nxs-carousel-button-prev"},this.swiperLibrary?[3,2]:(e=this,[4,import("swiper")]);case 1:e.swiperLibrary=s.sent(),s.label=2;case 2:return n=this.swiperLibrary.default,this.options.nxsThumbnails&&this.options.nxsThumbnails.show&&(i={slidesPerView:this.options.nxsThumbnails.perView,loop:!1,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:this.options.nxsThumbnails.breakpoints},this.thumbnailsSliderInstance=new n(this.nxsThumbnailsSliderContainer.nativeElement,i),this.options.thumbs={swiper:this.thumbnailsSliderInstance}),this.sliderInstance=new n(this.nxsSliderContainer.nativeElement,this.options),this.log("sliderInstance has been created",this.sliderInstance),this.sliderInstance.on("slideChange",(function(){t.zone.run((function(){t.currentSlide=t.sliderInstance.realIndex,t.log("slideChange",t.currentSlide),t.slideChange.next(t.currentSlide)}))})),this.sliderInstance.on("click",(function(e){var n=e.target;-1===n.className.indexOf("nxs-carousel-button")&&-1===n.className.indexOf("swiper-pagination")&&t.zone.run((function(){t.slideClick.next(e),t.options.nxsfullscreenOnClick&&t.images&&t.images.length&&!t.hasHtmlContent&&t.showFullScreenCarousel(t.images,"fullscreen-carousel")}))})),this.subscribeToSlideChanged(),[2]}}))}))})):this.log("can re create slider => slider is already created.")}else this.log("can not createSlider : nxsSliderContainer is not defined !");else this.log("prevent createSlider : platform is server")},e.prototype.goToSlide=function(e,n){this.sliderInstance&&this.sliderInstance.slideTo(e,n)},e.prototype.next=function(){this.sliderInstance&&this.sliderInstance.slideNext()},e.prototype.previous=function(){this.sliderInstance&&this.sliderInstance.slidePrev()},e.ctorParameters=function(){return[{type:i.MatDialog},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]},{type:m,decorators:[{type:n.Optional}]}]},l([n.ViewChild("nxsSliderContainer",{static:!0}),p("design:type",n.ElementRef)],e.prototype,"nxsSliderContainer",void 0),l([n.ViewChild("nxsSlidesWrapper",{static:!0}),p("design:type",n.ElementRef)],e.prototype,"nxsSlidesWrapper",void 0),l([n.ViewChild("nxsThumbnailsSliderContainer",{static:!0}),p("design:type",n.ElementRef)],e.prototype,"nxsThumbnailsSliderContainer",void 0),l([n.ViewChild("nxsThumbnailsSlidesWrapper",{static:!0}),p("design:type",n.ElementRef)],e.prototype,"nxsThumbnailsSlidesWrapper",void 0),l([n.Input("options"),p("design:type",Object),p("design:paramtypes",[Object])],e.prototype,"setOptions",null),l([n.Input("images"),p("design:type",Array),p("design:paramtypes",[Array])],e.prototype,"setImages",null),l([n.Input(),p("design:type",Object)],e.prototype,"hasHtmlContent",void 0),l([n.Output(),p("design:type",Object)],e.prototype,"slideChange",void 0),l([n.Output(),p("design:type",Object)],e.prototype,"slideClick",void 0),e=l([n.Component({selector:"nxs-carousel",template:'<div #nxsSliderContainer\n [ngClass]="{\'swiper-container\':true,\'nxs-slider-with-thumbnails\':!!options.nxsThumbnails && options.nxsThumbnails.show}"\n [style.height]="getMainSliderHeight()">\n <div class="swiper-wrapper" #nxsSlidesWrapper>\n <ng-content>\n\n </ng-content>\n </div>\n \x3c!-- (cdkObserveContent)="onContentChange($event)" --\x3e\n \x3c!-- If we need pagination --\x3e\n <div class="swiper-pagination nxs-carousel-pagination"\n [style.display]="slidesCount>0 && options && options.nxsShowNavigationBullets ? \'\':\'none\'"></div>\n\n \x3c!-- If we need navigation buttons --\x3e\n <ng-container *ngIf="options.nxsShowNavigationArrows">\n <div class="nxs-carousel-button-prev swiper-button-prev"></div>\n <div class="nxs-carousel-button-next swiper-button-next"></div>\n </ng-container>\n\n <ng-container *ngIf="images && options.nxsShowImagesCount">\n <div class="nxs-image-counter">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\n\n</div>\n\n<div #nxsThumbnailsSliderContainer\n [style.display]="(images && !!options.nxsThumbnails && options.nxsThumbnails.show) ?\'\':\'none\'"\n [style.height]="(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + \'%\'):\'\'"\n [style.top]="(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? (\'-\' + (options.nxsThumbnails.percentHeight) + \'%\'):\'\'"\n [ngClass]="{\'swiper-container\':true, \'nxs-slider-thumbnails-container\':true,\'nxs-slider-thumbnails-on-main-slider\':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}">\n <div class="swiper-wrapper" #nxsThumbnailsSlidesWrapper>\n\n </div>\n\n</div>',encapsulation:n.ViewEncapsulation.None,styles:["nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color:white;--swiper-theme-color:white}nxs-carousel .swiper-container{width:100%;display:block;position:relative;height:100%}nxs-carousel .swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:100%;min-height:50px;background-size:cover;background-position:center;background-repeat:no-repeat}nxs-carousel .swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel .swiper-container.nxs-slider-thumbnails-container{height:20%;background:0 0;padding:6px 0}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid #add8e6}nxs-carousel .swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}"]}),u(2,n.Inject(n.PLATFORM_ID)),u(3,n.Optional()),p("design:paramtypes",[i.MatDialog,n.NgZone,Object,m])],e)}(),v=function(){function e(){}var s;return s=e,e.forRoot=function(e){return{ngModule:s,providers:[{provide:m,useValue:e}]}},e=s=l([n.NgModule({declarations:[b,f],imports:[t.CommonModule,r.MatIconModule,o.MatButtonModule,i.MatDialogModule,a.ObserversModule],exports:[b]})],e)}();e.NxsCarouselComponent=b,e.NxsCarouselModule=v,e.NxsCarouselModuleConfig=m,e.ɵa=f,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */function l(e,n,i,s){return new(i||(i=Promise))((function(t,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,a)}l((s=s.apply(e,n||[])).next())}))}function u(e,n){var i,s,t,o,r={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(t=2&o[0]?s.return:o[0]?s.throw||((t=s.return)&&t.call(s),0):s.next)&&!(t=t.call(s,o[1])).done)return t;switch(s=0,t&&(o=[2&o[0],t.value]),o[0]){case 0:case 1:t=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,s=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(t=r.trys,(t=t.length>0&&t[t.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!t||o[1]>t[0]&&o[1]<t[3])){r.label=o[1];break}if(6===o[0]&&r.label<t[1]){r.label=t[1],t=o;break}if(t&&r.label<t[2]){r.label=t[2],r.ops.push(o);break}t[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],s=0}finally{i=t=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}Object.create;function p(e){var n="function"==typeof Symbol&&Symbol.iterator,i=n&&e[n],s=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,n){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var s,t,o=i.call(e),r=[];try{for(;(void 0===n||n-- >0)&&!(s=o.next()).done;)r.push(s.value)}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return r}function c(e,n,i){if(i||2===arguments.length)for(var s,t=0,o=n.length;t<o;t++)!s&&t in n||(s||(s=Array.prototype.slice.call(n,0,t)),s[t]=n[t]);return e.concat(s||n)}Object.create;var h=function(){this.debug=!1},g=function(e,n){this.data=e,this.dialogRef=n,this.wrapperClass="nxs-carousel-wrapper",e.wrapperClass&&(this.wrapperClass+=" "+e.wrapperClass)};g.decorators=[{type:n.Component,args:[{selector:"nxs-carousel-dialog",template:'\n <div class="nxs-carousel-dialog-flex-wrapper">\n <div class="nxs-carousel-dialog-header">\n <button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]="wrapperClass">\n <nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>\n </div>\n</div>\n ',encapsulation:n.ViewEncapsulation.None,styles:[".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}"]}]}],g.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[i.MAT_DIALOG_DATA]}]},{type:i.MatDialogRef}]};var x=function(){function e(e,i,o,r){this.matDialog=e,this.zone=i,this.platformId=o,this.config=r,this.mutationObserver=null,this.recreateSliderSubscribed=!1,this.eventsCollector=new t.EventsCollector,this.options={},this.hasHtmlContent=!1,this.slidesCount=0,this.slideChange=new n.EventEmitter,this.currentSlide=0,this.slideClick=new n.EventEmitter,this.isBrowser=!1,this.config||(this.config={debug:!1}),this.isBrowser=s.isPlatformBrowser(this.platformId),this.log("constructor - isBrowser",this.isBrowser),this.options=this.setDefaultOptions(void 0,!1)}return Object.defineProperty(e.prototype,"setOptions",{set:function(e){this.options=this.setDefaultOptions(e,!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setImages",{set:function(e){this.images=e,this.initSlides(),this.createSlider(!0)},enumerable:!1,configurable:!0}),e.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.config.debug&&console.log.apply(console,c(["[NxsCarousel]"],d(e)))},e.prototype.onContentChange=function(e){},e.prototype.initSlides=function(){var e=this;this.isBrowser?this.nxsSlidesWrapper?(this.log("initSlides begins"),this.zone.runOutsideAngular((function(){var n,i,s,t;if(!e.hasHtmlContent&&e.images){e.nxsSlidesWrapper.nativeElement.innerHTML="";try{for(var o=p(e.images),r=o.next();!r.done;r=o.next()){var a=r.value;(d=document.createElement("div")).className="swiper-slide",d.style.backgroundImage="url("+a.src+")",e.options.nxsCarouselImageBackgroundSize&&(d.style.backgroundSize=e.options.nxsCarouselImageBackgroundSize),e.nxsSlidesWrapper.nativeElement.appendChild(d)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}if(e.slidesCount=e.images.length,e.options.nxsThumbnails&&e.options.nxsThumbnails.show){e.nxsThumbnailsSlidesWrapper.nativeElement.innerHTML="";try{for(var l=p(e.images),u=l.next();!u.done;u=l.next()){var d;a=u.value;(d=document.createElement("div")).className="swiper-slide",d.style.backgroundImage="url("+a.src+")",e.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(d)}}catch(e){s={error:e}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(s)throw s.error}}}e.log("initSlides - images are defined - slides count => ",e.slidesCount)}else if(e.hasHtmlContent){e.log("initSlides - html content - slides length => ",e.nxsSlidesWrapper.nativeElement.children.length);for(var c=0;c<e.nxsSlidesWrapper.nativeElement.children.length;c++){var h=e.nxsSlidesWrapper.nativeElement.children[c];h.className?-1===h.className.indexOf("swiper-slide")&&(h.className+=" swiper-slide"):h.className="swiper-slide"}e.slidesCount=e.nxsSlidesWrapper.nativeElement.children.length,e.log("initSlides - html content - slides count => ",e.slidesCount)}}))):this.log("can not initSlides : nxsSlidesWrapper is not defined !"):this.log("prevent initSlides on platform server")},e.prototype.destroy=function(){var e,n,i;this.isBrowser&&(null===(e=this.eventsCollector)||void 0===e||e.unsubscribeAll(),null===(n=this.mutationObserver)||void 0===n||n.disconnect(),null===(i=this.sliderInstance)||void 0===i||i.destroy())},e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.subscribeToSlideChanged=function(){var e=this;this.hasHtmlContent?this.nxsSlidesWrapper&&this.nxsSlidesWrapper.nativeElement?"undefined"!=typeof MutationObserver?(this.mutationObserver&&this.mutationObserver.disconnect(),this.log("subscribe to mutation observer"),this.mutationObserver=new MutationObserver((function(n){var i,s;if(e.log("mutation observer - html content has changed"),0!==n.length){var t=!1;try{for(var o=p(n),r=o.next();!r.done;r=o.next()){var a=r.value;if(a.addedNodes.length>0||a.removedNodes.length>0){t=!0;break}}}catch(e){i={error:e}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}t&&(e.initSlides(),e.createSlider(!0))}})),this.mutationObserver.observe(this.nxsSlidesWrapper.nativeElement,{childList:!0,attributes:!1})):this.log("cannot use mutation observer"):this.log("subscribeToSlideChanged error : nxsSlidesWrapper is not defined"):this.log("subscribeToSlideChanged cannot be subscribed : has no html content")},e.prototype.ngAfterViewInit=function(){this.initSlides(),this.createSlider(!0)},e.prototype.getMainSliderHeight=function(){if(!this.options)return"";if(this.options.nxsThumbnails&&this.options.nxsThumbnails.show){if(this.options.nxsThumbnails.onMainSlider)return"100%";if(this.options.nxsThumbnails.percentHeight)return 100-this.options.nxsThumbnails.percentHeight+"%"}return""},e.prototype.setDefaultOptions=function(e,n){var i;return!e&&n?e={nxsShowNavigationBullets:!0,loop:!0,nxsThumbnails:{show:!0},effect:"slide",nxsShowNavigationArrows:!0,nxsShowImagesCount:!0}:e||(e={nxsShowNavigationBullets:!0,loop:!0,nxsThumbnails:{show:!1},effect:"slide",nxsShowNavigationArrows:!0,nxsShowImagesCount:!1,nxsCarouselDialogOptions:{}}),e.nxsCarouselDialogOptions&&(void 0===e.nxsCarouselDialogOptions.nxsThumbnails&&(e.nxsCarouselDialogOptions.nxsThumbnails={show:!1}),void 0===e.nxsCarouselDialogOptions.effect&&(e.nxsCarouselDialogOptions.effect="slide"),void 0===e.nxsCarouselDialogOptions.nxsShowNavigationArrows&&(e.nxsCarouselDialogOptions.nxsShowNavigationArrows=!0),(null===(i=e.nxsCarouselDialogOptions.nxsThumbnails)||void 0===i?void 0:i.show)&&(void 0===e.nxsCarouselDialogOptions.nxsThumbnails.percentHeight&&(e.nxsCarouselDialogOptions.nxsThumbnails.percentHeight=20),void 0===e.nxsCarouselDialogOptions.nxsThumbnails.perView&&(e.nxsCarouselDialogOptions.nxsThumbnails.perView=10),e.nxsCarouselDialogOptions.nxsThumbnails.breakpoints={640:{slidesPerView:5},768:{slidesPerView:7},1024:{slidesPerView:8}})),e.nxsThumbnails||(e.nxsThumbnails={show:!1}),e.nxsThumbnails.show&&void 0===e.nxsThumbnails.percentHeight&&(e.nxsThumbnails.percentHeight=20),e.nxsThumbnails.show&&void 0===e.nxsThumbnails.perView&&(e.nxsThumbnails.perView=10),n&&(e.nxsfullscreenOnClick=!1),e.nxsThumbnails.onMainSlider&&(e.nxsShowNavigationBullets=!1),e},e.prototype.showFullScreenCarousel=function(e,n){this.options.nxsCarouselDialogOptions=this.setDefaultOptions(this.options.nxsCarouselDialogOptions,!0);var i={images:e,wrapperClass:n,options:this.options.nxsCarouselDialogOptions};this.matDialog.open(g,{data:i,panelClass:"nxs-carousel-dialog",width:this.options.nxsCarouselDialogSize?this.options.nxsCarouselDialogSize.width:void 0,height:this.options.nxsCarouselDialogSize?this.options.nxsCarouselDialogSize.height:void 0,disableClose:!this.options.nxsCarouselDialogExitable})},e.prototype.createSlider=function(e){var n=this;if(this.isBrowser)if(this.nxsSliderContainer){if(this.log("createSlider",this.nxsSliderContainer.nativeElement),0===this.slidesCount)return this.log("can not createSlider : slidesCount === 0"),void this.subscribeToSlideChanged();!this.sliderInstance||e?this.zone.runOutsideAngular((function(){return l(n,void 0,void 0,(function(){var e,n,i,s=this;return u(this,(function(t){switch(t.label){case 0:return this.destroy(),this.options.pagination={el:".nxs-carousel-pagination",clickable:!0,type:"bullets"},this.options.navigation={nextEl:".nxs-carousel-button-next",prevEl:".nxs-carousel-button-prev"},this.swiperLibrary?[3,2]:(e=this,[4,import("swiper")]);case 1:e.swiperLibrary=t.sent(),t.label=2;case 2:return n=this.swiperLibrary.default,this.options.nxsThumbnails&&this.options.nxsThumbnails.show&&(i={slidesPerView:this.options.nxsThumbnails.perView,loop:!1,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:this.options.nxsThumbnails.breakpoints},this.thumbnailsSliderInstance=new n(this.nxsThumbnailsSliderContainer.nativeElement,i),this.options.thumbs={swiper:this.thumbnailsSliderInstance}),this.sliderInstance=new n(this.nxsSliderContainer.nativeElement,this.options),this.log("sliderInstance has been created",this.sliderInstance),this.sliderInstance.on("slideChange",(function(){s.zone.run((function(){s.currentSlide=s.sliderInstance.realIndex,s.log("slideChange",s.currentSlide),s.slideChange.next(s.currentSlide)}))})),this.sliderInstance.on("click",(function(e){var n=e.target;-1===n.className.indexOf("nxs-carousel-button")&&-1===n.className.indexOf("swiper-pagination")&&s.zone.run((function(){s.slideClick.next(e),s.options.nxsfullscreenOnClick&&s.images&&s.images.length&&!s.hasHtmlContent&&s.showFullScreenCarousel(s.images,"fullscreen-carousel")}))})),this.subscribeToSlideChanged(),[2]}}))}))})):this.log("can re create slider => slider is already created.")}else this.log("can not createSlider : nxsSliderContainer is not defined !");else this.log("prevent createSlider : platform is server")},e.prototype.goToSlide=function(e,n){this.sliderInstance&&this.sliderInstance.slideTo(e,n)},e.prototype.next=function(){this.sliderInstance&&this.sliderInstance.slideNext()},e.prototype.previous=function(){this.sliderInstance&&this.sliderInstance.slidePrev()},e}();x.decorators=[{type:n.Component,args:[{selector:"nxs-carousel",template:'<div #nxsSliderContainer\n [ngClass]="{\'swiper-container\':true,\'nxs-slider-with-thumbnails\':!!options.nxsThumbnails && options.nxsThumbnails.show}"\n [style.height]="getMainSliderHeight()">\n <div class="swiper-wrapper" #nxsSlidesWrapper>\n <ng-content>\n\n </ng-content>\n </div>\n \x3c!-- (cdkObserveContent)="onContentChange($event)" --\x3e\n \x3c!-- If we need pagination --\x3e\n <div class="swiper-pagination nxs-carousel-pagination"\n [style.display]="slidesCount>0 && options && options.nxsShowNavigationBullets ? \'\':\'none\'"></div>\n\n \x3c!-- If we need navigation buttons --\x3e\n <ng-container *ngIf="options.nxsShowNavigationArrows">\n <div class="nxs-carousel-button-prev swiper-button-prev"></div>\n <div class="nxs-carousel-button-next swiper-button-next"></div>\n </ng-container>\n\n <ng-container *ngIf="images && options.nxsShowImagesCount">\n <div class="nxs-image-counter">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\n\n</div>\n\n<div #nxsThumbnailsSliderContainer\n [style.display]="(images && !!options.nxsThumbnails && options.nxsThumbnails.show) ?\'\':\'none\'"\n [style.height]="(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + \'%\'):\'\'"\n [style.top]="(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? (\'-\' + (options.nxsThumbnails.percentHeight) + \'%\'):\'\'"\n [ngClass]="{\'swiper-container\':true, \'nxs-slider-thumbnails-container\':true,\'nxs-slider-thumbnails-on-main-slider\':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}">\n <div class="swiper-wrapper" #nxsThumbnailsSlidesWrapper>\n\n </div>\n\n</div>',encapsulation:n.ViewEncapsulation.None,styles:["nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color:#fff;--swiper-theme-color:#fff}nxs-carousel .swiper-container{width:100%;display:block;position:relative;height:100%}nxs-carousel .swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:100%;min-height:50px;background-size:cover;background-position:50%;background-repeat:no-repeat}nxs-carousel .swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel .swiper-container.nxs-slider-thumbnails-container{height:20%;background:transparent;padding:6px 0}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid #add8e6}nxs-carousel .swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}"]}]}],x.ctorParameters=function(){return[{type:i.MatDialog},{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]},{type:h,decorators:[{type:n.Optional}]}]},x.propDecorators={nxsSliderContainer:[{type:n.ViewChild,args:["nxsSliderContainer",{static:!0}]}],nxsSlidesWrapper:[{type:n.ViewChild,args:["nxsSlidesWrapper",{static:!0}]}],nxsThumbnailsSliderContainer:[{type:n.ViewChild,args:["nxsThumbnailsSliderContainer",{static:!0}]}],nxsThumbnailsSlidesWrapper:[{type:n.ViewChild,args:["nxsThumbnailsSlidesWrapper",{static:!0}]}],setOptions:[{type:n.Input,args:["options"]}],setImages:[{type:n.Input,args:["images"]}],hasHtmlContent:[{type:n.Input}],slideChange:[{type:n.Output}],slideClick:[{type:n.Output}]};var m=function(){function e(){}return e.forRoot=function(n){return{ngModule:e,providers:[{provide:h,useValue:n}]}},e}();m.decorators=[{type:n.NgModule,args:[{declarations:[x,g],imports:[s.CommonModule,r.MatIconModule,o.MatButtonModule,i.MatDialogModule,a.ObserversModule],exports:[x]}]}],e.NxsCarouselComponent=x,e.NxsCarouselModule=m,e.NxsCarouselModuleConfig=h,e.ɵa=g,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=nextalys-carousel.umd.min.js.map
|