devextreme-react 25.1.7 → 25.2.2-beta

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 (363) hide show
  1. package/cjs/accordion.d.ts +100 -100
  2. package/cjs/accordion.js +103 -103
  3. package/cjs/action-sheet.d.ts +79 -79
  4. package/cjs/action-sheet.js +91 -91
  5. package/cjs/autocomplete.d.ts +651 -651
  6. package/cjs/autocomplete.js +347 -347
  7. package/cjs/bar-gauge.d.ts +698 -698
  8. package/cjs/bar-gauge.js +410 -410
  9. package/cjs/box.d.ts +77 -77
  10. package/cjs/box.js +90 -90
  11. package/cjs/bullet.d.ts +205 -205
  12. package/cjs/bullet.js +155 -155
  13. package/cjs/button-group.d.ts +64 -64
  14. package/cjs/button-group.js +91 -91
  15. package/cjs/button.d.ts +30 -30
  16. package/cjs/button.js +61 -61
  17. package/cjs/calendar.d.ts +33 -33
  18. package/cjs/calendar.js +68 -68
  19. package/cjs/card-view.d.ts +2749 -2687
  20. package/cjs/card-view.js +1439 -1411
  21. package/cjs/chart.d.ts +4467 -4467
  22. package/cjs/chart.js +1569 -1569
  23. package/cjs/chat.d.ts +349 -190
  24. package/cjs/chat.js +215 -180
  25. package/cjs/check-box.d.ts +30 -30
  26. package/cjs/check-box.js +59 -59
  27. package/cjs/circular-gauge.d.ts +720 -720
  28. package/cjs/circular-gauge.js +427 -427
  29. package/cjs/color-box.d.ts +645 -625
  30. package/cjs/color-box.js +345 -323
  31. package/cjs/common/ai-integration.d.ts +3 -3
  32. package/cjs/common/ai-integration.js +7 -7
  33. package/cjs/common/charts.d.ts +3 -3
  34. package/cjs/common/charts.js +8 -8
  35. package/cjs/common/core/animation.d.ts +3 -3
  36. package/cjs/common/core/animation.js +11 -11
  37. package/cjs/common/core/environment.d.ts +3 -3
  38. package/cjs/common/core/environment.js +9 -9
  39. package/cjs/common/core/events.d.ts +3 -3
  40. package/cjs/common/core/events.js +10 -10
  41. package/cjs/common/core/index.d.ts +6 -6
  42. package/cjs/common/core/index.js +32 -32
  43. package/cjs/common/core/localization.d.ts +3 -3
  44. package/cjs/common/core/localization.js +13 -13
  45. package/cjs/common/data/custom-store.d.ts +3 -3
  46. package/cjs/common/data/custom-store.js +9 -9
  47. package/cjs/common/data.d.ts +3 -3
  48. package/cjs/common/data.js +25 -25
  49. package/cjs/common/export/excel.d.ts +3 -3
  50. package/cjs/common/export/excel.js +8 -8
  51. package/cjs/common/export/index.d.ts +4 -4
  52. package/cjs/common/export/index.js +30 -30
  53. package/cjs/common/export/pdf.d.ts +3 -3
  54. package/cjs/common/export/pdf.js +8 -8
  55. package/cjs/common/grids.d.ts +3 -3
  56. package/cjs/common/grids.js +4 -4
  57. package/cjs/common/index.d.ts +9 -9
  58. package/cjs/common/index.js +38 -38
  59. package/cjs/context-menu.d.ts +350 -350
  60. package/cjs/context-menu.js +295 -295
  61. package/cjs/core/component-base.d.ts +39 -39
  62. package/cjs/core/component-base.js +348 -344
  63. package/cjs/core/component.d.ts +42 -42
  64. package/cjs/core/component.js +85 -83
  65. package/cjs/core/config.d.ts +9 -9
  66. package/cjs/core/config.js +16 -16
  67. package/cjs/core/configuration/comparer.d.ts +12 -12
  68. package/cjs/core/configuration/comparer.js +101 -96
  69. package/cjs/core/configuration/config-node.d.ts +17 -33
  70. package/cjs/core/configuration/config-node.js +107 -105
  71. package/cjs/core/configuration/react/element.d.ts +36 -36
  72. package/cjs/core/configuration/react/element.js +52 -52
  73. package/cjs/core/configuration/react/templates.d.ts +7 -7
  74. package/cjs/core/configuration/react/templates.js +61 -61
  75. package/cjs/core/configuration/tree.d.ts +22 -22
  76. package/cjs/core/configuration/tree.js +118 -117
  77. package/cjs/core/configuration/utils.d.ts +16 -16
  78. package/cjs/core/configuration/utils.js +39 -38
  79. package/cjs/core/const.d.ts +3 -3
  80. package/cjs/core/const.js +78 -78
  81. package/cjs/core/contexts.d.ts +25 -25
  82. package/cjs/core/contexts.js +22 -21
  83. package/cjs/core/extension-component.d.ts +26 -26
  84. package/cjs/core/extension-component.js +66 -64
  85. package/cjs/core/helpers.d.ts +30 -30
  86. package/cjs/core/helpers.js +65 -64
  87. package/cjs/core/nested-option.d.ts +15 -15
  88. package/cjs/core/nested-option.js +60 -59
  89. package/cjs/core/options-manager.d.ts +35 -36
  90. package/cjs/core/options-manager.js +227 -223
  91. package/cjs/core/template-manager.d.ts +5 -5
  92. package/cjs/core/template-manager.js +164 -163
  93. package/cjs/core/template-wrapper.d.ts +5 -5
  94. package/cjs/core/template-wrapper.js +121 -120
  95. package/cjs/core/template.d.ts +21 -21
  96. package/cjs/core/template.js +33 -33
  97. package/cjs/core/types.d.ts +80 -64
  98. package/cjs/core/types.js +4 -4
  99. package/cjs/core/use-option-scanning.d.ts +9 -9
  100. package/cjs/core/use-option-scanning.js +50 -50
  101. package/cjs/core/widget-config.d.ts +11 -11
  102. package/cjs/core/widget-config.js +78 -76
  103. package/cjs/data-grid.d.ts +3897 -3551
  104. package/cjs/data-grid.js +1610 -1492
  105. package/cjs/date-box.d.ts +755 -753
  106. package/cjs/date-box.js +354 -354
  107. package/cjs/date-range-box.d.ts +759 -757
  108. package/cjs/date-range-box.js +355 -355
  109. package/cjs/diagram.d.ts +661 -661
  110. package/cjs/diagram.js +478 -478
  111. package/cjs/draggable.d.ts +43 -43
  112. package/cjs/draggable.js +78 -78
  113. package/cjs/drawer.d.ts +30 -30
  114. package/cjs/drawer.js +67 -67
  115. package/cjs/drop-down-box.d.ts +645 -625
  116. package/cjs/drop-down-box.js +349 -327
  117. package/cjs/drop-down-button.d.ts +560 -560
  118. package/cjs/drop-down-button.js +306 -306
  119. package/cjs/file-manager.d.ts +302 -302
  120. package/cjs/file-manager.js +233 -233
  121. package/cjs/file-uploader.d.ts +39 -39
  122. package/cjs/file-uploader.js +59 -59
  123. package/cjs/filter-builder.d.ts +216 -216
  124. package/cjs/filter-builder.js +156 -156
  125. package/cjs/form.d.ts +1020 -990
  126. package/cjs/form.js +527 -513
  127. package/cjs/funnel.d.ts +898 -898
  128. package/cjs/funnel.js +479 -479
  129. package/cjs/gallery.d.ts +79 -79
  130. package/cjs/gallery.js +92 -92
  131. package/cjs/gantt.d.ts +1029 -798
  132. package/cjs/gantt.js +564 -497
  133. package/cjs/html-editor.d.ts +480 -480
  134. package/cjs/html-editor.js +302 -302
  135. package/cjs/index.d.ts +87 -87
  136. package/cjs/index.js +198 -198
  137. package/cjs/linear-gauge.d.ts +734 -734
  138. package/cjs/linear-gauge.js +432 -432
  139. package/cjs/list.d.ts +416 -416
  140. package/cjs/list.js +196 -196
  141. package/cjs/load-indicator.d.ts +26 -26
  142. package/cjs/load-indicator.js +53 -53
  143. package/cjs/load-panel.d.ts +270 -253
  144. package/cjs/load-panel.js +237 -224
  145. package/cjs/lookup.d.ts +483 -483
  146. package/cjs/lookup.js +339 -339
  147. package/cjs/map.d.ts +156 -156
  148. package/cjs/map.js +164 -164
  149. package/cjs/menu.d.ts +355 -355
  150. package/cjs/menu.js +296 -296
  151. package/cjs/multi-view.d.ts +77 -77
  152. package/cjs/multi-view.js +92 -92
  153. package/cjs/number-box.d.ts +142 -142
  154. package/cjs/number-box.js +110 -110
  155. package/cjs/pagination.d.ts +22 -22
  156. package/cjs/pagination.js +60 -60
  157. package/cjs/pie-chart.d.ts +1449 -1449
  158. package/cjs/pie-chart.js +637 -637
  159. package/cjs/pivot-grid-field-chooser.d.ts +133 -133
  160. package/cjs/pivot-grid-field-chooser.js +125 -125
  161. package/cjs/pivot-grid.d.ts +350 -350
  162. package/cjs/pivot-grid.js +235 -235
  163. package/cjs/polar-chart.d.ts +3176 -3176
  164. package/cjs/polar-chart.js +1199 -1199
  165. package/cjs/popover.d.ts +331 -331
  166. package/cjs/popover.js +288 -288
  167. package/cjs/popup.d.ts +293 -293
  168. package/cjs/popup.js +262 -262
  169. package/cjs/progress-bar.d.ts +31 -31
  170. package/cjs/progress-bar.js +59 -59
  171. package/cjs/radio-group.d.ts +56 -56
  172. package/cjs/radio-group.js +90 -90
  173. package/cjs/range-selector.d.ts +2446 -2446
  174. package/cjs/range-selector.js +961 -961
  175. package/cjs/range-slider.d.ts +82 -82
  176. package/cjs/range-slider.js +107 -107
  177. package/cjs/recurrence-editor.d.ts +30 -30
  178. package/cjs/recurrence-editor.js +59 -59
  179. package/cjs/resizable.d.ts +33 -33
  180. package/cjs/resizable.js +60 -60
  181. package/cjs/responsive-box.d.ts +133 -133
  182. package/cjs/responsive-box.js +134 -134
  183. package/cjs/sankey.d.ts +610 -610
  184. package/cjs/sankey.js +352 -352
  185. package/cjs/scheduler.d.ts +1619 -549
  186. package/cjs/scheduler.js +775 -320
  187. package/cjs/scroll-view.d.ts +29 -29
  188. package/cjs/scroll-view.js +53 -53
  189. package/cjs/select-box.d.ts +674 -654
  190. package/cjs/select-box.js +374 -352
  191. package/cjs/slider.d.ts +82 -82
  192. package/cjs/slider.js +107 -107
  193. package/cjs/sortable.d.ts +47 -47
  194. package/cjs/sortable.js +78 -78
  195. package/cjs/sparkline.d.ts +205 -205
  196. package/cjs/sparkline.js +155 -155
  197. package/cjs/speech-to-text.d.ts +72 -0
  198. package/cjs/speech-to-text.js +94 -0
  199. package/cjs/speed-dial-action.d.ts +27 -27
  200. package/cjs/speed-dial-action.js +53 -53
  201. package/cjs/splitter.d.ts +85 -85
  202. package/cjs/splitter.js +90 -90
  203. package/cjs/stepper.d.ts +82 -82
  204. package/cjs/stepper.js +92 -92
  205. package/cjs/switch.d.ts +30 -30
  206. package/cjs/switch.js +59 -59
  207. package/cjs/tab-panel.d.ts +97 -97
  208. package/cjs/tab-panel.js +101 -101
  209. package/cjs/tabs.d.ts +90 -90
  210. package/cjs/tabs.js +94 -94
  211. package/cjs/tag-box.d.ts +675 -655
  212. package/cjs/tag-box.js +379 -357
  213. package/cjs/text-area.d.ts +40 -40
  214. package/cjs/text-area.js +59 -59
  215. package/cjs/text-box.d.ts +122 -122
  216. package/cjs/text-box.js +97 -97
  217. package/cjs/tile-view.d.ts +73 -73
  218. package/cjs/tile-view.js +90 -90
  219. package/cjs/toast.d.ts +255 -255
  220. package/cjs/toast.js +232 -232
  221. package/cjs/toolbar.d.ts +91 -91
  222. package/cjs/toolbar.js +99 -99
  223. package/cjs/tooltip.d.ts +283 -283
  224. package/cjs/tooltip.js +260 -260
  225. package/cjs/tree-list.d.ts +3453 -3093
  226. package/cjs/tree-list.js +1409 -1291
  227. package/cjs/tree-map.d.ts +586 -586
  228. package/cjs/tree-map.js +382 -382
  229. package/cjs/tree-view.d.ts +290 -290
  230. package/cjs/tree-view.js +145 -145
  231. package/cjs/validation-group.d.ts +25 -25
  232. package/cjs/validation-group.js +53 -53
  233. package/cjs/validation-summary.d.ts +66 -66
  234. package/cjs/validation-summary.js +90 -90
  235. package/cjs/validator.d.ts +271 -271
  236. package/cjs/validator.js +243 -243
  237. package/cjs/vector-map.d.ts +987 -987
  238. package/cjs/vector-map.js +487 -487
  239. package/esm/accordion.js +73 -73
  240. package/esm/action-sheet.js +61 -61
  241. package/esm/autocomplete.js +302 -302
  242. package/esm/bar-gauge.js +359 -359
  243. package/esm/box.js +60 -60
  244. package/esm/bullet.js +119 -119
  245. package/esm/button-group.js +61 -61
  246. package/esm/button.js +32 -32
  247. package/esm/calendar.js +39 -39
  248. package/esm/card-view.js +1332 -1306
  249. package/esm/chart.js +1447 -1447
  250. package/esm/chat.js +176 -143
  251. package/esm/check-box.js +30 -30
  252. package/esm/circular-gauge.js +374 -374
  253. package/esm/color-box.js +300 -279
  254. package/esm/common/ai-integration.js +3 -3
  255. package/esm/common/charts.js +3 -3
  256. package/esm/common/core/animation.js +3 -3
  257. package/esm/common/core/environment.js +3 -3
  258. package/esm/common/core/events.js +3 -3
  259. package/esm/common/core/index.js +6 -6
  260. package/esm/common/core/localization.js +3 -3
  261. package/esm/common/data/custom-store.js +3 -3
  262. package/esm/common/data.js +3 -3
  263. package/esm/common/export/excel.js +3 -3
  264. package/esm/common/export/index.js +4 -4
  265. package/esm/common/export/pdf.js +3 -3
  266. package/esm/common/grids.js +3 -3
  267. package/esm/common/index.js +9 -9
  268. package/esm/context-menu.js +251 -251
  269. package/esm/core/component-base.js +318 -314
  270. package/esm/core/component.js +59 -57
  271. package/esm/core/config.js +13 -13
  272. package/esm/core/configuration/comparer.js +97 -92
  273. package/esm/core/configuration/config-node.js +80 -78
  274. package/esm/core/configuration/react/element.js +47 -47
  275. package/esm/core/configuration/react/templates.js +57 -57
  276. package/esm/core/configuration/tree.js +110 -109
  277. package/esm/core/configuration/utils.js +32 -31
  278. package/esm/core/const.js +75 -75
  279. package/esm/core/contexts.js +19 -18
  280. package/esm/core/extension-component.js +39 -37
  281. package/esm/core/helpers.js +57 -56
  282. package/esm/core/nested-option.js +35 -34
  283. package/esm/core/options-manager.js +222 -218
  284. package/esm/core/template-manager.js +137 -136
  285. package/esm/core/template-wrapper.js +95 -94
  286. package/esm/core/template.js +29 -29
  287. package/esm/core/types.js +3 -3
  288. package/esm/core/use-option-scanning.js +46 -46
  289. package/esm/core/widget-config.js +73 -71
  290. package/esm/data-grid.js +1486 -1375
  291. package/esm/date-box.js +308 -308
  292. package/esm/date-range-box.js +309 -309
  293. package/esm/diagram.js +423 -423
  294. package/esm/draggable.js +48 -48
  295. package/esm/drawer.js +38 -38
  296. package/esm/drop-down-box.js +304 -283
  297. package/esm/drop-down-button.js +263 -263
  298. package/esm/file-manager.js +192 -192
  299. package/esm/file-uploader.js +30 -30
  300. package/esm/filter-builder.js +121 -121
  301. package/esm/form.js +475 -462
  302. package/esm/funnel.js +423 -423
  303. package/esm/gallery.js +62 -62
  304. package/esm/gantt.js +505 -442
  305. package/esm/html-editor.js +259 -259
  306. package/esm/index.js +87 -87
  307. package/esm/linear-gauge.js +378 -378
  308. package/esm/list.js +160 -160
  309. package/esm/load-indicator.js +24 -24
  310. package/esm/load-panel.js +196 -184
  311. package/esm/lookup.js +294 -294
  312. package/esm/map.js +128 -128
  313. package/esm/menu.js +252 -252
  314. package/esm/multi-view.js +62 -62
  315. package/esm/number-box.js +78 -78
  316. package/esm/pagination.js +31 -31
  317. package/esm/pie-chart.js +573 -573
  318. package/esm/pivot-grid-field-chooser.js +91 -91
  319. package/esm/pivot-grid.js +193 -193
  320. package/esm/polar-chart.js +1099 -1099
  321. package/esm/popover.js +245 -245
  322. package/esm/popup.js +221 -221
  323. package/esm/progress-bar.js +30 -30
  324. package/esm/radio-group.js +60 -60
  325. package/esm/range-selector.js +871 -871
  326. package/esm/range-slider.js +75 -75
  327. package/esm/recurrence-editor.js +30 -30
  328. package/esm/resizable.js +31 -31
  329. package/esm/responsive-box.js +101 -101
  330. package/esm/sankey.js +304 -304
  331. package/esm/scheduler.js +713 -281
  332. package/esm/scroll-view.js +24 -24
  333. package/esm/select-box.js +328 -307
  334. package/esm/slider.js +75 -75
  335. package/esm/sortable.js +48 -48
  336. package/esm/sparkline.js +119 -119
  337. package/esm/speech-to-text.js +63 -0
  338. package/esm/speed-dial-action.js +24 -24
  339. package/esm/splitter.js +60 -60
  340. package/esm/stepper.js +62 -62
  341. package/esm/switch.js +30 -30
  342. package/esm/tab-panel.js +71 -71
  343. package/esm/tabs.js +64 -64
  344. package/esm/tag-box.js +333 -312
  345. package/esm/text-area.js +30 -30
  346. package/esm/text-box.js +66 -66
  347. package/esm/tile-view.js +60 -60
  348. package/esm/toast.js +192 -192
  349. package/esm/toolbar.js +69 -69
  350. package/esm/tooltip.js +218 -218
  351. package/esm/tree-list.js +1297 -1186
  352. package/esm/tree-map.js +332 -332
  353. package/esm/tree-view.js +112 -112
  354. package/esm/validation-group.js +24 -24
  355. package/esm/validation-summary.js +60 -60
  356. package/esm/validator.js +203 -203
  357. package/esm/vector-map.js +432 -432
  358. package/package.json +14 -18
  359. package/speech-to-text/package.json +6 -0
  360. package/cjs/defer-rendering.d.ts +0 -217
  361. package/cjs/defer-rendering.js +0 -194
  362. package/defer-rendering/package.json +0 -6
  363. package/esm/defer-rendering.js +0 -156
