infinity-forge 0.54.7 → 0.55.1

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.
Files changed (26) hide show
  1. package/dist/ui/components/carousel/interfaces.d.ts +2 -1
  2. package/dist/ui/components/carousel/swiper/types/index.d.ts +5 -0
  3. package/dist/ui/components/carousel/swiper/types/index.js +27 -0
  4. package/dist/ui/components/carousel/swiper/types/index.js.map +1 -0
  5. package/dist/ui/components/carousel/swiper/types/shared.d.ts +14 -0
  6. package/dist/ui/components/carousel/swiper/types/shared.js +3 -0
  7. package/dist/ui/components/carousel/swiper/types/shared.js.map +1 -0
  8. package/dist/ui/components/carousel/swiper/types/swiper-class.d.ts +415 -0
  9. package/dist/ui/components/carousel/swiper/types/swiper-class.js +4 -0
  10. package/dist/ui/components/carousel/swiper/types/swiper-class.js.map +1 -0
  11. package/dist/ui/components/carousel/swiper/types/swiper-events.d.ts +162 -0
  12. package/dist/ui/components/carousel/swiper/types/swiper-events.js +3 -0
  13. package/dist/ui/components/carousel/swiper/types/swiper-events.js.map +1 -0
  14. package/dist/ui/components/carousel/swiper/types/swiper-options.d.ts +1092 -0
  15. package/dist/ui/components/carousel/swiper/types/swiper-options.js +3 -0
  16. package/dist/ui/components/carousel/swiper/types/swiper-options.js.map +1 -0
  17. package/dist/ui/components/form/text-editor/index.js.map +1 -1
  18. package/dist/ui/components/form/text-editor/styles.js +1 -1
  19. package/dist/ui/components/form/text-editor/styles.js.map +1 -1
  20. package/dist/ui/hooks/use-query/hook.d.ts +3 -3
  21. package/dist/ui/hooks/use-query/hook.js +50 -45
  22. package/dist/ui/hooks/use-query/hook.js.map +1 -1
  23. package/dist/ui/hooks/use-query/interfaces.d.ts +7 -2
  24. package/dist/ui/hooks/use-query/store.js +2 -1
  25. package/dist/ui/hooks/use-query/store.js.map +1 -1
  26. package/package.json +5 -5
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { SwiperOptions } from "./swiper/types/index.js";
2
3
  export interface CarouselProps<T = any> {
3
4
  id: string;
4
5
  items: T[];
5
- config?: any;
6
+ config?: SwiperOptions;
6
7
  Component: React.ComponentType<T>;
7
8
  }
