@syncfusion/ej2-navigations 30.2.5 → 31.1.17
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/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +1 -0
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +1 -0
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/accordion/accordion-model.d.ts +285 -0
- package/dist/ts/accordion/accordion.d.ts +458 -0
- package/dist/ts/accordion/accordion.ts +1580 -0
- package/dist/ts/accordion/index.d.ts +5 -0
- package/dist/ts/accordion/index.ts +5 -0
- package/dist/ts/appbar/appbar-model.d.ts +76 -0
- package/dist/ts/appbar/appbar.d.ts +115 -0
- package/dist/ts/appbar/appbar.ts +281 -0
- package/dist/ts/appbar/index.d.ts +3 -0
- package/dist/ts/appbar/index.ts +3 -0
- package/dist/ts/breadcrumb/breadcrumb-model.d.ts +170 -0
- package/dist/ts/breadcrumb/breadcrumb.d.ts +297 -0
- package/dist/ts/breadcrumb/breadcrumb.ts +959 -0
- package/dist/ts/breadcrumb/index.d.ts +5 -0
- package/dist/ts/breadcrumb/index.ts +5 -0
- package/dist/ts/carousel/carousel-model.d.ts +282 -0
- package/dist/ts/carousel/carousel.d.ts +439 -0
- package/dist/ts/carousel/carousel.ts +1633 -0
- package/dist/ts/carousel/index.d.ts +3 -0
- package/dist/ts/carousel/index.ts +3 -0
- package/dist/ts/common/h-scroll-model.d.ts +16 -0
- package/dist/ts/common/h-scroll.d.ts +105 -0
- package/dist/ts/common/h-scroll.ts +481 -0
- package/dist/ts/common/index.d.ts +9 -0
- package/dist/ts/common/index.ts +10 -0
- package/dist/ts/common/menu-base-model.d.ts +308 -0
- package/dist/ts/common/menu-base.d.ts +558 -0
- package/dist/ts/common/menu-base.ts +2736 -0
- package/dist/ts/common/menu-scroll.d.ts +29 -0
- package/dist/ts/common/menu-scroll.ts +105 -0
- package/dist/ts/common/v-scroll-model.d.ts +16 -0
- package/dist/ts/common/v-scroll.d.ts +106 -0
- package/dist/ts/common/v-scroll.ts +454 -0
- package/dist/ts/context-menu/context-menu-model.d.ts +47 -0
- package/dist/ts/context-menu/context-menu.d.ts +102 -0
- package/dist/ts/context-menu/context-menu.ts +165 -0
- package/dist/ts/context-menu/index.d.ts +5 -0
- package/dist/ts/context-menu/index.ts +5 -0
- package/dist/ts/index.d.ts +16 -0
- package/dist/ts/index.ts +16 -0
- package/dist/ts/menu/index.d.ts +5 -0
- package/dist/ts/menu/index.ts +5 -0
- package/dist/ts/menu/menu-model.d.ts +70 -0
- package/dist/ts/menu/menu.d.ts +127 -0
- package/dist/ts/menu/menu.ts +313 -0
- package/dist/ts/sidebar/index.d.ts +5 -0
- package/dist/ts/sidebar/index.ts +5 -0
- package/dist/ts/sidebar/sidebar-model.d.ts +200 -0
- package/dist/ts/sidebar/sidebar.d.ts +336 -0
- package/dist/ts/sidebar/sidebar.ts +907 -0
- package/dist/ts/stepper/index.d.ts +3 -0
- package/dist/ts/stepper/index.ts +3 -0
- package/dist/ts/stepper/stepper-model.d.ts +159 -0
- package/dist/ts/stepper/stepper.d.ts +381 -0
- package/dist/ts/stepper/stepper.ts +1350 -0
- package/dist/ts/stepper-base/index.d.ts +5 -0
- package/dist/ts/stepper-base/index.ts +6 -0
- package/dist/ts/stepper-base/stepper-base-model.d.ts +124 -0
- package/dist/ts/stepper-base/stepper-base.d.ts +187 -0
- package/dist/ts/stepper-base/stepper-base.ts +290 -0
- package/dist/ts/tab/index.d.ts +5 -0
- package/dist/ts/tab/index.ts +5 -0
- package/dist/ts/tab/tab-model.d.ts +408 -0
- package/dist/ts/tab/tab.d.ts +715 -0
- package/dist/ts/tab/tab.ts +2842 -0
- package/dist/ts/toolbar/index.d.ts +5 -0
- package/dist/ts/toolbar/index.ts +5 -0
- package/dist/ts/toolbar/toolbar-model.d.ts +294 -0
- package/dist/ts/toolbar/toolbar.d.ts +541 -0
- package/dist/ts/toolbar/toolbar.ts +2646 -0
- package/dist/ts/treeview/index.d.ts +5 -0
- package/dist/ts/treeview/index.ts +5 -0
- package/dist/ts/treeview/treeview-model.d.ts +637 -0
- package/dist/ts/treeview/treeview.d.ts +1518 -0
- package/dist/ts/treeview/treeview.ts +6780 -0
- package/package.json +70 -17
- package/src/context-menu/context-menu-model.d.ts +1 -1
- package/src/context-menu/context-menu.js +1 -1
- package/src/tab/tab.js +1 -0
- package/styles/accordion/_bootstrap-dark-definition.scss +1 -1
- package/styles/accordion/_bootstrap-definition.scss +1 -1
- package/styles/accordion/bootstrap-dark.css +1 -1
- package/styles/accordion/bootstrap.css +1 -1
- package/styles/bds-lite.css +1 -1
- package/styles/bds.css +1 -1
- package/styles/bootstrap-dark-lite.css +2 -2
- package/styles/bootstrap-dark.css +2 -2
- package/styles/bootstrap-lite.css +2 -2
- package/styles/bootstrap.css +2 -2
- package/styles/bootstrap4-lite.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5-lite.css +1 -1
- package/styles/bootstrap5.3-lite.css +1 -1
- package/styles/bootstrap5.3.css +9 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark-lite.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric-lite.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark-lite.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent-lite.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/fluent2-lite.css +4 -1
- package/styles/fluent2.css +4 -1
- package/styles/h-scroll/_layout.scss +1 -1
- package/styles/h-scroll/bds.css +1 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.3.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/fluent2.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/material3-dark.css +1 -1
- package/styles/h-scroll/material3.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/h-scroll/tailwind3.css +1 -1
- package/styles/highcontrast-light-lite.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast-lite.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark-lite.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material-lite.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark-lite.css +1 -1
- package/styles/material3-dark.css +1 -7
- package/styles/material3-lite.css +1 -1
- package/styles/material3.css +1 -7
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind.css +1 -1
- package/styles/tailwind3-lite.css +1 -1
- package/styles/tailwind3.css +1 -1
- package/styles/toolbar/_layout.scss +1 -1
- package/styles/treeview/_bigger.scss +2 -2
- package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
- package/styles/treeview/_layout.scss +3 -0
- package/styles/treeview/bootstrap5.3.css +8 -0
- package/styles/treeview/fluent2.css +3 -0
- package/styles/treeview/material3-dark.css +0 -6
- package/styles/treeview/material3.css +0 -6
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { Component, EmitType, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
3
|
+
import { BaseEventArgs } from '@syncfusion/ej2-base';
|
|
4
|
+
import { CarouselModel, CarouselItemModel } from './carousel-model';
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the direction of previous/next button navigations in carousel.
|
|
7
|
+
* ```props
|
|
8
|
+
* Previous :- To determine the previous direction of carousel item transition.
|
|
9
|
+
* Next :- To determine the next direction of carousel item transition.
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare type CarouselSlideDirection = 'Previous' | 'Next';
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the state of navigation buttons displayed in carousel.
|
|
15
|
+
* ```props
|
|
16
|
+
* Hidden :- Navigation buttons are hidden.
|
|
17
|
+
* Visible :- Navigation buttons are visible.
|
|
18
|
+
* VisibleOnHover :- Navigation buttons are visible only when we hover the carousel.
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare type CarouselButtonVisibility = 'Hidden' | 'Visible' | 'VisibleOnHover';
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the animation effects of carousel slide.
|
|
24
|
+
* ```props
|
|
25
|
+
* None :- The carousel item transition happens without animation.
|
|
26
|
+
* Slide :- The carousel item transition happens with slide animation.
|
|
27
|
+
* Fade :- The Carousel item transition happens with fade animation.
|
|
28
|
+
* Custom :- The Carousel item transition happens with custom animation.
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare type CarouselAnimationEffect = 'None' | 'Slide' | 'Fade' | 'Custom';
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the type of indicators.
|
|
34
|
+
* ```props
|
|
35
|
+
* Default: - Displays the indicators with a bullet design.
|
|
36
|
+
* Dynamic: - Applies a dynamic animation design to the indicators.
|
|
37
|
+
* Fraction: - Displays the slides numerically as indicators.
|
|
38
|
+
* Progress: - Represents the slides using a progress bar design.
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare type CarouselIndicatorsType = 'Default' | 'Dynamic' | 'Fraction' | 'Progress';
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the action (touch & mouse) which enables the slide swiping action in carousel.
|
|
44
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
45
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
46
|
+
*
|
|
47
|
+
* @aspNumberEnum
|
|
48
|
+
*/
|
|
49
|
+
export declare enum CarouselSwipeMode {
|
|
50
|
+
/** Enables or disables the swiping action in touch interaction. */
|
|
51
|
+
Touch = 1,
|
|
52
|
+
/** Enables or disables the swiping action in mouse interaction. */
|
|
53
|
+
Mouse = 2
|
|
54
|
+
}
|
|
55
|
+
/** An interface that holds details when changing the slide. */
|
|
56
|
+
export interface SlideChangingEventArgs extends BaseEventArgs {
|
|
57
|
+
/** Specifies the index of current slide. */
|
|
58
|
+
currentIndex: number;
|
|
59
|
+
/** Specifies the element of current slide. */
|
|
60
|
+
currentSlide: HTMLElement;
|
|
61
|
+
/** Specifies the index of slide to be changed. */
|
|
62
|
+
nextIndex: number;
|
|
63
|
+
/** Specifies the element of slide to be changed. */
|
|
64
|
+
nextSlide: HTMLElement;
|
|
65
|
+
/** Specifies whether the slide transition occur through swiping or not. */
|
|
66
|
+
isSwiped: boolean;
|
|
67
|
+
/** Specifies the slide direction in which transition occurs. */
|
|
68
|
+
slideDirection: CarouselSlideDirection;
|
|
69
|
+
/** Specifies whether the slide transition should occur or not. */
|
|
70
|
+
cancel: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** An interface that holds details once slide change done. */
|
|
73
|
+
export interface SlideChangedEventArgs extends BaseEventArgs {
|
|
74
|
+
/** Specifies the index of current slide. */
|
|
75
|
+
currentIndex: number;
|
|
76
|
+
/** Specifies the element of current slide. */
|
|
77
|
+
currentSlide: HTMLElement;
|
|
78
|
+
/** Specifies the index of slide from which it changed. */
|
|
79
|
+
previousIndex: number;
|
|
80
|
+
/** Specifies the element of slide from which it changed. */
|
|
81
|
+
previousSlide: HTMLElement;
|
|
82
|
+
/** Specifies whether the slide transition done through swiping or not. */
|
|
83
|
+
isSwiped: boolean;
|
|
84
|
+
/** Specifies the slide direction in which transition occurred. */
|
|
85
|
+
slideDirection: CarouselSlideDirection;
|
|
86
|
+
}
|
|
87
|
+
/** Specifies the carousel individual item. */
|
|
88
|
+
export declare class CarouselItem extends ChildProperty<CarouselItem> {
|
|
89
|
+
/**
|
|
90
|
+
* Accepts single/multiple classes (separated by a space) to be used for individual carousel item customization.
|
|
91
|
+
*
|
|
92
|
+
* @default null
|
|
93
|
+
*/
|
|
94
|
+
cssClass: string;
|
|
95
|
+
/**
|
|
96
|
+
* Accepts the interval duration in milliseconds for individual carousel item transition.
|
|
97
|
+
*
|
|
98
|
+
* @default null
|
|
99
|
+
*/
|
|
100
|
+
interval: number;
|
|
101
|
+
/**
|
|
102
|
+
* Accepts the template for individual carousel item.
|
|
103
|
+
*
|
|
104
|
+
* @default null
|
|
105
|
+
* @angularType string | object
|
|
106
|
+
* @reactType string | function | JSX.Element
|
|
107
|
+
* @vueType string | function
|
|
108
|
+
* @aspType string
|
|
109
|
+
*/
|
|
110
|
+
template: string | Function;
|
|
111
|
+
/**
|
|
112
|
+
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
113
|
+
*
|
|
114
|
+
* @default null
|
|
115
|
+
*/
|
|
116
|
+
htmlAttributes: Record<string, string>;
|
|
117
|
+
}
|
|
118
|
+
export declare class Carousel extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
119
|
+
private autoSlideInterval;
|
|
120
|
+
private slideItems;
|
|
121
|
+
private touchModule;
|
|
122
|
+
private keyModule;
|
|
123
|
+
private keyConfigs;
|
|
124
|
+
private slideChangedEventArgs;
|
|
125
|
+
private localeObj;
|
|
126
|
+
private prevPageX;
|
|
127
|
+
private initialTranslate;
|
|
128
|
+
private itemsContainer;
|
|
129
|
+
private isSwipe;
|
|
130
|
+
private timeStampStart;
|
|
131
|
+
/**
|
|
132
|
+
* Allows defining the collection of carousel item to be displayed on the Carousel.
|
|
133
|
+
*
|
|
134
|
+
* @default []
|
|
135
|
+
*/
|
|
136
|
+
items: CarouselItemModel[];
|
|
137
|
+
/**
|
|
138
|
+
* Specifies the type of animation effects. The possible values for this property as follows
|
|
139
|
+
* * `None`: The carousel item transition happens without animation.
|
|
140
|
+
* * `Slide`: The carousel item transition happens with slide animation.
|
|
141
|
+
* * `Fade`: The Carousel item transition happens with fade animation.
|
|
142
|
+
* * `Custom`: The Carousel item transition happens with custom animation.
|
|
143
|
+
*
|
|
144
|
+
* @default 'Slide'
|
|
145
|
+
*/
|
|
146
|
+
animationEffect: CarouselAnimationEffect;
|
|
147
|
+
/**
|
|
148
|
+
* Accepts the template for previous navigation button.
|
|
149
|
+
*
|
|
150
|
+
* @default null
|
|
151
|
+
* @angularType string | object
|
|
152
|
+
* @reactType string | function | JSX.Element
|
|
153
|
+
* @vueType string | function
|
|
154
|
+
* @aspType string
|
|
155
|
+
*/
|
|
156
|
+
previousButtonTemplate: string | Function;
|
|
157
|
+
/**
|
|
158
|
+
* Accepts the template for next navigation button.
|
|
159
|
+
*
|
|
160
|
+
* @default null
|
|
161
|
+
* @angularType string | object
|
|
162
|
+
* @reactType string | function | JSX.Element
|
|
163
|
+
* @vueType string | function
|
|
164
|
+
* @aspType string
|
|
165
|
+
*/
|
|
166
|
+
nextButtonTemplate: string | Function;
|
|
167
|
+
/**
|
|
168
|
+
* Accepts the template for indicator buttons.
|
|
169
|
+
*
|
|
170
|
+
* @default null
|
|
171
|
+
* @angularType string | object
|
|
172
|
+
* @reactType string | function | JSX.Element
|
|
173
|
+
* @vueType string | function
|
|
174
|
+
* @aspType string
|
|
175
|
+
*/
|
|
176
|
+
indicatorsTemplate: string | Function;
|
|
177
|
+
/**
|
|
178
|
+
* Accepts the template for play/pause button.
|
|
179
|
+
*
|
|
180
|
+
* @default null
|
|
181
|
+
* @angularType string | object
|
|
182
|
+
* @reactType string | function | JSX.Element
|
|
183
|
+
* @vueType string | function
|
|
184
|
+
* @aspType string
|
|
185
|
+
*/
|
|
186
|
+
playButtonTemplate: string | Function;
|
|
187
|
+
/**
|
|
188
|
+
* Accepts single/multiple classes (separated by a space) to be used for carousel customization.
|
|
189
|
+
*
|
|
190
|
+
* @default null
|
|
191
|
+
*/
|
|
192
|
+
cssClass: string;
|
|
193
|
+
/**
|
|
194
|
+
* Specifies the datasource for the carousel items.
|
|
195
|
+
*
|
|
196
|
+
* @isdatamanager false
|
|
197
|
+
* @default []
|
|
198
|
+
*/
|
|
199
|
+
dataSource: Record<string, any>[];
|
|
200
|
+
/**
|
|
201
|
+
* Specifies the template option for carousel items.
|
|
202
|
+
*
|
|
203
|
+
* @default null
|
|
204
|
+
* @angularType string | object
|
|
205
|
+
* @reactType string | function | JSX.Element
|
|
206
|
+
* @vueType string | function
|
|
207
|
+
* @aspType string
|
|
208
|
+
*/
|
|
209
|
+
itemTemplate: string | Function;
|
|
210
|
+
/**
|
|
211
|
+
* Specifies index of the current carousel item.
|
|
212
|
+
*
|
|
213
|
+
* @default 0
|
|
214
|
+
*/
|
|
215
|
+
selectedIndex: number;
|
|
216
|
+
/**
|
|
217
|
+
* Specifies the width of the Carousel in pixels/number/percentage. The number value is considered as pixels.
|
|
218
|
+
*
|
|
219
|
+
* @default '100%'
|
|
220
|
+
*/
|
|
221
|
+
width: string | number;
|
|
222
|
+
/**
|
|
223
|
+
* Specifies the height of the Carousel in pixels/number/percentage. The number value is considered as pixels.
|
|
224
|
+
*
|
|
225
|
+
* @default '100%'
|
|
226
|
+
*/
|
|
227
|
+
height: string | number;
|
|
228
|
+
/**
|
|
229
|
+
* Specifies the interval duration in milliseconds for carousel item transition.
|
|
230
|
+
*
|
|
231
|
+
* @default 5000
|
|
232
|
+
*/
|
|
233
|
+
interval: number;
|
|
234
|
+
/**
|
|
235
|
+
* Defines whether the slide transition is automatic or manual.
|
|
236
|
+
*
|
|
237
|
+
* @default true
|
|
238
|
+
*/
|
|
239
|
+
autoPlay: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Defines whether the slide transition gets pause on hover or not.
|
|
242
|
+
*
|
|
243
|
+
* @default true
|
|
244
|
+
*/
|
|
245
|
+
pauseOnHover: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Defines whether the slide transitions loop end or not. When set to false, the transition stops at last slide.
|
|
248
|
+
*
|
|
249
|
+
* @default true
|
|
250
|
+
*/
|
|
251
|
+
loop: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Defines whether to show play button or not.
|
|
254
|
+
*
|
|
255
|
+
* @default false
|
|
256
|
+
*/
|
|
257
|
+
showPlayButton: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Defines whether to enable swipe action in touch devices or not.
|
|
260
|
+
*
|
|
261
|
+
* @default true
|
|
262
|
+
*/
|
|
263
|
+
enableTouchSwipe: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Defines whether to enable keyboard actions or not.
|
|
266
|
+
*
|
|
267
|
+
* * @remarks
|
|
268
|
+
* If any form input component is placed on the carousel slide, interacting with it may cause
|
|
269
|
+
* the left/right arrow keys to navigate to other slides. Disabling keyboard interaction helps
|
|
270
|
+
* prevent this unintended navigation, leading to a smoother user experience.
|
|
271
|
+
*
|
|
272
|
+
* @default true
|
|
273
|
+
*/
|
|
274
|
+
allowKeyboardInteraction: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Defines whether to show the indicator positions or not. The indicator positions allow to know the current slide position of the carousel component.
|
|
277
|
+
*
|
|
278
|
+
* @default true
|
|
279
|
+
*/
|
|
280
|
+
showIndicators: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Specifies the type of indicators. The available values for this property are:
|
|
283
|
+
*
|
|
284
|
+
* * `Default`: Displays the indicators with a bullet design.
|
|
285
|
+
* * `Dynamic`: Applies a dynamic animation design to the indicators.
|
|
286
|
+
* * `Fraction`: Displays the slides numerically as indicators.
|
|
287
|
+
* * `Progress`: Represents the slides using a progress bar design.
|
|
288
|
+
*
|
|
289
|
+
* @default 'Default'
|
|
290
|
+
*/
|
|
291
|
+
indicatorsType: CarouselIndicatorsType;
|
|
292
|
+
/**
|
|
293
|
+
* Defines how to show the previous, next and play pause buttons visibility. The possible values for this property as follows
|
|
294
|
+
* * `Hidden`: Navigation buttons are hidden.
|
|
295
|
+
* * `Visible`: Navigation buttons are visible.
|
|
296
|
+
* * `VisibleOnHover`: Navigation buttons are visible only when we hover the carousel.
|
|
297
|
+
*
|
|
298
|
+
* @default 'Visible'
|
|
299
|
+
*/
|
|
300
|
+
buttonsVisibility: CarouselButtonVisibility;
|
|
301
|
+
/**
|
|
302
|
+
* Enables active slide with partial previous/next slides.
|
|
303
|
+
*
|
|
304
|
+
* Slide animation only applicable if the partialVisible is enabled.
|
|
305
|
+
*
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
partialVisible: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Specifies whether the slide transition should occur while performing swiping via touch/mouse.
|
|
311
|
+
* The slide swiping is enabled or disabled using bitwise operators. The swiping is disabled using ‘~’ bitwise operator.
|
|
312
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
313
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
314
|
+
*
|
|
315
|
+
* @default 'Touch'
|
|
316
|
+
* @aspNumberEnum
|
|
317
|
+
*/
|
|
318
|
+
swipeMode: CarouselSwipeMode;
|
|
319
|
+
/**
|
|
320
|
+
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
321
|
+
*
|
|
322
|
+
* @default null
|
|
323
|
+
*/
|
|
324
|
+
htmlAttributes: Record<string, string>;
|
|
325
|
+
/**
|
|
326
|
+
* The event will be fired before the slide change.
|
|
327
|
+
*
|
|
328
|
+
* @event slideChanging
|
|
329
|
+
*/
|
|
330
|
+
slideChanging: EmitType<SlideChangingEventArgs>;
|
|
331
|
+
/**
|
|
332
|
+
* The event will be fired after the slide changed.
|
|
333
|
+
*
|
|
334
|
+
* @event slideChanged
|
|
335
|
+
*/
|
|
336
|
+
slideChanged: EmitType<SlideChangedEventArgs>;
|
|
337
|
+
/**
|
|
338
|
+
* Constructor for creating the Carousel widget
|
|
339
|
+
*
|
|
340
|
+
* @param {CarouselModel} options Accepts the carousel model properties to initiate the rendering
|
|
341
|
+
* @param {string | HTMLElement} element Accepts the DOM element reference
|
|
342
|
+
*/
|
|
343
|
+
constructor(options?: CarouselModel, element?: string | HTMLElement);
|
|
344
|
+
protected getModuleName(): string;
|
|
345
|
+
protected getPersistData(): string;
|
|
346
|
+
protected preRender(): void;
|
|
347
|
+
protected render(): void;
|
|
348
|
+
onPropertyChanged(newProp: CarouselModel, oldProp: CarouselModel): void;
|
|
349
|
+
private reRenderSlides;
|
|
350
|
+
private reRenderIndicators;
|
|
351
|
+
private initialize;
|
|
352
|
+
private renderSlides;
|
|
353
|
+
private getTranslateX;
|
|
354
|
+
private renderSlide;
|
|
355
|
+
private renderNavigators;
|
|
356
|
+
private renderNavigatorButton;
|
|
357
|
+
private renderPlayButton;
|
|
358
|
+
private renderIndicators;
|
|
359
|
+
private renderIndicatorTemplate;
|
|
360
|
+
private renderKeyboardActions;
|
|
361
|
+
private renderTouchActions;
|
|
362
|
+
private applyAnimation;
|
|
363
|
+
private autoSlide;
|
|
364
|
+
private autoSlideChange;
|
|
365
|
+
private applySlideInterval;
|
|
366
|
+
private resetSlideInterval;
|
|
367
|
+
private getSlideIndex;
|
|
368
|
+
private setActiveSlide;
|
|
369
|
+
private onTransitionEnd;
|
|
370
|
+
private refreshIndicators;
|
|
371
|
+
private setHtmlAttributes;
|
|
372
|
+
private templateParser;
|
|
373
|
+
private getNavigatorState;
|
|
374
|
+
private navigatorClickHandler;
|
|
375
|
+
private indicatorClickHandler;
|
|
376
|
+
private playButtonClickHandler;
|
|
377
|
+
private keyHandler;
|
|
378
|
+
private swipeHandler;
|
|
379
|
+
private isSuspendSlideTransition;
|
|
380
|
+
private handleNavigatorsActions;
|
|
381
|
+
private onHoverActions;
|
|
382
|
+
private onFocusActions;
|
|
383
|
+
private destroyButtons;
|
|
384
|
+
private getNumOfItems;
|
|
385
|
+
private getTranslateValue;
|
|
386
|
+
private swipeStart;
|
|
387
|
+
private swiping;
|
|
388
|
+
private swipStop;
|
|
389
|
+
private swipeNavigation;
|
|
390
|
+
private swipeModehandlers;
|
|
391
|
+
private resizeHandler;
|
|
392
|
+
private wireEvents;
|
|
393
|
+
private unWireEvents;
|
|
394
|
+
/**
|
|
395
|
+
* Method to transit from the current slide to the previous slide.
|
|
396
|
+
*
|
|
397
|
+
* @returns {void}
|
|
398
|
+
*/
|
|
399
|
+
prev(): void;
|
|
400
|
+
/**
|
|
401
|
+
* Method to transit from the current slide to the next slide.
|
|
402
|
+
*
|
|
403
|
+
* @returns {void}
|
|
404
|
+
*/
|
|
405
|
+
next(): void;
|
|
406
|
+
/**
|
|
407
|
+
* Method to play the slides programmatically.
|
|
408
|
+
*
|
|
409
|
+
* @returns {void}
|
|
410
|
+
*/
|
|
411
|
+
play(): void;
|
|
412
|
+
/**
|
|
413
|
+
* Method to pause the slides programmatically.
|
|
414
|
+
*
|
|
415
|
+
* @returns {void}
|
|
416
|
+
*/
|
|
417
|
+
pause(): void;
|
|
418
|
+
/**
|
|
419
|
+
* Method to render react and angular templates
|
|
420
|
+
*
|
|
421
|
+
* @returns {void}
|
|
422
|
+
* @private
|
|
423
|
+
*/
|
|
424
|
+
private renderTemplates;
|
|
425
|
+
/**
|
|
426
|
+
* Method to reset react and angular templates
|
|
427
|
+
*
|
|
428
|
+
* @param {string[]} templates Accepts the template ID
|
|
429
|
+
* @returns {void}
|
|
430
|
+
* @private
|
|
431
|
+
*/
|
|
432
|
+
private resetTemplates;
|
|
433
|
+
/**
|
|
434
|
+
* Method for destroy the carousel component.
|
|
435
|
+
*
|
|
436
|
+
* @returns {void}
|
|
437
|
+
*/
|
|
438
|
+
destroy(): void;
|
|
439
|
+
}
|