package/cjs/toast.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 25.1.7
4
- * Build date: Mon Nov 10 2025
3
+ * Version: 25.2.2-beta
4
+ * Build date: Thu Nov 20 2025
5
5
  *
6
6
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -11,256 +11,256 @@
11
11
  * https://github.com/DevExpress/devextreme-react
12
12
  */
13
13
 
14
- import * as React from "react";
15
- import { Ref, ReactElement } from "react";
16
- import dxToast, { Properties } from "devextreme/ui/toast";
17
- import { IHtmlOptions, NestedComponentMeta } from "./core/component";
18
- import type { PositionConfig, AnimationConfig, CollisionResolution, AnimationState, AnimationType, CollisionResolutionCombination } from "devextreme/common/core/animation";
19
- import type { ContentReadyEvent, DisposingEvent, HiddenEvent, HidingEvent, InitializedEvent, ShowingEvent, ShownEvent } from "devextreme/ui/toast";
20
- import type { HorizontalAlignment, VerticalAlignment, Direction, PositionAlignment } from "devextreme/common";
21
- type ReplaceFieldTypes<TSource, TReplacement> = {
22
- [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
23
- };
24
- type IToastOptionsNarrowedEvents = {
25
- onContentReady?: ((e: ContentReadyEvent) => void);
26
- onDisposing?: ((e: DisposingEvent) => void);
27
- onHidden?: ((e: HiddenEvent) => void);
28
- onHiding?: ((e: HidingEvent) => void);
29
- onInitialized?: ((e: InitializedEvent) => void);
30
- onShowing?: ((e: ShowingEvent) => void);
31
- onShown?: ((e: ShownEvent) => void);
32
- };
33
- type IToastOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IToastOptionsNarrowedEvents> & IHtmlOptions & {
34
- contentRender?: (...params: any) => React.ReactNode;
35
- contentComponent?: React.ComponentType<any>;
36
- defaultPosition?: PositionConfig | string;
37
- defaultVisible?: boolean;
38
- onPositionChange?: (value: PositionConfig | string) => void;
39
- onVisibleChange?: (value: boolean) => void;
40
- }>;
41
- interface ToastRef {
42
- instance: () => dxToast;
43
- }
44
- declare const Toast: (props: React.PropsWithChildren<IToastOptions> & {
45
- ref?: Ref<ToastRef>;
46
- }) => ReactElement | null;
47
- type IAnimationProps = React.PropsWithChildren<{
48
- hide?: AnimationConfig;
49
- show?: AnimationConfig;
50
- }>;
51
- declare const Animation: ((props: IAnimationProps) => React.FunctionComponentElement<React.PropsWithChildren<{
52
- hide?: AnimationConfig | undefined;
53
- show?: AnimationConfig | undefined;
54
- } & {
55
- children?: React.ReactNode;
56
- } & {
57
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
58
- }>>) & NestedComponentMeta;
59
- type IAtProps = React.PropsWithChildren<{
60
- x?: HorizontalAlignment;
61
- y?: VerticalAlignment;
62
- }>;
63
- declare const At: ((props: IAtProps) => React.FunctionComponentElement<React.PropsWithChildren<{
64
- x?: HorizontalAlignment | undefined;
65
- y?: VerticalAlignment | undefined;
66
- } & {
67
- children?: React.ReactNode;
68
- } & {
69
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
70
- }>>) & NestedComponentMeta;
71
- type IBoundaryOffsetProps = React.PropsWithChildren<{
72
- x?: number;
73
- y?: number;
74
- }>;
75
- declare const BoundaryOffset: ((props: IBoundaryOffsetProps) => React.FunctionComponentElement<React.PropsWithChildren<{
76
- x?: number | undefined;
77
- y?: number | undefined;
78
- } & {
79
- children?: React.ReactNode;
80
- } & {
81
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
82
- }>>) & NestedComponentMeta;
83
- type ICollisionProps = React.PropsWithChildren<{
84
- x?: CollisionResolution;
85
- y?: CollisionResolution;
86
- }>;
87
- declare const Collision: ((props: ICollisionProps) => React.FunctionComponentElement<React.PropsWithChildren<{
88
- x?: CollisionResolution | undefined;
89
- y?: CollisionResolution | undefined;
90
- } & {
91
- children?: React.ReactNode;
92
- } & {
93
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
94
- }>>) & NestedComponentMeta;
95
- type IFromProps = React.PropsWithChildren<{
96
- left?: number;
97
- opacity?: number;
98
- position?: PositionConfig;
99
- scale?: number;
100
- top?: number;
101
- }>;
102
- declare const From: ((props: IFromProps) => React.FunctionComponentElement<React.PropsWithChildren<{
103
- left?: number | undefined;
104
- opacity?: number | undefined;
105
- position?: PositionConfig | undefined;
106
- scale?: number | undefined;
107
- top?: number | undefined;
108
- } & {
109
- children?: React.ReactNode;
110
- } & {
111
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
112
- }>>) & NestedComponentMeta;
113
- type IHideProps = React.PropsWithChildren<{
114
- complete?: (($element: any, config: AnimationConfig) => void);
115
- delay?: number;
116
- direction?: Direction | undefined;
117
- duration?: number;
118
- easing?: string;
119
- from?: AnimationState;
120
- staggerDelay?: number | undefined;
121
- start?: (($element: any, config: AnimationConfig) => void);
122
- to?: AnimationState;
123
- type?: AnimationType;
124
- }>;
125
- declare const Hide: ((props: IHideProps) => React.FunctionComponentElement<React.PropsWithChildren<{
126
- complete?: (($element: any, config: AnimationConfig) => void) | undefined;
127
- delay?: number | undefined;
128
- direction?: Direction | undefined;
129
- duration?: number | undefined;
130
- easing?: string | undefined;
131
- from?: AnimationState | undefined;
132
- staggerDelay?: number | undefined;
133
- start?: (($element: any, config: AnimationConfig) => void) | undefined;
134
- to?: AnimationState | undefined;
135
- type?: AnimationType | undefined;
136
- } & {
137
- children?: React.ReactNode;
138
- } & {
139
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
140
- }>>) & NestedComponentMeta;
141
- type IMyProps = React.PropsWithChildren<{
142
- x?: HorizontalAlignment;
143
- y?: VerticalAlignment;
144
- }>;
145
- declare const My: ((props: IMyProps) => React.FunctionComponentElement<React.PropsWithChildren<{
146
- x?: HorizontalAlignment | undefined;
147
- y?: VerticalAlignment | undefined;
148
- } & {
149
- children?: React.ReactNode;
150
- } & {
151
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
152
- }>>) & NestedComponentMeta;
153
- type IOffsetProps = React.PropsWithChildren<{
154
- x?: number;
155
- y?: number;
156
- }>;
157
- declare const Offset: ((props: IOffsetProps) => React.FunctionComponentElement<React.PropsWithChildren<{
158
- x?: number | undefined;
159
- y?: number | undefined;
160
- } & {
161
- children?: React.ReactNode;
162
- } & {
163
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
164
- }>>) & NestedComponentMeta;
165
- type IPositionProps = React.PropsWithChildren<{
166
- at?: Record<string, any> | PositionAlignment | {
167
- x?: HorizontalAlignment;
168
- y?: VerticalAlignment;
169
- };
170
- boundary?: any | string;
171
- boundaryOffset?: Record<string, any> | string | {
172
- x?: number;
173
- y?: number;
174
- };
175
- collision?: CollisionResolutionCombination | Record<string, any> | {
176
- x?: CollisionResolution;
177
- y?: CollisionResolution;
178
- };
179
- my?: Record<string, any> | PositionAlignment | {
180
- x?: HorizontalAlignment;
181
- y?: VerticalAlignment;
182
- };
183
- of?: any | string;
184
- offset?: Record<string, any> | string | {
185
- x?: number;
186
- y?: number;
187
- };
188
- }>;
189
- declare const Position: ((props: IPositionProps) => React.FunctionComponentElement<React.PropsWithChildren<{
190
- at?: Record<string, any> | PositionAlignment | {
191
- x?: HorizontalAlignment | undefined;
192
- y?: VerticalAlignment | undefined;
193
- } | undefined;
194
- boundary?: any | string;
195
- boundaryOffset?: string | Record<string, any> | {
196
- x?: number | undefined;
197
- y?: number | undefined;
198
- } | undefined;
199
- collision?: Record<string, any> | CollisionResolutionCombination | {
200
- x?: CollisionResolution | undefined;
201
- y?: CollisionResolution | undefined;
202
- } | undefined;
203
- my?: Record<string, any> | PositionAlignment | {
204
- x?: HorizontalAlignment | undefined;
205
- y?: VerticalAlignment | undefined;
206
- } | undefined;
207
- of?: any | string;
208
- offset?: string | Record<string, any> | {
209
- x?: number | undefined;
210
- y?: number | undefined;
211
- } | undefined;
212
- } & {
213
- children?: React.ReactNode;
214
- } & {
215
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
216
- }>>) & NestedComponentMeta;
217
- type IShowProps = React.PropsWithChildren<{
218
- complete?: (($element: any, config: AnimationConfig) => void);
219
- delay?: number;
220
- direction?: Direction | undefined;
221
- duration?: number;
222
- easing?: string;
223
- from?: AnimationState;
224
- staggerDelay?: number | undefined;
225
- start?: (($element: any, config: AnimationConfig) => void);
226
- to?: AnimationState;
227
- type?: AnimationType;
228
- }>;
229
- declare const Show: ((props: IShowProps) => React.FunctionComponentElement<React.PropsWithChildren<{
230
- complete?: (($element: any, config: AnimationConfig) => void) | undefined;
231
- delay?: number | undefined;
232
- direction?: Direction | undefined;
233
- duration?: number | undefined;
234
- easing?: string | undefined;
235
- from?: AnimationState | undefined;
236
- staggerDelay?: number | undefined;
237
- start?: (($element: any, config: AnimationConfig) => void) | undefined;
238
- to?: AnimationState | undefined;
239
- type?: AnimationType | undefined;
240
- } & {
241
- children?: React.ReactNode;
242
- } & {
243
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
244
- }>>) & NestedComponentMeta;
245
- type IToProps = React.PropsWithChildren<{
246
- left?: number;
247
- opacity?: number;
248
- position?: PositionConfig;
249
- scale?: number;
250
- top?: number;
251
- }>;
252
- declare const To: ((props: IToProps) => React.FunctionComponentElement<React.PropsWithChildren<{
253
- left?: number | undefined;
254
- opacity?: number | undefined;
255
- position?: PositionConfig | undefined;
256
- scale?: number | undefined;
257
- top?: number | undefined;
258
- } & {
259
- children?: React.ReactNode;
260
- } & {
261
- elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
262
- }>>) & NestedComponentMeta;
263
- export default Toast;
264
- export { Toast, IToastOptions, ToastRef, Animation, IAnimationProps, At, IAtProps, BoundaryOffset, IBoundaryOffsetProps, Collision, ICollisionProps, From, IFromProps, Hide, IHideProps, My, IMyProps, Offset, IOffsetProps, Position, IPositionProps, Show, IShowProps, To, IToProps };
265
- import type * as ToastTypes from 'devextreme/ui/toast_types';
266
- export { ToastTypes };
14
+ import * as React from "react";
15
+ import { Ref, ReactElement } from "react";
16
+ import dxToast, { Properties } from "devextreme/ui/toast";
17
+ import { IHtmlOptions, NestedComponentMeta } from "./core/component";
18
+ import type { PositionConfig, AnimationConfig, CollisionResolution, AnimationState, AnimationType, CollisionResolutionCombination } from "devextreme/common/core/animation";
19
+ import type { ContentReadyEvent, DisposingEvent, HiddenEvent, HidingEvent, InitializedEvent, ShowingEvent, ShownEvent } from "devextreme/ui/toast";
20
+ import type { HorizontalAlignment, VerticalAlignment, Direction, PositionAlignment } from "devextreme/common";
21
+ type ReplaceFieldTypes<TSource, TReplacement> = {
22
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
23
+ };
24
+ type IToastOptionsNarrowedEvents = {
25
+ onContentReady?: ((e: ContentReadyEvent) => void);
26
+ onDisposing?: ((e: DisposingEvent) => void);
27
+ onHidden?: ((e: HiddenEvent) => void);
28
+ onHiding?: ((e: HidingEvent) => void);
29
+ onInitialized?: ((e: InitializedEvent) => void);
30
+ onShowing?: ((e: ShowingEvent) => void);
31
+ onShown?: ((e: ShownEvent) => void);
32
+ };
33
+ type IToastOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IToastOptionsNarrowedEvents> & IHtmlOptions & {
34
+ contentRender?: (...params: any) => React.ReactNode;
35
+ contentComponent?: React.ComponentType<any>;
36
+ defaultPosition?: PositionConfig | string;
37
+ defaultVisible?: boolean;
38
+ onPositionChange?: (value: PositionConfig | string) => void;
39
+ onVisibleChange?: (value: boolean) => void;
40
+ }>;
41
+ interface ToastRef {
42
+ instance: () => dxToast;
43
+ }
44
+ declare const Toast: (props: React.PropsWithChildren<IToastOptions> & {
45
+ ref?: Ref<ToastRef>;
46
+ }) => ReactElement | null;
47
+ type IAnimationProps = React.PropsWithChildren<{
48
+ hide?: AnimationConfig;
49
+ show?: AnimationConfig;
50
+ }>;
51
+ declare const Animation: ((props: IAnimationProps) => React.FunctionComponentElement<React.PropsWithChildren<{
52
+ hide?: AnimationConfig | undefined;
53
+ show?: AnimationConfig | undefined;
54
+ } & {
55
+ children?: React.ReactNode;
56
+ } & {
57
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
58
+ }>>) & NestedComponentMeta;
59
+ type IAtProps = React.PropsWithChildren<{
60
+ x?: HorizontalAlignment;
61
+ y?: VerticalAlignment;
62
+ }>;
63
+ declare const At: ((props: IAtProps) => React.FunctionComponentElement<React.PropsWithChildren<{
64
+ x?: HorizontalAlignment | undefined;
65
+ y?: VerticalAlignment | undefined;
66
+ } & {
67
+ children?: React.ReactNode;
68
+ } & {
69
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
70
+ }>>) & NestedComponentMeta;
71
+ type IBoundaryOffsetProps = React.PropsWithChildren<{
72
+ x?: number;
73
+ y?: number;
74
+ }>;
75
+ declare const BoundaryOffset: ((props: IBoundaryOffsetProps) => React.FunctionComponentElement<React.PropsWithChildren<{
76
+ x?: number | undefined;
77
+ y?: number | undefined;
78
+ } & {
79
+ children?: React.ReactNode;
80
+ } & {
81
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
82
+ }>>) & NestedComponentMeta;
83
+ type ICollisionProps = React.PropsWithChildren<{
84
+ x?: CollisionResolution;
85
+ y?: CollisionResolution;
86
+ }>;
87
+ declare const Collision: ((props: ICollisionProps) => React.FunctionComponentElement<React.PropsWithChildren<{
88
+ x?: CollisionResolution | undefined;
89
+ y?: CollisionResolution | undefined;
90
+ } & {
91
+ children?: React.ReactNode;
92
+ } & {
93
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
94
+ }>>) & NestedComponentMeta;
95
+ type IFromProps = React.PropsWithChildren<{
96
+ left?: number;
97
+ opacity?: number;
98
+ position?: PositionConfig;
99
+ scale?: number;
100
+ top?: number;
101
+ }>;
102
+ declare const From: ((props: IFromProps) => React.FunctionComponentElement<React.PropsWithChildren<{
103
+ left?: number | undefined;
104
+ opacity?: number | undefined;
105
+ position?: PositionConfig | undefined;
106
+ scale?: number | undefined;
107
+ top?: number | undefined;
108
+ } & {
109
+ children?: React.ReactNode;
110
+ } & {
111
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
112
+ }>>) & NestedComponentMeta;
113
+ type IHideProps = React.PropsWithChildren<{
114
+ complete?: (($element: any, config: AnimationConfig) => void);
115
+ delay?: number;
116
+ direction?: Direction | undefined;
117
+ duration?: number;
118
+ easing?: string;
119
+ from?: AnimationState;
120
+ staggerDelay?: number | undefined;
121
+ start?: (($element: any, config: AnimationConfig) => void);
122
+ to?: AnimationState;
123
+ type?: AnimationType;
124
+ }>;
125
+ declare const Hide: ((props: IHideProps) => React.FunctionComponentElement<React.PropsWithChildren<{
126
+ complete?: (($element: any, config: AnimationConfig) => void) | undefined;
127
+ delay?: number | undefined;
128
+ direction?: Direction | undefined;
129
+ duration?: number | undefined;
130
+ easing?: string | undefined;
131
+ from?: AnimationState | undefined;
132
+ staggerDelay?: number | undefined;
133
+ start?: (($element: any, config: AnimationConfig) => void) | undefined;
134
+ to?: AnimationState | undefined;
135
+ type?: AnimationType | undefined;
136
+ } & {
137
+ children?: React.ReactNode;
138
+ } & {
139
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
140
+ }>>) & NestedComponentMeta;
141
+ type IMyProps = React.PropsWithChildren<{
142
+ x?: HorizontalAlignment;
143
+ y?: VerticalAlignment;
144
+ }>;
145
+ declare const My: ((props: IMyProps) => React.FunctionComponentElement<React.PropsWithChildren<{
146
+ x?: HorizontalAlignment | undefined;
147
+ y?: VerticalAlignment | undefined;
148
+ } & {
149
+ children?: React.ReactNode;
150
+ } & {
151
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
152
+ }>>) & NestedComponentMeta;
153
+ type IOffsetProps = React.PropsWithChildren<{
154
+ x?: number;
155
+ y?: number;
156
+ }>;
157
+ declare const Offset: ((props: IOffsetProps) => React.FunctionComponentElement<React.PropsWithChildren<{
158
+ x?: number | undefined;
159
+ y?: number | undefined;
160
+ } & {
161
+ children?: React.ReactNode;
162
+ } & {
163
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
164
+ }>>) & NestedComponentMeta;
165
+ type IPositionProps = React.PropsWithChildren<{
166
+ at?: Record<string, any> | PositionAlignment | {
167
+ x?: HorizontalAlignment;
168
+ y?: VerticalAlignment;
169
+ };
170
+ boundary?: any | string;
171
+ boundaryOffset?: Record<string, any> | string | {
172
+ x?: number;
173
+ y?: number;
174
+ };
175
+ collision?: CollisionResolutionCombination | Record<string, any> | {
176
+ x?: CollisionResolution;
177
+ y?: CollisionResolution;
178
+ };
179
+ my?: Record<string, any> | PositionAlignment | {
180
+ x?: HorizontalAlignment;
181
+ y?: VerticalAlignment;
182
+ };
183
+ of?: any | string;
184
+ offset?: Record<string, any> | string | {
185
+ x?: number;
186
+ y?: number;
187
+ };
188
+ }>;
189
+ declare const Position: ((props: IPositionProps) => React.FunctionComponentElement<React.PropsWithChildren<{
190
+ at?: Record<string, any> | PositionAlignment | {
191
+ x?: HorizontalAlignment | undefined;
192
+ y?: VerticalAlignment | undefined;
193
+ } | undefined;
194
+ boundary?: any | string;
195
+ boundaryOffset?: string | Record<string, any> | {
196
+ x?: number | undefined;
197
+ y?: number | undefined;
198
+ } | undefined;
199
+ collision?: Record<string, any> | CollisionResolutionCombination | {
200
+ x?: CollisionResolution | undefined;
201
+ y?: CollisionResolution | undefined;
202
+ } | undefined;
203
+ my?: Record<string, any> | PositionAlignment | {
204
+ x?: HorizontalAlignment | undefined;
205
+ y?: VerticalAlignment | undefined;
206
+ } | undefined;
207
+ of?: any | string;
208
+ offset?: string | Record<string, any> | {
209
+ x?: number | undefined;
210
+ y?: number | undefined;
211
+ } | undefined;
212
+ } & {
213
+ children?: React.ReactNode;
214
+ } & {
215
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
216
+ }>>) & NestedComponentMeta;
217
+ type IShowProps = React.PropsWithChildren<{
218
+ complete?: (($element: any, config: AnimationConfig) => void);
219
+ delay?: number;
220
+ direction?: Direction | undefined;
221
+ duration?: number;
222
+ easing?: string;
223
+ from?: AnimationState;
224
+ staggerDelay?: number | undefined;
225
+ start?: (($element: any, config: AnimationConfig) => void);
226
+ to?: AnimationState;
227
+ type?: AnimationType;
228
+ }>;
229
+ declare const Show: ((props: IShowProps) => React.FunctionComponentElement<React.PropsWithChildren<{
230
+ complete?: (($element: any, config: AnimationConfig) => void) | undefined;
231
+ delay?: number | undefined;
232
+ direction?: Direction | undefined;
233
+ duration?: number | undefined;
234
+ easing?: string | undefined;
235
+ from?: AnimationState | undefined;
236
+ staggerDelay?: number | undefined;
237
+ start?: (($element: any, config: AnimationConfig) => void) | undefined;
238
+ to?: AnimationState | undefined;
239
+ type?: AnimationType | undefined;
240
+ } & {
241
+ children?: React.ReactNode;
242
+ } & {
243
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
244
+ }>>) & NestedComponentMeta;
245
+ type IToProps = React.PropsWithChildren<{
246
+ left?: number;
247
+ opacity?: number;
248
+ position?: PositionConfig;
249
+ scale?: number;
250
+ top?: number;
251
+ }>;
252
+ declare const To: ((props: IToProps) => React.FunctionComponentElement<React.PropsWithChildren<{
253
+ left?: number | undefined;
254
+ opacity?: number | undefined;
255
+ position?: PositionConfig | undefined;
256
+ scale?: number | undefined;
257
+ top?: number | undefined;
258
+ } & {
259
+ children?: React.ReactNode;
260
+ } & {
261
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
262
+ }>>) & NestedComponentMeta;
263
+ export default Toast;
264
+ export { Toast, IToastOptions, ToastRef, Animation, IAnimationProps, At, IAtProps, BoundaryOffset, IBoundaryOffsetProps, Collision, ICollisionProps, From, IFromProps, Hide, IHideProps, My, IMyProps, Offset, IOffsetProps, Position, IPositionProps, Show, IShowProps, To, IToProps };
265
+ import type * as ToastTypes from 'devextreme/ui/toast_types';
266
+ export { ToastTypes };