@@ -0,0 +1,5 @@
1
+ export * from './shared.js';
2
+ export { default as Swiper } from './swiper-class.js';
3
+ export * from './swiper-events.js';
4
+ export * from './swiper-options.js';
5
+ export * from './modules/public-api';
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.Swiper = void 0;
21
+ __exportStar(require("./shared.js"), exports);
22
+ var swiper_class_1 = require("./swiper-class.js");
23
+ Object.defineProperty(exports, "Swiper", { enumerable: true, get: function () { return __importDefault(swiper_class_1).default; } });
24
+ __exportStar(require("./swiper-events.js"), exports);
25
+ __exportStar(require("./swiper-options.js"), exports);
26
+ __exportStar(require("./modules/public-api"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAAmD;AAA1C,uHAAA,OAAO,OAAU;AAC1B,kDAAgC;AAChC,mDAAiC;AACjC,uDAAqC"}
@@ -0,0 +1,14 @@
1
+ import type { Swiper } from './index.js';
2
+ export interface CSSSelector extends String {
3
+ }
4
+ export type SwiperModule = (options: {
5
+ params: Swiper['params'];
6
+ swiper: Swiper;
7
+ extendParams: (obj: {
8
+ [name: string]: any;
9
+ }) => void;
10
+ on: Swiper['on'];
11
+ once: Swiper['once'];
12
+ off: Swiper['off'];
13
+ emit: Swiper['emit'];
14
+ }) => void;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/types/shared.ts"],"names":[],"mappings":""}
@@ -0,0 +1,415 @@
1
+ import type { SwiperOptions } from './swiper-options.js';
2
+ import type { CSSSelector, SwiperModule } from './shared.js';
3
+ import type { SwiperEvents } from './swiper-events.js';
4
+ import type { A11yMethods } from './modules/a11y.js';
5
+ import type { AutoplayMethods } from './modules/autoplay.js';
6
+ import type { ControllerMethods } from './modules/controller.js';
7
+ import type { CoverflowEffectMethods } from './modules/effect-coverflow.js';
8
+ import type { CubeEffectMethods } from './modules/effect-cube.js';
9
+ import type { FadeEffectMethods } from './modules/effect-fade.js';
10
+ import type { FlipEffectMethods } from './modules/effect-flip.js';
11
+ import type { CreativeEffectMethods } from './modules/effect-creative.js';
12
+ import type { CardsEffectMethods } from './modules/effect-cards.js';
13
+ import type { HashNavigationMethods } from './modules/hash-navigation.js';
14
+ import type { HistoryMethods } from './modules/history.js';
15
+ import type { KeyboardMethods } from './modules/keyboard.js';
16
+ import type { MousewheelMethods } from './modules/mousewheel.js';
17
+ import type { NavigationMethods } from './modules/navigation.js';
18
+ import type { PaginationMethods } from './modules/pagination.js';
19
+ import type { ParallaxMethods } from './modules/parallax.js';
20
+ import type { ScrollbarMethods } from './modules/scrollbar.js';
21
+ import type { ThumbsMethods } from './modules/thumbs.js';
22
+ import type { VirtualMethods } from './modules/virtual.js';
23
+ import type { ZoomMethods } from './modules/zoom.js';
24
+ import type { FreeModeMethods } from './modules/free-mode.js';
25
+ import type { ManipulationMethods } from './modules/manipulation.js';
26
+ interface SwiperClass<Events> {
27
+ /** Add event handler */
28
+ on<E extends keyof Events>(event: E, handler: Events[E]): void;
29
+ /** Add event handler that will be removed after it was fired */
30
+ once<E extends keyof Events>(event: E, handler: Events[E]): void;
31
+ /** Remove event handler */
32
+ off<E extends keyof Events>(event: E, handler: Events[E]): void;
33
+ /** Remove all handlers for specified event */
34
+ off<E extends keyof Events>(event: E): void;
35
+ /** Fire event on instance */
36
+ emit<E extends keyof Events>(event: E, ...args: any[]): void;
37
+ }
38
+ interface Swiper extends SwiperClass<SwiperEvents> {
39
+ /**
40
+ * Object with passed initialization parameters
41
+ */
42
+ params: SwiperOptions;
43
+ /**
44
+ * Object with original initialization parameters
45
+ */
46
+ originalParams: SwiperOptions;
47
+ /**
48
+ * Slider container HTML element
49
+ */
50
+ el: HTMLElement;
51
+ /**
52
+ * Wrapper HTML element
53
+ */
54
+ wrapperEl: HTMLElement;
55
+ /**
56
+ * Array of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]`
57
+ */
58
+ slides: HTMLElement[];
59
+ /**
60
+ * !INTERNAL
61
+ */
62
+ loopedSlides: number | null;
63
+ /**
64
+ * Width of container
65
+ */
66
+ width: number;
67
+ /**
68
+ * Height of container
69
+ */
70
+ height: number;
71
+ /**
72
+ * Current value of wrapper translate
73
+ */
74
+ translate: number;
75
+ /**
76
+ * Current progress of wrapper translate (from 0 to 1)
77
+ */
78
+ progress: number;
79
+ /**
80
+ * Index number of currently active slide
81
+ *
82
+ * @note Note, that in loop mode active index value will be always shifted on a number of looped slides
83
+ */
84
+ activeIndex: number;
85
+ /**
86
+ * Index number of currently active slide considering rearranged slides in loop mode
87
+ */
88
+ realIndex: number;
89
+ /**
90
+ * Index number of previously active slide
91
+ */
92
+ previousIndex: number;
93
+ /**
94
+ * Index number of current snap in `snapGrid`
95
+ */
96
+ snapIndex: number;
97
+ /**
98
+ * Slides snap grid
99
+ */
100
+ snapGrid: number[];
101
+ /**
102
+ * `true` if slider on most "left"/"top" position
103
+ */
104
+ isBeginning: boolean;
105
+ /**
106
+ * `true` if slider on most "right"/"bottom" position
107
+ */
108
+ isEnd: boolean;
109
+ /**
110
+ * `true` if slide is "locked" (by `watchOverflow`) and slides can not be, e.g. when amount of slides is less that slides per view
111
+ */
112
+ isLocked: boolean;
113
+ /**
114
+ * `true` if swiper is in transition
115
+ */
116
+ animating: boolean;
117
+ /**
118
+ * Object with the following touch event properties:
119
+ *
120
+ * - `swiper.touches.startX`
121
+ * - `swiper.touches.startY`
122
+ * - `swiper.touches.currentX`
123
+ * - `swiper.touches.currentY`
124
+ * - `swiper.touches.diff`
125
+ */
126
+ touches: {
127
+ startX: number;
128
+ startY: number;
129
+ currentX: number;
130
+ currentY: number;
131
+ diff: number;
132
+ };
133
+ /**
134
+ * Index number of last clicked slide
135
+ */
136
+ clickedIndex: number;
137
+ /**
138
+ * Link to last clicked slide (HTMLElement)
139
+ */
140
+ clickedSlide: HTMLElement;
141
+ /**
142
+ * Disable / enable ability to slide to the next slides by assigning `false` / `true` to this property
143
+ */
144
+ allowSlideNext: boolean;
145
+ /**
146
+ * Disable / enable ability to slide to the previous slides by assigning `false` / `true` to this property
147
+ */
148
+ allowSlidePrev: boolean;
149
+ /**
150
+ * Disable / enable ability move slider by grabbing it with mouse or by touching it with finger (on touch screens) by assigning `false` / `true` to this property
151
+ */
152
+ allowTouchMove: boolean;
153
+ /**
154
+ * Direction of sliding
155
+ */
156
+ swipeDirection: 'prev' | 'next';
157
+ /**
158
+ * !INTERNAL
159
+ */
160
+ rtlTranslate: boolean;
161
+ /**
162
+ * Disable Swiper (if it was enabled). When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
163
+ *
164
+ */
165
+ disable(): void;
166
+ /**
167
+ * Enable Swiper (if it was disabled)
168
+ *
169
+ */
170
+ enable(): void;
171
+ /**
172
+ * Set Swiper translate progress (from 0 to 1). Where 0 - its initial position (offset) on first slide, and 1 - its maximum position (offset) on last slide
173
+ *
174
+ * @param progress Swiper translate progress (from 0 to 1).
175
+ * @param speed Transition duration (in ms).
176
+ */
177
+ setProgress(progress: number, speed?: number): void;
178
+ /**
179
+ * Run transition to next slide.
180
+ *
181
+ * @param speed Transition duration (in ms).
182
+ * @param runCallbacks Set it to false (by default it is true) and transition will
183
+ * not produce transition events.
184
+ */
185
+ slideNext(speed?: number, runCallbacks?: boolean): boolean;
186
+ /**
187
+ * Run transition to previous slide.
188
+ *
189
+ * @param speed Transition duration (in ms).
190
+ * @param runCallbacks Set it to false (by default it is true) and transition will
191
+ * not produce transition events.
192
+ */
193
+ slidePrev(speed?: number, runCallbacks?: boolean): boolean;
194
+ /**
195
+ * Run transition to the slide with index number equal to 'index' parameter for the
196
+ * duration equal to 'speed' parameter.
197
+ *
198
+ * @param index Index number of slide.
199
+ * @param speed Transition duration (in ms).
200
+ * @param runCallbacks Set it to false (by default it is true) and transition will
201
+ * not produce transition events.
202
+ */
203
+ slideTo(index: number, speed?: number, runCallbacks?: boolean): boolean;
204
+ /**
205
+ * Does the same as .slideTo but for the case when used with enabled loop. So this
206
+ * method will slide to slides with realIndex matching to passed index
207
+ *
208
+ * @param index Index number of slide.
209
+ * @param speed Transition duration (in ms).
210
+ * @param runCallbacks Set it to false (by default it is true) and transition will
211
+ * not produce transition events.
212
+ */
213
+ slideToLoop(index: number, speed?: number, runCallbacks?: boolean): Swiper;
214
+ /**
215
+ * Reset swiper position to currently active slide for the duration equal to 'speed'
216
+ * parameter.
217
+ *
218
+ * @param speed Transition duration (in ms).
219
+ * @param runCallbacks Set it to false (by default it is true) and transition will
220
+ * not produce transition events.
221
+ */
222
+ slideReset(speed?: number, runCallbacks?: boolean): boolean;
223
+ /**
224
+ * Reset swiper position to closest slide/snap point for the duration equal to 'speed' parameter.
225
+ *
226
+ * @param speed Transition duration (in ms).
227
+ * @param runCallbacks Set it to false (by default it is true) and transition will
228
+ * not produce transition events.
229
+ */
230
+ slideToClosest(speed?: number, runCallbacks?: boolean): boolean;
231
+ /**
232
+ * Get dynamically calculated amount of slides per view, useful only when slidesPerView set to `auto`
233
+ *
234
+ */
235
+ slidesPerViewDynamic(): number;
236
+ /**
237
+ * Force swiper to update its height (when autoHeight enabled) for the duration equal to
238
+ * 'speed' parameter
239
+ *
240
+ * @param speed Transition duration (in ms).
241
+ */
242
+ updateAutoHeight(speed?: number): void;
243
+ /**
244
+ * You should call it after you add/remove slides
245
+ * manually, or after you hide/show it, or do any
246
+ * custom DOM modifications with Swiper
247
+ * This method also includes subcall of the following
248
+ * methods which you can use separately:
249
+ */
250
+ update(): void;
251
+ /**
252
+ * recalculate size of swiper container
253
+ */
254
+ updateSize(): void;
255
+ /**
256
+ * recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
257
+ */
258
+ updateSlides(): void;
259
+ /**
260
+ * recalculate swiper progress
261
+ */
262
+ updateProgress(): void;
263
+ /**
264
+ * update active/prev/next classes on slides and bullets
265
+ */
266
+ updateSlidesClasses(): void;
267
+ /**
268
+ * Changes slider direction from horizontal to vertical and back.
269
+ *
270
+ * @param direction New direction. If not specified, then will automatically changed to opposite direction
271
+ * @param needUpdate Will call swiper.update(). Default true
272
+ */
273
+ changeDirection(direction?: 'horizontal' | 'vertical', needUpdate?: boolean): void;
274
+ /**
275
+ * Changes slider language
276
+ *
277
+ * @param direction New direction. Should be `rtl` or `ltr`
278
+ */
279
+ changeLanguageDirection(direction: 'rtl' | 'ltr'): void;
280
+ /**
281
+ * Detach all events listeners
282
+ */
283
+ detachEvents(): void;
284
+ /**
285
+ * Attach all events listeners again
286
+ */
287
+ attachEvents(): void;
288
+ /**
289
+ * !INTERNAL
290
+ */
291
+ loopCreate(): void;
292
+ /**
293
+ * !INTERNAL
294
+ */
295
+ loopDestroy(): void;
296
+ /**
297
+ * Initialize slider
298
+ */
299
+ init(el?: HTMLElement): Swiper;
300
+ /**
301
+ * Destroy slider instance and detach all events listeners
302
+ *
303
+ * @param deleteInstance Set it to false (by default it is true) to not to delete Swiper instance
304
+ * @param cleanStyles Set it to true (by default it is true) and all custom styles will be removed from slides, wrapper and container.
305
+ * Useful if you need to destroy Swiper and to init again with new options or in different direction
306
+ */
307
+ destroy(deleteInstance?: boolean, cleanStyles?: boolean): void;
308
+ /**
309
+ * Set custom css3 transform's translate value for swiper wrapper
310
+ */
311
+ setTranslate(translate: any): void;
312
+ /**
313
+ * Get current value of swiper wrapper css3 transform translate
314
+ */
315
+ getTranslate(): any;
316
+ /**
317
+ * Animate custom css3 transform's translate value for swiper wrapper
318
+ *
319
+ * @param translate Translate value (in px)
320
+ * @param speed Transition duration (in ms)
321
+ * @param runCallbacks Set it to false (by default it is true) and transition will not produce transition events
322
+ * @param translateBounds Set it to false (by default it is true) and transition value can extend beyond min and max translate
323
+ *
324
+ */
325
+ translateTo(translate: number, speed: number, runCallbacks?: boolean, translateBounds?: boolean): any;
326
+ /**
327
+ * Unset grab cursor
328
+ */
329
+ unsetGrabCursor(): void;
330
+ /**
331
+ * Set grab cursor
332
+ */
333
+ setGrabCursor(): void;
334
+ /**
335
+ * Add event listener that will be fired on all events
336
+ */
337
+ onAny(handler: (eventName: string, ...args: any[]) => void): void;
338
+ /**
339
+ * Remove event listener that will be fired on all events
340
+ */
341
+ offAny(handler: (eventName: string, ...args: any[]) => void): void;
342
+ /**
343
+ * !INTERNAL
344
+ */
345
+ isHorizontal(): boolean;
346
+ /**
347
+ * !INTERNAL
348
+ */
349
+ getBreakpoint(breakpoints: SwiperOptions['breakpoints']): string;
350
+ /**
351
+ * !INTERNAL
352
+ */
353
+ setBreakpoint(): void;
354
+ /**
355
+ * !INTERNAL
356
+ */
357
+ currentBreakpoint: any;
358
+ /**
359
+ * !INTERNAL
360
+ */
361
+ destroyed: boolean;
362
+ /**
363
+ * !INTERNAL
364
+ */
365
+ modules: Array<SwiperModule>;
366
+ a11y: A11yMethods;
367
+ autoplay: AutoplayMethods;
368
+ controller: ControllerMethods;
369
+ coverflowEffect: CoverflowEffectMethods;
370
+ cubeEffect: CubeEffectMethods;
371
+ fadeEffect: FadeEffectMethods;
372
+ flipEffect: FlipEffectMethods;
373
+ creativeEffect: CreativeEffectMethods;
374
+ cardsEffect: CardsEffectMethods;
375
+ hashNavigation: HashNavigationMethods;
376
+ history: HistoryMethods;
377
+ keyboard: KeyboardMethods;
378
+ mousewheel: MousewheelMethods;
379
+ navigation: NavigationMethods;
380
+ pagination: PaginationMethods;
381
+ parallax: ParallaxMethods;
382
+ scrollbar: ScrollbarMethods;
383
+ thumbs: ThumbsMethods;
384
+ virtual: VirtualMethods;
385
+ zoom: ZoomMethods;
386
+ freeMode: FreeModeMethods;
387
+ }
388
+ interface Swiper extends ManipulationMethods {
389
+ }
390
+ declare class Swiper implements Swiper {
391
+ /**
392
+ * Constructs a new Swiper instance.
393
+ *
394
+ * @param container Where Swiper applies to.
395
+ * @param options Instance options.
396
+ */
397
+ constructor(container: CSSSelector | HTMLElement, options?: SwiperOptions);
398
+ /**
399
+ * Installs modules on Swiper in runtime.
400
+ */
401
+ static use(modules: SwiperModule[]): void;
402
+ /**
403
+ * Swiper default options
404
+ */
405
+ static defaults: SwiperOptions;
406
+ /**
407
+ * Extend global Swiper defaults
408
+ */
409
+ static extendDefaults(options: SwiperOptions): void;
410
+ /**
411
+ * Object with global Swiper extended options
412
+ */
413
+ static extendedDefaults: SwiperOptions;
414
+ }
415
+ export default Swiper;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = Swiper;
4
+ //# sourceMappingURL=swiper-class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swiper-class.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/types/swiper-class.ts"],"names":[],"mappings":";;AA2eA,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,162 @@
1
+ import type { SwiperOptions } from './swiper-options.js';
2
+ import type Swiper from './swiper-class.js';
3
+ import type { A11yEvents } from './modules/a11y';
4
+ import type { AutoplayEvents } from './modules/autoplay';
5
+ import type { ControllerEvents } from './modules/controller';
6
+ import type { CoverflowEffectEvents } from './modules/effect-coverflow';
7
+ import type { CubeEffectEvents } from './modules/effect-cube';
8
+ import type { FadeEffectEvents } from './modules/effect-fade';
9
+ import type { FlipEffectEvents } from './modules/effect-flip';
10
+ import type { CreativeEffectEvents } from './modules/effect-creative';
11
+ import type { CardsEffectEvents } from './modules/effect-cards';
12
+ import type { HashNavigationEvents } from './modules/hash-navigation';
13
+ export type SwiperEvents = {
14
+ init: (swiper: Swiper) => any;
15
+ beforeDestroy: (swiper: Swiper) => void;
16
+ slidesUpdated: (swiper: Swiper) => void;
17
+ slideChange: (swiper: Swiper) => void;
18
+ slideChangeTransitionStart: (swiper: Swiper) => void;
19
+ slideChangeTransitionEnd: (swiper: Swiper) => void;
20
+ slideNextTransitionStart: (swiper: Swiper) => void;
21
+ slideNextTransitionEnd: (swiper: Swiper) => void;
22
+ slidePrevTransitionStart: (swiper: Swiper) => void;
23
+ slidePrevTransitionEnd: (swiper: Swiper) => void;
24
+ transitionStart: (swiper: Swiper) => void;
25
+ transitionEnd: (swiper: Swiper) => void;
26
+ touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
27
+ touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
28
+ touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
29
+ sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
30
+ touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
31
+ click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
32
+ tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
33
+ doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
34
+ /**
35
+ * Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
36
+ */
37
+ progress: (swiper: Swiper, progress: number) => void;
38
+ /**
39
+ * Event will be fired when Swiper reach its beginning (initial position)
40
+ */
41
+ reachBeginning: (swiper: Swiper) => void;
42
+ /**
43
+ * Event will be fired when Swiper reach last slide
44
+ */
45
+ reachEnd: (swiper: Swiper) => void;
46
+ /**
47
+ * Event will be fired when Swiper goes to beginning or end position
48
+ */
49
+ toEdge: (swiper: Swiper) => void;
50
+ /**
51
+ * Event will be fired when Swiper goes from beginning or end position
52
+ */
53
+ fromEdge: (swiper: Swiper) => void;
54
+ /**
55
+ * Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
56
+ */
57
+ setTranslate: (swiper: Swiper, translate: number) => void;
58
+ /**
59
+ * Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
60
+ */
61
+ setTransition: (swiper: Swiper, transition: number) => void;
62
+ /**
63
+ * Event will be fired on window resize right before swiper's onresize manipulation
64
+ */
65
+ resize: (swiper: Swiper) => void;
66
+ /**
67
+ * Event will be fired if observer is enabled and it detects DOM mutations
68
+ */
69
+ observerUpdate: (swiper: Swiper) => void;
70
+ /**
71
+ * Event will be fired right before "loop fix"
72
+ */
73
+ beforeLoopFix: (swiper: Swiper) => void;
74
+ /**
75
+ * Event will be fired after "loop fix"
76
+ */
77
+ loopFix: (swiper: Swiper) => void;
78
+ breakpoint: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
79
+ _beforeBreakpoint?: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
80
+ _containerClasses?: (swiper: Swiper, classNames: string) => void;
81
+ _slideClass?: (swiper: Swiper, slideEl: HTMLElement, classNames: string) => void;
82
+ _slideClasses?: (swiper: Swiper, slides: {
83
+ slideEl: HTMLElement;
84
+ classNames: string;
85
+ index: number;
86
+ }[]) => void;
87
+ _swiper?: (swiper: Swiper) => void;
88
+ _freeModeNoMomentumRelease?: (swiper: Swiper) => void;
89
+ activeIndexChange: (swiper: Swiper) => void;
90
+ snapIndexChange: (swiper: Swiper) => void;
91
+ realIndexChange: (swiper: Swiper) => void;
92
+ afterInit: (swiper: Swiper) => void;
93
+ beforeInit: (swiper: Swiper) => void;
94
+ /**
95
+ * Event will fired before resize handler
96
+ */
97
+ beforeResize: (swiper: Swiper) => void;
98
+ /**
99
+ * Event will fired before slide change transition start
100
+ */
101
+ beforeSlideChangeStart: (swiper: Swiper) => void;
102
+ /**
103
+ * Event will fired before transition start
104
+ */
105
+ beforeTransitionStart: (swiper: Swiper, speed: number, internal: any) => void;
106
+ /**
107
+ * Event will fired on direction change
108
+ */
109
+ changeDirection: (swiper: Swiper) => void;
110
+ /**
111
+ * Event will be fired when user double click/tap on Swiper
112
+ */
113
+ doubleClick: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
114
+ /**
115
+ * Event will be fired on swiper destroy
116
+ */
117
+ destroy: (swiper: Swiper) => void;
118
+ /**
119
+ * Event will be fired on momentum bounce
120
+ */
121
+ momentumBounce: (swiper: Swiper) => void;
122
+ /**
123
+ * Event will be fired on orientation change (e.g. landscape -> portrait)
124
+ */
125
+ orientationchange: (swiper: Swiper) => void;
126
+ /**
127
+ * Event will be fired in the beginning of animation of resetting slide to current one
128
+ */
129
+ slideResetTransitionStart: (swiper: Swiper) => void;
130
+ /**
131
+ * Event will be fired in the end of animation of resetting slide to current one
132
+ */
133
+ slideResetTransitionEnd: (swiper: Swiper) => void;
134
+ /**
135
+ * Event will be fired with first touch/drag move
136
+ */
137
+ sliderFirstMove: (swiper: Swiper, event: TouchEvent) => void;
138
+ /**
139
+ * Event will be fired when number of slides has changed
140
+ */
141
+ slidesLengthChange: (swiper: Swiper) => void;
142
+ /**
143
+ * Event will be fired when slides grid has changed
144
+ */
145
+ slidesGridLengthChange: (swiper: Swiper) => void;
146
+ /**
147
+ * Event will be fired when snap grid has changed
148
+ */
149
+ snapGridLengthChange: (swiper: Swiper) => void;
150
+ /**
151
+ * Event will be fired after swiper.update() call
152
+ */
153
+ update: (swiper: Swiper) => void;
154
+ /**
155
+ * Event will be fired when swiper is locked (when `watchOverflow` enabled)
156
+ */
157
+ lock: (swiper: Swiper) => void;
158
+ /**
159
+ * Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
160
+ */
161
+ unlock: (swiper: Swiper) => void;
162
+ } & A11yEvents & AutoplayEvents & ControllerEvents & CoverflowEffectEvents & CubeEffectEvents & FadeEffectEvents & FlipEffectEvents & CreativeEffectEvents & CardsEffectEvents & HashNavigationEvents;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=swiper-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swiper-events.js","sourceRoot":"","sources":["../../../../../../src/ui/components/carousel/swiper/types/swiper-events.ts"],"names":[],"mappings":""}