@mintplayer/ng-swiper 15.2.4 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,329 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Inject, HostBinding, ContentChildren, forwardRef, Input, Output, HostListener, NgModule } from '@angular/core';
3
- import { DOCUMENT, CommonModule } from '@angular/common';
4
- import { BehaviorSubject, Subject, combineLatest, map, takeUntil, filter, mergeMap, take } from 'rxjs';
5
- import * as i1 from '@angular/animations';
6
- import { style, animate } from '@angular/animations';
7
-
8
- class BsSwipeContainerDirective {
9
- constructor(element, animationBuilder, document) {
10
- this.animationBuilder = animationBuilder;
11
- this.offsetLeft = null;
12
- this.offsetRight = null;
13
- this.offsetTop = null;
14
- this.offsetBottom = null;
15
- this.minimumOffset = 50;
16
- this.imageIndexChange = new EventEmitter();
17
- this.isViewInited$ = new BehaviorSubject(false);
18
- this.destroyed$ = new Subject();
19
- this.startTouch$ = new BehaviorSubject(null);
20
- this.lastTouch$ = new BehaviorSubject(null);
21
- this.swipes$ = new BehaviorSubject(null);
22
- this.imageIndex$ = new BehaviorSubject(0);
23
- this.containerElement = element;
24
- this.document = document;
25
- this.offset$ = combineLatest([this.startTouch$, this.lastTouch$, this.imageIndex$, this.isViewInited$])
26
- .pipe(map(([startTouch, lastTouch, imageIndex, isViewInited]) => {
27
- if (!isViewInited) {
28
- return (-imageIndex * 100);
29
- }
30
- else if (!!startTouch && !!lastTouch) {
31
- return (-imageIndex * 100 + (lastTouch.position.x - startTouch.position.x) / this.containerElement.nativeElement.clientWidth * 100);
32
- }
33
- else {
34
- return (-imageIndex * 100);
35
- }
36
- }));
37
- this.padLeft$ = this.swipes$.pipe(map(swipes => {
38
- if (!swipes) {
39
- return 0;
40
- }
41
- let count = 0;
42
- for (const s of swipes) {
43
- if (!s.offside) {
44
- break;
45
- }
46
- else {
47
- count++;
48
- }
49
- }
50
- return count;
51
- }));
52
- this.padRight$ = this.swipes$.pipe(map(swipes => {
53
- if (!swipes) {
54
- return 0;
55
- }
56
- let count = 0;
57
- for (const s of swipes.toArray().reverse()) {
58
- if (!s.offside) {
59
- break;
60
- }
61
- else {
62
- count++;
63
- }
64
- }
65
- return count;
66
- }));
67
- this.offsetLeft$ = combineLatest([this.offset$, this.padLeft$])
68
- .pipe(map(([offset, padLeft]) => {
69
- return offset - padLeft * 100;
70
- }));
71
- this.offsetRight$ = combineLatest([this.offset$, this.padLeft$, this.padRight$])
72
- .pipe(map(([offset, padLeft, padRight]) => {
73
- return -(offset - padLeft * 100) - (padRight - 1) * 100;
74
- }));
75
- this.offsetLeft$
76
- .pipe(takeUntil(this.destroyed$))
77
- .subscribe((offsetLeft) => this.offsetLeft = offsetLeft);
78
- this.offsetRight$
79
- .pipe(takeUntil(this.destroyed$))
80
- .subscribe((offsetRight) => this.offsetRight = offsetRight);
81
- this.imageIndex$
82
- .pipe(takeUntil(this.destroyed$))
83
- .subscribe((imageIndex) => this.imageIndexChange.emit(imageIndex));
84
- this.actualSwipes$ = this.swipes$
85
- .pipe(map(swipes => {
86
- if (swipes) {
87
- return swipes.filter(swipe => !swipe.offside);
88
- }
89
- else {
90
- return [];
91
- }
92
- }));
93
- this.slideHeights$ = this.actualSwipes$
94
- .pipe(filter(swipes => !!swipes))
95
- // .pipe(map(swipes => <QueryList<BsSwipeDirective>>swipes))
96
- .pipe(mergeMap(swipes => combineLatest(swipes.map(swipe => swipe.slideHeight$))));
97
- this.currentSlideHeight$ = combineLatest([this.slideHeights$, this.imageIndex$])
98
- .pipe(map(([slideHeights, imageIndex]) => {
99
- var _a;
100
- const maxHeight = Math.max(...slideHeights);
101
- const currHeight = (_a = slideHeights[imageIndex]) !== null && _a !== void 0 ? _a : maxHeight;
102
- return maxHeight - (maxHeight - currHeight) /* / 2*/;
103
- }));
104
- }
105
- set swipes(value) {
106
- setTimeout(() => this.swipes$.next(value));
107
- }
108
- //#region ImageIndex
109
- get imageIndex() {
110
- return this.imageIndex$.value;
111
- }
112
- set imageIndex(value) {
113
- this.imageIndex$.next(value);
114
- }
115
- ngAfterViewInit() {
116
- this.isViewInited$.next(true);
117
- }
118
- ngOnDestroy() {
119
- this.destroyed$.next(true);
120
- }
121
- animateToIndexByDx(dx) {
122
- combineLatest([this.imageIndex$, this.actualSwipes$]).pipe(take(1))
123
- .subscribe(([imageIndex, actualSwipes]) => {
124
- var _a;
125
- const direction = dx > 0 ? 'left' : 'right';
126
- let newIndex;
127
- if (Math.abs(dx) < this.minimumOffset) {
128
- newIndex = imageIndex;
129
- }
130
- else {
131
- newIndex = imageIndex + (direction === 'right' ? 1 : -1);
132
- }
133
- this.animateToIndex(imageIndex, newIndex, dx, (_a = actualSwipes === null || actualSwipes === void 0 ? void 0 : actualSwipes.length) !== null && _a !== void 0 ? _a : 1);
134
- });
135
- }
136
- animateToIndex(oldIndex, newIndex, dx, totalSlides) {
137
- this.pendingAnimation = this.animationBuilder.build([
138
- style({ 'margin-left': (-(oldIndex + 1) * this.containerElement.nativeElement.clientWidth + dx) + 'px', 'margin-right': ((oldIndex + 1) * this.containerElement.nativeElement.clientWidth - dx) + 'px' }),
139
- animate('500ms ease', style({ 'margin-left': (-(newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px', 'margin-right': ((newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px' })),
140
- ]).create(this.containerElement.nativeElement);
141
- this.pendingAnimation.onDone(() => {
142
- var _a;
143
- // Correct the image index
144
- if (newIndex === -1) {
145
- this.imageIndex$.next(totalSlides - 1);
146
- }
147
- else if (newIndex === totalSlides) {
148
- this.imageIndex$.next(0);
149
- }
150
- else {
151
- this.imageIndex$.next(newIndex);
152
- }
153
- this.startTouch$.next(null);
154
- this.lastTouch$.next(null);
155
- (_a = this.pendingAnimation) === null || _a === void 0 ? void 0 : _a.destroy();
156
- this.pendingAnimation = undefined;
157
- });
158
- this.pendingAnimation.play();
159
- }
160
- onSwipe(dx) {
161
- this.animateToIndexByDx(dx);
162
- }
163
- previous() {
164
- var _a;
165
- (_a = this.pendingAnimation) === null || _a === void 0 ? void 0 : _a.finish();
166
- combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {
167
- setTimeout(() => { var _a; return this.animateToIndex(imageIndex, imageIndex - 1, 0, (_a = actualSwipes === null || actualSwipes === void 0 ? void 0 : actualSwipes.length) !== null && _a !== void 0 ? _a : 1); }, 20);
168
- });
169
- }
170
- next() {
171
- var _a;
172
- (_a = this.pendingAnimation) === null || _a === void 0 ? void 0 : _a.finish();
173
- combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {
174
- setTimeout(() => { var _a; return this.animateToIndex(imageIndex, imageIndex + 1, 0, (_a = actualSwipes === null || actualSwipes === void 0 ? void 0 : actualSwipes.length) !== null && _a !== void 0 ? _a : 1); }, 20);
175
- });
176
- }
177
- goto(index) {
178
- combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {
179
- var _a;
180
- (_a = this.pendingAnimation) === null || _a === void 0 ? void 0 : _a.finish();
181
- setTimeout(() => { var _a; return this.animateToIndex(imageIndex, index, 0, (_a = actualSwipes === null || actualSwipes === void 0 ? void 0 : actualSwipes.length) !== null && _a !== void 0 ? _a : 1); }, 20);
182
- });
183
- }
184
- }
185
- BsSwipeContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwipeContainerDirective, deps: [{ token: i0.ElementRef }, { token: i1.AnimationBuilder }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
186
- BsSwipeContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.7", type: BsSwipeContainerDirective, selector: "[bsSwipeContainer]", inputs: { minimumOffset: "minimumOffset", imageIndex: "imageIndex" }, outputs: { imageIndexChange: "imageIndexChange" }, host: { properties: { "style.margin-left.%": "this.offsetLeft", "style.margin-right.%": "this.offsetRight", "style.margin-top.%": "this.offsetTop", "style.margin-bottom.%": "this.offsetBottom" } }, queries: [{ propertyName: "swipes", predicate: i0.forwardRef(function () { return BsSwipeDirective; }) }], exportAs: ["bsSwipeContainer"], ngImport: i0 });
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwipeContainerDirective, decorators: [{
188
- type: Directive,
189
- args: [{
190
- selector: '[bsSwipeContainer]',
191
- exportAs: 'bsSwipeContainer'
192
- }]
193
- }], ctorParameters: function () {
194
- return [{ type: i0.ElementRef }, { type: i1.AnimationBuilder }, { type: undefined, decorators: [{
195
- type: Inject,
196
- args: [DOCUMENT]
197
- }] }];
198
- }, propDecorators: { offsetLeft: [{
199
- type: HostBinding,
200
- args: ['style.margin-left.%']
201
- }], offsetRight: [{
202
- type: HostBinding,
203
- args: ['style.margin-right.%']
204
- }], offsetTop: [{
205
- type: HostBinding,
206
- args: ['style.margin-top.%']
207
- }], offsetBottom: [{
208
- type: HostBinding,
209
- args: ['style.margin-bottom.%']
210
- }], swipes: [{
211
- type: ContentChildren,
212
- args: [forwardRef(() => BsSwipeDirective)]
213
- }], minimumOffset: [{
214
- type: Input
215
- }], imageIndex: [{
216
- type: Input
217
- }], imageIndexChange: [{
218
- type: Output
219
- }] } });
220
-
221
- class BsSwipeDirective {
222
- constructor(container, element) {
223
- this.container = container;
224
- this.slideHeight$ = new BehaviorSubject(0);
225
- //#region Offside
226
- this.offside = false;
227
- //#endregion
228
- this.alignTopClass = true;
229
- this.element = element;
230
- }
231
- onTouchStart(ev) {
232
- var _a;
233
- if (ev.touches.length === 1) {
234
- ev.preventDefault();
235
- (_a = this.container.pendingAnimation) === null || _a === void 0 ? void 0 : _a.finish();
236
- setTimeout(() => {
237
- this.container.startTouch$.next({
238
- position: {
239
- x: ev.touches[0].clientX,
240
- y: ev.touches[0].clientY,
241
- },
242
- timestamp: Date.now(),
243
- });
244
- this.container.lastTouch$.next({
245
- position: {
246
- x: ev.touches[0].clientX,
247
- y: ev.touches[0].clientY,
248
- },
249
- isTouching: true,
250
- });
251
- }, 20);
252
- }
253
- }
254
- onTouchMove(ev) {
255
- this.container.lastTouch$.next({
256
- position: {
257
- x: ev.touches[0].clientX,
258
- y: ev.touches[0].clientY,
259
- },
260
- isTouching: true,
261
- });
262
- }
263
- onTouchEnd(ev) {
264
- combineLatest([this.container.startTouch$, this.container.lastTouch$])
265
- .pipe(filter(([startTouch, lastTouch]) => !!startTouch && !!lastTouch))
266
- .pipe(take(1))
267
- .subscribe(([startTouch, lastTouch]) => {
268
- if (!!startTouch && !!lastTouch) {
269
- const dx = lastTouch.position.x - startTouch.position.x;
270
- this.container.onSwipe(dx);
271
- }
272
- });
273
- }
274
- ngAfterViewInit() {
275
- this.observer = new ResizeObserver((entries) => {
276
- this.slideHeight$.next(entries[0].contentRect.height);
277
- });
278
- this.observer.observe(this.element.nativeElement);
279
- }
280
- ngOnDestroy() {
281
- if (this.observer) {
282
- this.observer.unobserve(this.element.nativeElement);
283
- this.observer.disconnect();
284
- }
285
- }
286
- }
287
- BsSwipeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwipeDirective, deps: [{ token: BsSwipeContainerDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
288
- BsSwipeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.7", type: BsSwipeDirective, selector: "[bsSwipe]", inputs: { offside: "offside" }, host: { listeners: { "touchstart": "onTouchStart($event)", "touchmove": "onTouchMove($event)", "touchend": "onTouchEnd($event)" }, properties: { "class.align-top": "this.alignTopClass" } }, ngImport: i0 });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwipeDirective, decorators: [{
290
- type: Directive,
291
- args: [{
292
- selector: '[bsSwipe]'
293
- }]
294
- }], ctorParameters: function () { return [{ type: BsSwipeContainerDirective }, { type: i0.ElementRef }]; }, propDecorators: { offside: [{
295
- type: Input
296
- }], alignTopClass: [{
297
- type: HostBinding,
298
- args: ['class.align-top']
299
- }], onTouchStart: [{
300
- type: HostListener,
301
- args: ['touchstart', ['$event']]
302
- }], onTouchMove: [{
303
- type: HostListener,
304
- args: ['touchmove', ['$event']]
305
- }], onTouchEnd: [{
306
- type: HostListener,
307
- args: ['touchend', ['$event']]
308
- }] } });
309
-
310
- class BsSwiperModule {
311
- }
312
- BsSwiperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwiperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
- BsSwiperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: BsSwiperModule, declarations: [BsSwipeDirective, BsSwipeContainerDirective], imports: [CommonModule], exports: [BsSwipeDirective, BsSwipeContainerDirective] });
314
- BsSwiperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwiperModule, imports: [CommonModule] });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsSwiperModule, decorators: [{
316
- type: NgModule,
317
- args: [{
318
- imports: [CommonModule],
319
- declarations: [BsSwipeDirective, BsSwipeContainerDirective],
320
- exports: [BsSwipeDirective, BsSwipeContainerDirective],
321
- }]
322
- }] });
323
-
324
- /**
325
- * Generated bundle index. Do not edit.
326
- */
327
-
328
- export { BsSwipeContainerDirective, BsSwipeDirective, BsSwiperModule };
329
- //# sourceMappingURL=mintplayer-ng-swiper.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintplayer-ng-swiper.mjs","sources":["../../../../libs/mintplayer-ng-swiper/src/lib/directives/swipe-container/swipe-container.directive.ts","../../../../libs/mintplayer-ng-swiper/src/lib/directives/swipe/swipe.directive.ts","../../../../libs/mintplayer-ng-swiper/src/lib/swiper.module.ts","../../../../libs/mintplayer-ng-swiper/src/mintplayer-ng-swiper.ts"],"sourcesContent":["import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';\nimport { DOCUMENT } from '@angular/common';\nimport { AfterViewInit, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, HostBinding, Inject, Input, OnDestroy, Output, QueryList } from '@angular/core';\nimport { BehaviorSubject, combineLatest, filter, map, mergeMap, Observable, Subject, take, takeUntil, takeWhile } from 'rxjs';\nimport { LastTouch } from '../../interfaces/last-touch';\nimport { StartTouch } from '../../interfaces/start-touch';\nimport { BsSwipeDirective } from '../swipe/swipe.directive';\n\n@Directive({\n selector: '[bsSwipeContainer]',\n exportAs: 'bsSwipeContainer'\n})\nexport class BsSwipeContainerDirective implements AfterViewInit, OnDestroy {\n\n constructor(element: ElementRef, private animationBuilder: AnimationBuilder, @Inject(DOCUMENT) document: any) {\n this.containerElement = element;\n this.document = <Document>document;\n this.offset$ = combineLatest([this.startTouch$, this.lastTouch$, this.imageIndex$, this.isViewInited$])\n .pipe(map(([startTouch, lastTouch, imageIndex, isViewInited]) => {\n if (!isViewInited) {\n return (-imageIndex * 100);\n } else if (!!startTouch && !!lastTouch) {\n return (-imageIndex * 100 + (lastTouch.position.x - startTouch.position.x) / this.containerElement.nativeElement.clientWidth * 100);\n } else {\n return (-imageIndex * 100);\n }\n }));\n\n this.padLeft$ = this.swipes$.pipe(map(swipes => {\n if (!swipes) {\n return 0;\n }\n\n let count = 0;\n for (const s of swipes) {\n if (!s.offside) {\n break;\n } else {\n count++;\n }\n }\n return count;\n }));\n\n this.padRight$ = this.swipes$.pipe(map(swipes => {\n if (!swipes) {\n return 0;\n }\n\n let count = 0;\n for (const s of swipes.toArray().reverse()) {\n if (!s.offside) {\n break;\n } else {\n count++;\n }\n }\n return count;\n }));\n\n this.offsetLeft$ = combineLatest([this.offset$, this.padLeft$])\n .pipe(map(([offset, padLeft]) => {\n return offset - padLeft * 100;\n }));\n this.offsetRight$ = combineLatest([this.offset$, this.padLeft$, this.padRight$])\n .pipe(map(([offset, padLeft, padRight]) => {\n return -(offset - padLeft * 100) - (padRight - 1) * 100;\n }));\n this.offsetLeft$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((offsetLeft) => this.offsetLeft = offsetLeft);\n this.offsetRight$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((offsetRight) => this.offsetRight = offsetRight);\n this.imageIndex$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((imageIndex) => this.imageIndexChange.emit(imageIndex));\n\n this.actualSwipes$ = this.swipes$\n .pipe(map(swipes => {\n if (swipes) {\n return swipes.filter(swipe => !swipe.offside);\n } else {\n return [];\n }\n }));\n\n this.slideHeights$ = this.actualSwipes$\n .pipe(filter(swipes => !!swipes))\n // .pipe(map(swipes => <QueryList<BsSwipeDirective>>swipes))\n .pipe(mergeMap(swipes => combineLatest(swipes.map(swipe => swipe.slideHeight$))));\n\n this.currentSlideHeight$ = combineLatest([this.slideHeights$, this.imageIndex$])\n .pipe(map(([slideHeights, imageIndex]) => {\n const maxHeight = Math.max(...slideHeights);\n const currHeight: number = slideHeights[imageIndex] ?? maxHeight;\n return maxHeight - (maxHeight - currHeight)/* / 2*/;\n }));\n }\n\n @HostBinding('style.margin-left.%') offsetLeft: number | null = null;\n @HostBinding('style.margin-right.%') offsetRight: number | null = null;\n @HostBinding('style.margin-top.%') offsetTop: number | null = null;\n @HostBinding('style.margin-bottom.%') offsetBottom: number | null = null;\n @ContentChildren(forwardRef(() => BsSwipeDirective)) set swipes(value: QueryList<BsSwipeDirective>) {\n setTimeout(() => this.swipes$.next(value));\n }\n @Input() minimumOffset = 50;\n\n //#region ImageIndex\n public get imageIndex() {\n return this.imageIndex$.value;\n }\n @Input() public set imageIndex(value: number) {\n this.imageIndex$.next(value);\n }\n @Output() imageIndexChange = new EventEmitter<number>();\n //#endregion\n \n actualSwipes$: Observable<BsSwipeDirective[]>;\n isViewInited$ = new BehaviorSubject<boolean>(false);\n destroyed$ = new Subject();\n startTouch$ = new BehaviorSubject<StartTouch | null>(null);\n lastTouch$ = new BehaviorSubject<LastTouch | null>(null);\n swipes$ = new BehaviorSubject<QueryList<BsSwipeDirective> | null>(null);\n imageIndex$ = new BehaviorSubject<number>(0);\n slideHeights$: Observable<number[]>;\n currentSlideHeight$: Observable<number>;\n pendingAnimation?: AnimationPlayer;\n containerElement: ElementRef<HTMLDivElement>;\n document: Document;\n\n offset$: Observable<number>;\n offsetLeft$: Observable<number>;\n offsetRight$: Observable<number>;\n padLeft$: Observable<number>;\n padRight$: Observable<number>;\n\n ngAfterViewInit() {\n this.isViewInited$.next(true);\n }\n\n ngOnDestroy() {\n this.destroyed$.next(true);\n }\n\n animateToIndexByDx(dx: number) {\n combineLatest([this.imageIndex$, this.actualSwipes$]).pipe(take(1))\n .subscribe(([imageIndex, actualSwipes]) => {\n const direction = dx > 0 ? 'left' : 'right';\n \n let newIndex: number;\n if (Math.abs(dx) < this.minimumOffset) {\n newIndex = imageIndex;\n } else {\n newIndex = imageIndex + (direction === 'right' ? 1 : -1);\n }\n \n this.animateToIndex(imageIndex, newIndex, dx, actualSwipes?.length ?? 1);\n });\n }\n\n animateToIndex(oldIndex: number, newIndex: number, dx: number, totalSlides: number) {\n this.pendingAnimation = this.animationBuilder.build([\n style({ 'margin-left': (-(oldIndex + 1) * this.containerElement.nativeElement.clientWidth + dx) + 'px', 'margin-right': ((oldIndex + 1) * this.containerElement.nativeElement.clientWidth - dx) + 'px' }),\n animate('500ms ease', style({ 'margin-left': (-(newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px', 'margin-right': ((newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px' })),\n ]).create(this.containerElement.nativeElement);\n this.pendingAnimation.onDone(() => {\n // Correct the image index\n if (newIndex === -1) {\n this.imageIndex$.next(totalSlides - 1);\n } else if (newIndex === totalSlides) {\n this.imageIndex$.next(0);\n } else {\n this.imageIndex$.next(newIndex);\n }\n this.startTouch$.next(null);\n this.lastTouch$.next(null);\n this.pendingAnimation?.destroy();\n this.pendingAnimation = undefined;\n });\n this.pendingAnimation.play();\n }\n\n onSwipe(dx: number) {\n this.animateToIndexByDx(dx);\n }\n\n previous() {\n this.pendingAnimation?.finish();\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n setTimeout(() => this.animateToIndex(imageIndex, imageIndex - 1, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n next() {\n this.pendingAnimation?.finish();\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n setTimeout(() => this.animateToIndex(imageIndex, imageIndex + 1, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n goto(index: number) {\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n this.pendingAnimation?.finish();\n setTimeout(() => this.animateToIndex(imageIndex, index, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n}\n","import { AfterViewInit, Directive, ElementRef, HostBinding, HostListener, Input, OnDestroy } from \"@angular/core\";\nimport { BehaviorSubject, combineLatest, filter, take } from \"rxjs\";\nimport { BsSwipeContainerDirective } from \"../swipe-container/swipe-container.directive\";\n\n@Directive({\n selector: '[bsSwipe]'\n})\nexport class BsSwipeDirective implements AfterViewInit, OnDestroy {\n\n constructor(private container: BsSwipeContainerDirective, element: ElementRef<HTMLElement>) {\n this.element = element;\n }\n\n element: ElementRef<HTMLElement>;\n observer?: ResizeObserver;\n public slideHeight$ = new BehaviorSubject<number>(0);\n\n //#region Offside\n @Input() public offside = false;\n //#endregion\n\n @HostBinding('class.align-top') alignTopClass = true;\n @HostListener('touchstart', ['$event'])\n onTouchStart(ev: TouchEvent) {\n if (ev.touches.length === 1) {\n ev.preventDefault();\n this.container.pendingAnimation?.finish();\n\n setTimeout(() => {\n this.container.startTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n timestamp: Date.now(),\n });\n this.container.lastTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n isTouching: true,\n });\n }, 20);\n }\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchMove(ev: TouchEvent) {\n this.container.lastTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n isTouching: true,\n });\n }\n\n @HostListener('touchend', ['$event'])\n onTouchEnd(ev: TouchEvent) {\n combineLatest([this.container.startTouch$, this.container.lastTouch$])\n .pipe(filter(([startTouch, lastTouch]) => !!startTouch && !!lastTouch))\n .pipe(take(1))\n .subscribe(([startTouch, lastTouch]) => {\n if (!!startTouch && !!lastTouch) {\n const dx = lastTouch.position.x - startTouch.position.x;\n this.container.onSwipe(dx);\n }\n });\n }\n\n ngAfterViewInit() {\n this.observer = new ResizeObserver((entries) => {\n this.slideHeight$.next(entries[0].contentRect.height);\n });\n this.observer.observe(this.element.nativeElement);\n }\n\n ngOnDestroy() {\n if (this.observer) {\n this.observer.unobserve(this.element.nativeElement);\n this.observer.disconnect();\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsSwipeDirective } from './directives/swipe/swipe.directive';\nimport { BsSwipeContainerDirective } from './directives/swipe-container/swipe-container.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BsSwipeDirective, BsSwipeContainerDirective],\n exports: [BsSwipeDirective, BsSwipeContainerDirective],\n})\nexport class BsSwiperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsSwipeContainerDirective"],"mappings":";;;;;;;MAYa,yBAAyB,CAAA;AAEpC,IAAA,WAAA,CAAY,OAAmB,EAAU,gBAAkC,EAAoB,QAAa,EAAA;AAAnE,QAAA,IAAgB,CAAA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AAA;gBAE9B,YAAY,EAAA,CAAA;sBADX,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,CAAA;gBA0BtC,WAAW,EAAA,CAAA;sBADV,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAA;gBAYrC,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAA;;;MChDzB,cAAc,CAAA;;2GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAd,cAAc,EAAA,YAAA,EAAA,CAHV,gBAAgB,EAAE,yBAAyB,aADhD,YAAY,CAAA,EAAA,OAAA,EAAA,CAEZ,gBAAgB,EAAE,yBAAyB,CAAA,EAAA,CAAA,CAAA;AAE1C,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAJf,YAAY,CAAA,EAAA,CAAA,CAAA;2FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;AAC3D,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;iBACvD,CAAA;;;ACTD;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintplayer-ng-swiper.mjs","sources":["../../../../libs/mintplayer-ng-swiper/src/lib/directives/swipe-container/swipe-container.directive.ts","../../../../libs/mintplayer-ng-swiper/src/lib/directives/swipe/swipe.directive.ts","../../../../libs/mintplayer-ng-swiper/src/lib/swiper.module.ts","../../../../libs/mintplayer-ng-swiper/src/mintplayer-ng-swiper.ts"],"sourcesContent":["import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';\nimport { DOCUMENT } from '@angular/common';\nimport { AfterViewInit, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, HostBinding, Inject, Input, OnDestroy, Output, QueryList } from '@angular/core';\nimport { BehaviorSubject, combineLatest, filter, map, mergeMap, Observable, Subject, take, takeUntil, takeWhile } from 'rxjs';\nimport { LastTouch } from '../../interfaces/last-touch';\nimport { StartTouch } from '../../interfaces/start-touch';\nimport { BsSwipeDirective } from '../swipe/swipe.directive';\n\n@Directive({\n selector: '[bsSwipeContainer]',\n exportAs: 'bsSwipeContainer'\n})\nexport class BsSwipeContainerDirective implements AfterViewInit, OnDestroy {\n\n constructor(element: ElementRef, private animationBuilder: AnimationBuilder, @Inject(DOCUMENT) document: any) {\n this.containerElement = element;\n this.document = <Document>document;\n this.offset$ = combineLatest([this.startTouch$, this.lastTouch$, this.imageIndex$, this.isViewInited$])\n .pipe(map(([startTouch, lastTouch, imageIndex, isViewInited]) => {\n if (!isViewInited) {\n return (-imageIndex * 100);\n } else if (!!startTouch && !!lastTouch) {\n return (-imageIndex * 100 + (lastTouch.position.x - startTouch.position.x) / this.containerElement.nativeElement.clientWidth * 100);\n } else {\n return (-imageIndex * 100);\n }\n }));\n\n this.padLeft$ = this.swipes$.pipe(map(swipes => {\n if (!swipes) {\n return 0;\n }\n\n let count = 0;\n for (const s of swipes) {\n if (!s.offside) {\n break;\n } else {\n count++;\n }\n }\n return count;\n }));\n\n this.padRight$ = this.swipes$.pipe(map(swipes => {\n if (!swipes) {\n return 0;\n }\n\n let count = 0;\n for (const s of swipes.toArray().reverse()) {\n if (!s.offside) {\n break;\n } else {\n count++;\n }\n }\n return count;\n }));\n\n this.offsetLeft$ = combineLatest([this.offset$, this.padLeft$])\n .pipe(map(([offset, padLeft]) => {\n return offset - padLeft * 100;\n }));\n this.offsetRight$ = combineLatest([this.offset$, this.padLeft$, this.padRight$])\n .pipe(map(([offset, padLeft, padRight]) => {\n return -(offset - padLeft * 100) - (padRight - 1) * 100;\n }));\n this.offsetLeft$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((offsetLeft) => this.offsetLeft = offsetLeft);\n this.offsetRight$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((offsetRight) => this.offsetRight = offsetRight);\n this.imageIndex$\n .pipe(takeUntil(this.destroyed$))\n .subscribe((imageIndex) => this.imageIndexChange.emit(imageIndex));\n\n this.actualSwipes$ = this.swipes$\n .pipe(map(swipes => {\n if (swipes) {\n return swipes.filter(swipe => !swipe.offside);\n } else {\n return [];\n }\n }));\n\n this.slideHeights$ = this.actualSwipes$\n .pipe(filter(swipes => !!swipes))\n // .pipe(map(swipes => <QueryList<BsSwipeDirective>>swipes))\n .pipe(mergeMap(swipes => combineLatest(swipes.map(swipe => swipe.slideHeight$))));\n\n this.currentSlideHeight$ = combineLatest([this.slideHeights$, this.imageIndex$])\n .pipe(map(([slideHeights, imageIndex]) => {\n const maxHeight = Math.max(...slideHeights);\n const currHeight: number = slideHeights[imageIndex] ?? maxHeight;\n return maxHeight - (maxHeight - currHeight)/* / 2*/;\n }));\n }\n\n @HostBinding('style.margin-left.%') offsetLeft: number | null = null;\n @HostBinding('style.margin-right.%') offsetRight: number | null = null;\n @HostBinding('style.margin-top.%') offsetTop: number | null = null;\n @HostBinding('style.margin-bottom.%') offsetBottom: number | null = null;\n @ContentChildren(forwardRef(() => BsSwipeDirective)) set swipes(value: QueryList<BsSwipeDirective>) {\n setTimeout(() => this.swipes$.next(value));\n }\n @Input() minimumOffset = 50;\n\n //#region ImageIndex\n public get imageIndex() {\n return this.imageIndex$.value;\n }\n @Input() public set imageIndex(value: number) {\n this.imageIndex$.next(value);\n }\n @Output() imageIndexChange = new EventEmitter<number>();\n //#endregion\n \n actualSwipes$: Observable<BsSwipeDirective[]>;\n isViewInited$ = new BehaviorSubject<boolean>(false);\n destroyed$ = new Subject();\n startTouch$ = new BehaviorSubject<StartTouch | null>(null);\n lastTouch$ = new BehaviorSubject<LastTouch | null>(null);\n swipes$ = new BehaviorSubject<QueryList<BsSwipeDirective> | null>(null);\n imageIndex$ = new BehaviorSubject<number>(0);\n slideHeights$: Observable<number[]>;\n currentSlideHeight$: Observable<number>;\n pendingAnimation?: AnimationPlayer;\n containerElement: ElementRef<HTMLDivElement>;\n document: Document;\n\n offset$: Observable<number>;\n offsetLeft$: Observable<number>;\n offsetRight$: Observable<number>;\n padLeft$: Observable<number>;\n padRight$: Observable<number>;\n\n ngAfterViewInit() {\n this.isViewInited$.next(true);\n }\n\n ngOnDestroy() {\n this.destroyed$.next(true);\n }\n\n animateToIndexByDx(dx: number) {\n combineLatest([this.imageIndex$, this.actualSwipes$]).pipe(take(1))\n .subscribe(([imageIndex, actualSwipes]) => {\n const direction = dx > 0 ? 'left' : 'right';\n \n let newIndex: number;\n if (Math.abs(dx) < this.minimumOffset) {\n newIndex = imageIndex;\n } else {\n newIndex = imageIndex + (direction === 'right' ? 1 : -1);\n }\n \n this.animateToIndex(imageIndex, newIndex, dx, actualSwipes?.length ?? 1);\n });\n }\n\n animateToIndex(oldIndex: number, newIndex: number, dx: number, totalSlides: number) {\n this.pendingAnimation = this.animationBuilder.build([\n style({ 'margin-left': (-(oldIndex + 1) * this.containerElement.nativeElement.clientWidth + dx) + 'px', 'margin-right': ((oldIndex + 1) * this.containerElement.nativeElement.clientWidth - dx) + 'px' }),\n animate('500ms ease', style({ 'margin-left': (-(newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px', 'margin-right': ((newIndex + 1) * this.containerElement.nativeElement.clientWidth) + 'px' })),\n ]).create(this.containerElement.nativeElement);\n this.pendingAnimation.onDone(() => {\n // Correct the image index\n if (newIndex === -1) {\n this.imageIndex$.next(totalSlides - 1);\n } else if (newIndex === totalSlides) {\n this.imageIndex$.next(0);\n } else {\n this.imageIndex$.next(newIndex);\n }\n this.startTouch$.next(null);\n this.lastTouch$.next(null);\n this.pendingAnimation?.destroy();\n this.pendingAnimation = undefined;\n });\n this.pendingAnimation.play();\n }\n\n onSwipe(dx: number) {\n this.animateToIndexByDx(dx);\n }\n\n previous() {\n this.pendingAnimation?.finish();\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n setTimeout(() => this.animateToIndex(imageIndex, imageIndex - 1, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n next() {\n this.pendingAnimation?.finish();\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n setTimeout(() => this.animateToIndex(imageIndex, imageIndex + 1, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n goto(index: number) {\n combineLatest([this.actualSwipes$, this.imageIndex$]).pipe(take(1)).subscribe(([actualSwipes, imageIndex]) => {\n this.pendingAnimation?.finish();\n setTimeout(() => this.animateToIndex(imageIndex, index, 0, actualSwipes?.length ?? 1), 20);\n });\n }\n\n}\n","import { AfterViewInit, Directive, ElementRef, HostBinding, HostListener, Input, OnDestroy } from \"@angular/core\";\nimport { BehaviorSubject, combineLatest, filter, take } from \"rxjs\";\nimport { BsSwipeContainerDirective } from \"../swipe-container/swipe-container.directive\";\n\n@Directive({\n selector: '[bsSwipe]'\n})\nexport class BsSwipeDirective implements AfterViewInit, OnDestroy {\n\n constructor(private container: BsSwipeContainerDirective, element: ElementRef<HTMLElement>) {\n this.element = element;\n }\n\n element: ElementRef<HTMLElement>;\n observer?: ResizeObserver;\n public slideHeight$ = new BehaviorSubject<number>(0);\n\n //#region Offside\n @Input() public offside = false;\n //#endregion\n\n @HostBinding('class.align-top') alignTopClass = true;\n @HostListener('touchstart', ['$event'])\n onTouchStart(ev: TouchEvent) {\n if (ev.touches.length === 1) {\n ev.preventDefault();\n this.container.pendingAnimation?.finish();\n\n setTimeout(() => {\n this.container.startTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n timestamp: Date.now(),\n });\n this.container.lastTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n isTouching: true,\n });\n }, 20);\n }\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchMove(ev: TouchEvent) {\n this.container.lastTouch$.next({\n position: {\n x: ev.touches[0].clientX,\n y: ev.touches[0].clientY,\n },\n isTouching: true,\n });\n }\n\n @HostListener('touchend', ['$event'])\n onTouchEnd(ev: TouchEvent) {\n combineLatest([this.container.startTouch$, this.container.lastTouch$])\n .pipe(filter(([startTouch, lastTouch]) => !!startTouch && !!lastTouch))\n .pipe(take(1))\n .subscribe(([startTouch, lastTouch]) => {\n if (!!startTouch && !!lastTouch) {\n const dx = lastTouch.position.x - startTouch.position.x;\n this.container.onSwipe(dx);\n }\n });\n }\n\n ngAfterViewInit() {\n this.observer = new ResizeObserver((entries) => {\n this.slideHeight$.next(entries[0].contentRect.height);\n });\n this.observer.observe(this.element.nativeElement);\n }\n\n ngOnDestroy() {\n if (this.observer) {\n this.observer.unobserve(this.element.nativeElement);\n this.observer.disconnect();\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsSwipeDirective } from './directives/swipe/swipe.directive';\nimport { BsSwipeContainerDirective } from './directives/swipe-container/swipe-container.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BsSwipeDirective, BsSwipeContainerDirective],\n exports: [BsSwipeDirective, BsSwipeContainerDirective],\n})\nexport class BsSwiperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsSwipeContainerDirective"],"mappings":";;;;;;;MAYa,yBAAyB,CAAA;AAEpC,IAAA,WAAA,CAAY,OAAmB,EAAU,gBAAkC,EAAoB,QAAa,EAAA;QAAnE,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAsFvC,IAAU,CAAA,UAAA,GAAkB,IAAI,CAAC;QAChC,IAAW,CAAA,WAAA,GAAkB,IAAI,CAAC;QACpC,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