gallery.d.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxGallery from 'devextreme/ui/gallery';
  17. import { DxComponent } from '../core/component';
  18. import { DxTemplateHost } from '../core/template-host';
  19. import { NestedOptionHost } from '../core/nested-option';
  20. import { WatcherHelper } from '../core/watcher-helper';
  21. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  22. import { DxiItemComponent } from './nested/item-dxi';
  23. /**
  24. * The Gallery is a widget that displays a collection of images in a carousel. The widget is supplied with various navigation controls that allow a user to switch between images.
  25. */
  26. export declare class DxGalleryComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  27. private _watcherHelper;
  28. private _idh;
  29. instance: DxGallery;
  30. /**
  31. * Specifies the shortcut key that sets focus on the widget.
  32. */
  33. accessKey: string;
  34. /**
  35. * The time, in milliseconds, spent on slide animation.
  36. */
  37. animationDuration: number;
  38. /**
  39. * Specifies whether or not to animate the displayed item change.
  40. */
  41. animationEnabled: boolean;
  42. /**
  43. * Binds the widget to data.
  44. */
  45. dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>;
  46. /**
  47. * Specifies whether the widget responds to user interaction.
  48. */
  49. disabled: boolean;
  50. /**
  51. * Specifies the attributes to be attached to the widget's root element.
  52. */
  53. elementAttr: any;
  54. /**
  55. * Specifies whether the widget can be focused using keyboard navigation.
  56. */
  57. focusStateEnabled: boolean;
  58. /**
  59. * Specifies the widget's height.
  60. */
  61. height: number | Function | string;
  62. /**
  63. * Specifies text for a hint that appears when a user pauses on the widget.
  64. */
  65. hint: string;
  66. /**
  67. * Specifies whether the widget changes its state when a user pauses on it.
  68. */
  69. hoverStateEnabled: boolean;
  70. /**
  71. * A Boolean value specifying whether or not to allow users to switch between items by clicking an indicator.
  72. */
  73. indicatorEnabled: boolean;
  74. /**
  75. * Specifies the width of an area used to display a single image.
  76. */
  77. initialItemWidth: number;
  78. /**
  79. * The time period in milliseconds before the onItemHold event is raised.
  80. */
  81. itemHoldTimeout: number;
  82. /**
  83. * An array of items displayed by the widget.
  84. */
  85. items: Array<string | any | {
  86. disabled?: boolean;
  87. html?: string;
  88. imageAlt?: string;
  89. imageSrc?: string;
  90. template?: any;
  91. text?: string;
  92. }>;
  93. /**
  94. * Specifies a custom template for items.
  95. */
  96. itemTemplate: any;
  97. /**
  98. * A Boolean value specifying whether or not to scroll back to the first item after the last item is swiped.
  99. */
  100. loop: boolean;
  101. /**
  102. * Switches the widget to a right-to-left representation.
  103. */
  104. rtlEnabled: boolean;
  105. /**
  106. * The index of the currently active gallery item.
  107. */
  108. selectedIndex: number;
  109. /**
  110. * The selected item object.
  111. */
  112. selectedItem: any;
  113. /**
  114. * A Boolean value specifying whether or not to display an indicator that points to the selected gallery item.
  115. */
  116. showIndicator: boolean;
  117. /**
  118. * A Boolean value that specifies the availability of the "Forward" and "Back" navigation buttons.
  119. */
  120. showNavButtons: boolean;
  121. /**
  122. * The time interval in milliseconds, after which the gallery switches to the next item.
  123. */
  124. slideshowDelay: number;
  125. /**
  126. * Specifies if the widget stretches images to fit the total gallery width.
  127. */
  128. stretchImages: boolean;
  129. /**
  130. * A Boolean value specifying whether or not to allow users to switch between items by swiping.
  131. */
  132. swipeEnabled: boolean;
  133. /**
  134. * Specifies the number of the element when the Tab key is used for navigating.
  135. */
  136. tabIndex: number;
  137. /**
  138. * Specifies whether the widget is visible.
  139. */
  140. visible: boolean;
  141. /**
  142. * Specifies the widget's width.
  143. */
  144. width: number | Function | string;
  145. /**
  146. * Specifies whether or not to display parts of previous and next images along the sides of the current image.
  147. */
  148. wrapAround: boolean;
  149. /**
  150. * A function that is executed when the widget's content is ready and each time the content is changed.
  151. */
  152. onContentReady: EventEmitter<any>;
  153. /**
  154. * A function that is executed before the widget is disposed of.
  155. */
  156. onDisposing: EventEmitter<any>;
  157. /**
  158. * A function used in JavaScript frameworks to save the widget instance.
  159. */
  160. onInitialized: EventEmitter<any>;
  161. /**
  162. * A function that is executed when a collection item is clicked or tapped.
  163. */
  164. onItemClick: EventEmitter<any>;
  165. /**
  166. * A function that is executed when a collection item is right-clicked or pressed.
  167. */
  168. onItemContextMenu: EventEmitter<any>;
  169. /**
  170. * A function that is executed when a collection item has been held for a specified period.
  171. */
  172. onItemHold: EventEmitter<any>;
  173. /**
  174. * A function that is executed after a collection item is rendered.
  175. */
  176. onItemRendered: EventEmitter<any>;
  177. /**
  178. * A function that is executed after a widget option is changed.
  179. */
  180. onOptionChanged: EventEmitter<any>;
  181. /**
  182. * A function that is executed when a collection item is selected or selection is canceled.
  183. */
  184. onSelectionChanged: EventEmitter<any>;
  185. /**
  186. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  187. */
  188. accessKeyChange: EventEmitter<string>;
  189. /**
  190. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  191. */
  192. animationDurationChange: EventEmitter<number>;
  193. /**
  194. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  195. */
  196. animationEnabledChange: EventEmitter<boolean>;
  197. /**
  198. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  199. */
  200. dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>>;
  201. /**
  202. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  203. */
  204. disabledChange: EventEmitter<boolean>;
  205. /**
  206. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  207. */
  208. elementAttrChange: EventEmitter<any>;
  209. /**
  210. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  211. */
  212. focusStateEnabledChange: EventEmitter<boolean>;
  213. /**
  214. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  215. */
  216. heightChange: EventEmitter<number | Function | string>;
  217. /**
  218. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  219. */
  220. hintChange: EventEmitter<string>;
  221. /**
  222. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  223. */
  224. hoverStateEnabledChange: EventEmitter<boolean>;
  225. /**
  226. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  227. */
  228. indicatorEnabledChange: EventEmitter<boolean>;
  229. /**
  230. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  231. */
  232. initialItemWidthChange: EventEmitter<number>;
  233. /**
  234. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  235. */
  236. itemHoldTimeoutChange: EventEmitter<number>;
  237. /**
  238. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  239. */
  240. itemsChange: EventEmitter<Array<string | any | {
  241. disabled?: boolean;
  242. html?: string;
  243. imageAlt?: string;
  244. imageSrc?: string;
  245. template?: any;
  246. text?: string;
  247. }>>;
  248. /**
  249. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  250. */
  251. itemTemplateChange: EventEmitter<any>;
  252. /**
  253. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  254. */
  255. loopChange: EventEmitter<boolean>;
  256. /**
  257. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  258. */
  259. rtlEnabledChange: EventEmitter<boolean>;
  260. /**
  261. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  262. */
  263. selectedIndexChange: EventEmitter<number>;
  264. /**
  265. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  266. */
  267. selectedItemChange: EventEmitter<any>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. showIndicatorChange: EventEmitter<boolean>;
  272. /**
  273. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  274. */
  275. showNavButtonsChange: EventEmitter<boolean>;
  276. /**
  277. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  278. */
  279. slideshowDelayChange: EventEmitter<number>;
  280. /**
  281. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  282. */
  283. stretchImagesChange: EventEmitter<boolean>;
  284. /**
  285. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  286. */
  287. swipeEnabledChange: EventEmitter<boolean>;
  288. /**
  289. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  290. */
  291. tabIndexChange: EventEmitter<number>;
  292. /**
  293. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  294. */
  295. visibleChange: EventEmitter<boolean>;
  296. /**
  297. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  298. */
  299. widthChange: EventEmitter<number | Function | string>;
  300. /**
  301. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  302. */
  303. wrapAroundChange: EventEmitter<boolean>;
  304. itemsChildren: QueryList<DxiItemComponent>;
  305. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  306. protected _createInstance(element: any, options: any): DxGallery;
  307. ngOnDestroy(): void;
  308. ngOnChanges(changes: SimpleChanges): void;
  309. setupChanges(prop: string, changes: SimpleChanges): void;
  310. ngDoCheck(): void;
  311. _setOption(name: string, value: any): void;
  312. }
  313. export declare class DxGalleryModule {
  314. }