popup.d.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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 DxPopup from 'devextreme/ui/popup';
  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 { DxiToolbarItemComponent } from './nested/toolbar-item-dxi';
  23. /**
  24. * The Popup widget is a pop-up window overlaying the current view.
  25. */
  26. export declare class DxPopupComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  27. private _watcherHelper;
  28. private _idh;
  29. instance: DxPopup;
  30. /**
  31. * Specifies the shortcut key that sets focus on the widget.
  32. */
  33. accessKey: string;
  34. /**
  35. * Configures widget visibility animations. This object contains two fields: show and hide.
  36. */
  37. animation: {
  38. hide?: DevExpress.animationConfig;
  39. show?: DevExpress.animationConfig;
  40. };
  41. /**
  42. * Specifies whether to close the widget if a user clicks outside it.
  43. */
  44. closeOnOutsideClick: boolean | Function;
  45. /**
  46. * Specifies the container in which to place the widget.
  47. */
  48. container: Element | JQuery;
  49. /**
  50. * Specifies a custom template for the widget content.
  51. */
  52. contentTemplate: any;
  53. /**
  54. * Specifies whether to render the widget's content when it is displayed. If false, the content is rendered immediately.
  55. */
  56. deferRendering: boolean;
  57. /**
  58. * Specifies whether the widget responds to user interaction.
  59. */
  60. disabled: boolean;
  61. /**
  62. * Specifies whether or not to allow a user to drag the popup window.
  63. */
  64. dragEnabled: boolean;
  65. /**
  66. * Specifies the attributes to be attached to the widget's root element.
  67. */
  68. elementAttr: any;
  69. /**
  70. * Specifies whether the widget can be focused using keyboard navigation.
  71. */
  72. focusStateEnabled: boolean;
  73. /**
  74. * A Boolean value specifying whether or not to display the widget in full-screen mode.
  75. */
  76. fullScreen: boolean;
  77. /**
  78. * Specifies the widget's height in pixels.
  79. */
  80. height: number | Function | string;
  81. /**
  82. * Specifies text for a hint that appears when a user pauses on the widget.
  83. */
  84. hint: string;
  85. /**
  86. * Specifies whether the widget changes its state when a user pauses on it.
  87. */
  88. hoverStateEnabled: boolean;
  89. /**
  90. * Specifies the maximum height the widget can reach while resizing.
  91. */
  92. maxHeight: number | Function | string;
  93. /**
  94. * Specifies the maximum width the widget can reach while resizing.
  95. */
  96. maxWidth: number | Function | string;
  97. /**
  98. * Specifies the minimum height the widget can reach while resizing.
  99. */
  100. minHeight: number | Function | string;
  101. /**
  102. * Specifies the minimum width the widget can reach while resizing.
  103. */
  104. minWidth: number | Function | string;
  105. /**
  106. * Positions the widget.
  107. */
  108. position: DevExpress.positionConfig | Function | string;
  109. /**
  110. * Specifies whether or not an end user can resize the widget.
  111. */
  112. resizeEnabled: boolean;
  113. /**
  114. * Switches the widget to a right-to-left representation.
  115. */
  116. rtlEnabled: boolean;
  117. /**
  118. * Specifies whether to shade the background when the widget is active.
  119. */
  120. shading: boolean;
  121. /**
  122. * Specifies the shading color.
  123. */
  124. shadingColor: string;
  125. /**
  126. * Specifies whether or not the widget displays the Close button.
  127. */
  128. showCloseButton: boolean;
  129. /**
  130. * A Boolean value specifying whether or not to display the title in the popup window.
  131. */
  132. showTitle: boolean;
  133. /**
  134. * Specifies the number of the element when the Tab key is used for navigating.
  135. */
  136. tabIndex: number;
  137. /**
  138. * The title in the overlay window.
  139. */
  140. title: string;
  141. /**
  142. * Specifies a custom template for the widget title. Does not apply if the title is defined.
  143. */
  144. titleTemplate: any;
  145. /**
  146. * Configures toolbar items.
  147. */
  148. toolbarItems: Array<any | {
  149. disabled?: boolean;
  150. html?: string;
  151. location?: string;
  152. options?: any;
  153. template?: any;
  154. text?: string;
  155. toolbar?: string;
  156. visible?: boolean;
  157. widget?: string;
  158. }>;
  159. /**
  160. * A Boolean value specifying whether or not the widget is visible.
  161. */
  162. visible: boolean;
  163. /**
  164. * Specifies the widget's width in pixels.
  165. */
  166. width: number | Function | string;
  167. /**
  168. * A function that is executed when the widget's content is ready and each time the content is changed.
  169. */
  170. onContentReady: EventEmitter<any>;
  171. /**
  172. * A function that is executed before the widget is disposed of.
  173. */
  174. onDisposing: EventEmitter<any>;
  175. /**
  176. * A function that is executed after the widget is hidden.
  177. */
  178. onHidden: EventEmitter<any>;
  179. /**
  180. * A function that is executed before the widget is hidden.
  181. */
  182. onHiding: EventEmitter<any>;
  183. /**
  184. * A function used in JavaScript frameworks to save the widget instance.
  185. */
  186. onInitialized: EventEmitter<any>;
  187. /**
  188. * A function that is executed after a widget option is changed.
  189. */
  190. onOptionChanged: EventEmitter<any>;
  191. /**
  192. * A function that is executed each time the widget is resized by one pixel.
  193. */
  194. onResize: EventEmitter<any>;
  195. /**
  196. * A function that is executed when resizing ends.
  197. */
  198. onResizeEnd: EventEmitter<any>;
  199. /**
  200. * A function that is executed when resizing starts.
  201. */
  202. onResizeStart: EventEmitter<any>;
  203. /**
  204. * A function that is executed before the widget is displayed.
  205. */
  206. onShowing: EventEmitter<any>;
  207. /**
  208. * A function that is executed after the widget is displayed.
  209. */
  210. onShown: EventEmitter<any>;
  211. /**
  212. * A function that is executed when the widget's title is rendered.
  213. */
  214. onTitleRendered: EventEmitter<any>;
  215. /**
  216. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  217. */
  218. accessKeyChange: EventEmitter<string>;
  219. /**
  220. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  221. */
  222. animationChange: EventEmitter<{
  223. hide?: DevExpress.animationConfig;
  224. show?: DevExpress.animationConfig;
  225. }>;
  226. /**
  227. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  228. */
  229. closeOnOutsideClickChange: EventEmitter<boolean | Function>;
  230. /**
  231. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  232. */
  233. containerChange: EventEmitter<Element | JQuery>;
  234. /**
  235. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  236. */
  237. contentTemplateChange: EventEmitter<any>;
  238. /**
  239. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  240. */
  241. deferRenderingChange: EventEmitter<boolean>;
  242. /**
  243. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  244. */
  245. disabledChange: EventEmitter<boolean>;
  246. /**
  247. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  248. */
  249. dragEnabledChange: EventEmitter<boolean>;
  250. /**
  251. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  252. */
  253. elementAttrChange: EventEmitter<any>;
  254. /**
  255. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  256. */
  257. focusStateEnabledChange: EventEmitter<boolean>;
  258. /**
  259. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  260. */
  261. fullScreenChange: EventEmitter<boolean>;
  262. /**
  263. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  264. */
  265. heightChange: EventEmitter<number | Function | string>;
  266. /**
  267. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  268. */
  269. hintChange: EventEmitter<string>;
  270. /**
  271. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  272. */
  273. hoverStateEnabledChange: EventEmitter<boolean>;
  274. /**
  275. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  276. */
  277. maxHeightChange: EventEmitter<number | Function | string>;
  278. /**
  279. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  280. */
  281. maxWidthChange: EventEmitter<number | Function | string>;
  282. /**
  283. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  284. */
  285. minHeightChange: EventEmitter<number | Function | string>;
  286. /**
  287. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  288. */
  289. minWidthChange: EventEmitter<number | Function | string>;
  290. /**
  291. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  292. */
  293. positionChange: EventEmitter<DevExpress.positionConfig | Function | string>;
  294. /**
  295. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  296. */
  297. resizeEnabledChange: EventEmitter<boolean>;
  298. /**
  299. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  300. */
  301. rtlEnabledChange: EventEmitter<boolean>;
  302. /**
  303. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  304. */
  305. shadingChange: EventEmitter<boolean>;
  306. /**
  307. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  308. */
  309. shadingColorChange: EventEmitter<string>;
  310. /**
  311. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  312. */
  313. showCloseButtonChange: EventEmitter<boolean>;
  314. /**
  315. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  316. */
  317. showTitleChange: EventEmitter<boolean>;
  318. /**
  319. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  320. */
  321. tabIndexChange: EventEmitter<number>;
  322. /**
  323. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  324. */
  325. titleChange: EventEmitter<string>;
  326. /**
  327. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  328. */
  329. titleTemplateChange: EventEmitter<any>;
  330. /**
  331. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  332. */
  333. toolbarItemsChange: EventEmitter<Array<any | {
  334. disabled?: boolean;
  335. html?: string;
  336. location?: string;
  337. options?: any;
  338. template?: any;
  339. text?: string;
  340. toolbar?: string;
  341. visible?: boolean;
  342. widget?: string;
  343. }>>;
  344. /**
  345. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  346. */
  347. visibleChange: EventEmitter<boolean>;
  348. /**
  349. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  350. */
  351. widthChange: EventEmitter<number | Function | string>;
  352. toolbarItemsChildren: QueryList<DxiToolbarItemComponent>;
  353. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  354. protected _createInstance(element: any, options: any): DxPopup;
  355. ngOnDestroy(): void;
  356. ngOnChanges(changes: SimpleChanges): void;
  357. setupChanges(prop: string, changes: SimpleChanges): void;
  358. ngDoCheck(): void;
  359. _setOption(name: string, value: any): void;
  360. }
  361. export declare class DxPopupModule {
  362. }