devextreme-react 24.1.1-alpha-24082-1039 → 24.1.3

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 (312) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/cjs/accordion.d.ts +35 -48
  4. package/cjs/accordion.js +59 -121
  5. package/cjs/action-sheet.d.ts +27 -43
  6. package/cjs/action-sheet.js +50 -98
  7. package/cjs/autocomplete.d.ts +62 -190
  8. package/cjs/autocomplete.js +177 -355
  9. package/cjs/bar-gauge.d.ts +80 -292
  10. package/cjs/bar-gauge.js +206 -356
  11. package/cjs/box.d.ts +25 -42
  12. package/cjs/box.js +49 -116
  13. package/cjs/bullet.d.ts +35 -80
  14. package/cjs/bullet.js +75 -151
  15. package/cjs/button-group.d.ts +17 -43
  16. package/cjs/button-group.js +50 -115
  17. package/cjs/button.d.ts +14 -19
  18. package/cjs/button.js +28 -90
  19. package/cjs/calendar.d.ts +14 -24
  20. package/cjs/calendar.js +35 -182
  21. package/cjs/chart.d.ts +297 -1146
  22. package/cjs/chart.js +702 -1061
  23. package/cjs/check-box.d.ts +14 -16
  24. package/cjs/check-box.js +27 -103
  25. package/cjs/circular-gauge.d.ts +86 -287
  26. package/cjs/circular-gauge.js +222 -335
  27. package/cjs/color-box.d.ts +59 -173
  28. package/cjs/color-box.js +161 -315
  29. package/cjs/common/charts.d.ts +2 -2
  30. package/cjs/common/charts.js +2 -2
  31. package/cjs/common/data/custom-store.d.ts +2 -2
  32. package/cjs/common/data/custom-store.js +2 -2
  33. package/cjs/common/grids.d.ts +2 -2
  34. package/cjs/common/grids.js +2 -2
  35. package/cjs/common/index.d.ts +2 -2
  36. package/cjs/common/index.js +2 -2
  37. package/cjs/context-menu.d.ts +71 -148
  38. package/cjs/context-menu.js +147 -282
  39. package/cjs/core/component-base.d.ts +18 -47
  40. package/cjs/core/component-base.js +262 -228
  41. package/cjs/core/component.d.ts +26 -13
  42. package/cjs/core/component.js +58 -61
  43. package/cjs/core/config.d.ts +2 -2
  44. package/cjs/core/config.js +4 -15
  45. package/cjs/core/configuration/comparer.d.ts +2 -2
  46. package/cjs/core/configuration/comparer.js +27 -27
  47. package/cjs/core/configuration/config-node.d.ts +2 -3
  48. package/cjs/core/configuration/config-node.js +2 -2
  49. package/cjs/core/configuration/react/element.d.ts +12 -5
  50. package/cjs/core/configuration/react/element.js +12 -13
  51. package/cjs/core/configuration/react/templates.d.ts +2 -2
  52. package/cjs/core/configuration/react/templates.js +2 -8
  53. package/cjs/core/configuration/react/tree.d.ts +2 -2
  54. package/cjs/core/configuration/react/tree.js +33 -40
  55. package/cjs/core/configuration/tree.d.ts +2 -2
  56. package/cjs/core/configuration/tree.js +25 -26
  57. package/cjs/core/configuration/utils.d.ts +2 -2
  58. package/cjs/core/configuration/utils.js +12 -17
  59. package/cjs/core/extension-component.d.ts +14 -7
  60. package/cjs/core/extension-component.js +56 -31
  61. package/cjs/core/helpers.d.ts +4 -4
  62. package/cjs/core/helpers.js +34 -166
  63. package/cjs/core/nested-option.d.ts +3 -5
  64. package/cjs/core/nested-option.js +13 -35
  65. package/cjs/core/options-manager.d.ts +3 -2
  66. package/cjs/core/options-manager.js +87 -122
  67. package/cjs/core/template-manager.d.ts +2 -2
  68. package/cjs/core/template-manager.js +51 -82
  69. package/cjs/core/template-wrapper.d.ts +2 -2
  70. package/cjs/core/template-wrapper.js +32 -49
  71. package/cjs/core/template.d.ts +3 -7
  72. package/cjs/core/template.js +4 -65
  73. package/cjs/core/types.d.ts +8 -8
  74. package/cjs/core/types.js +2 -2
  75. package/cjs/core/widget-config.d.ts +2 -2
  76. package/cjs/core/widget-config.js +35 -19
  77. package/cjs/data-grid.d.ts +317 -1053
  78. package/cjs/data-grid.js +749 -1115
  79. package/cjs/date-box.d.ts +65 -200
  80. package/cjs/date-box.js +176 -389
  81. package/cjs/date-range-box.d.ts +65 -201
  82. package/cjs/date-range-box.js +177 -376
  83. package/cjs/defer-rendering.d.ts +41 -93
  84. package/cjs/defer-rendering.js +86 -154
  85. package/cjs/diagram.d.ts +106 -321
  86. package/cjs/diagram.js +259 -411
  87. package/cjs/draggable.d.ts +17 -30
  88. package/cjs/draggable.js +39 -92
  89. package/cjs/drawer.d.ts +14 -23
  90. package/cjs/drawer.js +34 -104
  91. package/cjs/drop-down-box.d.ts +59 -173
  92. package/cjs/drop-down-box.js +165 -322
  93. package/cjs/drop-down-button.d.ts +56 -159
  94. package/cjs/drop-down-button.js +151 -264
  95. package/cjs/file-manager.d.ts +50 -128
  96. package/cjs/file-manager.js +116 -223
  97. package/cjs/file-uploader.d.ts +14 -16
  98. package/cjs/file-uploader.js +27 -129
  99. package/cjs/filter-builder.d.ts +32 -86
  100. package/cjs/filter-builder.js +82 -150
  101. package/cjs/form.d.ts +80 -349
  102. package/cjs/form.js +262 -405
  103. package/cjs/funnel.d.ts +95 -358
  104. package/cjs/funnel.js +234 -415
  105. package/cjs/gallery.d.ts +29 -44
  106. package/cjs/gallery.js +51 -110
  107. package/cjs/gantt.d.ts +89 -294
  108. package/cjs/gantt.js +246 -423
  109. package/cjs/html-editor.d.ts +50 -164
  110. package/cjs/html-editor.js +138 -265
  111. package/cjs/index.d.ts +2 -2
  112. package/cjs/index.js +2 -2
  113. package/cjs/linear-gauge.d.ts +89 -288
  114. package/cjs/linear-gauge.js +221 -338
  115. package/cjs/list.d.ts +49 -118
  116. package/cjs/list.js +111 -280
  117. package/cjs/load-indicator.d.ts +14 -12
  118. package/cjs/load-indicator.js +21 -58
  119. package/cjs/load-panel.d.ts +47 -99
  120. package/cjs/load-panel.js +107 -223
  121. package/cjs/lookup.d.ts +62 -180
  122. package/cjs/lookup.js +170 -367
  123. package/cjs/map.d.ts +32 -80
  124. package/cjs/map.js +80 -167
  125. package/cjs/menu.d.ts +69 -171
  126. package/cjs/menu.js +149 -289
  127. package/cjs/multi-view.d.ts +29 -44
  128. package/cjs/multi-view.js +51 -104
  129. package/cjs/number-box.d.ts +23 -53
  130. package/cjs/number-box.js +57 -186
  131. package/cjs/pie-chart.d.ts +119 -481
  132. package/cjs/pie-chart.js +305 -523
  133. package/cjs/pivot-grid-field-chooser.d.ts +29 -61
  134. package/cjs/pivot-grid-field-chooser.js +60 -132
  135. package/cjs/pivot-grid.d.ts +53 -137
  136. package/cjs/pivot-grid.js +118 -228
  137. package/cjs/polar-chart.d.ts +228 -882
  138. package/cjs/polar-chart.js +539 -831
  139. package/cjs/popover.d.ts +56 -142
  140. package/cjs/popover.js +147 -272
  141. package/cjs/popup.d.ts +48 -124
  142. package/cjs/popup.js +133 -263
  143. package/cjs/progress-bar.d.ts +14 -16
  144. package/cjs/progress-bar.js +27 -100
  145. package/cjs/radio-group.d.ts +17 -42
  146. package/cjs/radio-group.js +49 -135
  147. package/cjs/range-selector.d.ts +194 -671
  148. package/cjs/range-selector.js +450 -649
  149. package/cjs/range-slider.d.ts +23 -51
  150. package/cjs/range-slider.js +55 -148
  151. package/cjs/recurrence-editor.d.ts +14 -16
  152. package/cjs/recurrence-editor.js +27 -97
  153. package/cjs/resizable.d.ts +14 -17
  154. package/cjs/resizable.js +28 -77
  155. package/cjs/responsive-box.d.ts +34 -71
  156. package/cjs/responsive-box.js +74 -125
  157. package/cjs/sankey.d.ts +71 -240
  158. package/cjs/sankey.js +175 -324
  159. package/cjs/scheduler.d.ts +29 -96
  160. package/cjs/scheduler.js +123 -293
  161. package/cjs/scroll-view.d.ts +14 -12
  162. package/cjs/scroll-view.js +21 -84
  163. package/cjs/select-box.d.ts +62 -191
  164. package/cjs/select-box.js +182 -369
  165. package/cjs/slider.d.ts +23 -51
  166. package/cjs/slider.js +55 -145
  167. package/cjs/sortable.d.ts +17 -30
  168. package/cjs/sortable.js +39 -113
  169. package/cjs/sparkline.d.ts +35 -80
  170. package/cjs/sparkline.js +75 -186
  171. package/cjs/speed-dial-action.d.ts +14 -12
  172. package/cjs/speed-dial-action.js +21 -56
  173. package/cjs/splitter.d.ts +30 -48
  174. package/cjs/splitter.js +49 -106
  175. package/cjs/switch.d.ts +14 -16
  176. package/cjs/switch.js +27 -100
  177. package/cjs/tab-panel.d.ts +31 -46
  178. package/cjs/tab-panel.js +57 -143
  179. package/cjs/tabs.d.ts +33 -46
  180. package/cjs/tabs.js +53 -141
  181. package/cjs/tag-box.d.ts +62 -192
  182. package/cjs/tag-box.js +187 -393
  183. package/cjs/text-area.d.ts +14 -16
  184. package/cjs/text-area.js +27 -143
  185. package/cjs/text-box.d.ts +20 -45
  186. package/cjs/text-box.js +50 -185
  187. package/cjs/tile-view.d.ts +25 -42
  188. package/cjs/tile-view.js +49 -115
  189. package/cjs/toast.d.ts +47 -106
  190. package/cjs/toast.js +114 -225
  191. package/cjs/toolbar.d.ts +27 -44
  192. package/cjs/toolbar.js +55 -95
  193. package/cjs/tooltip.d.ts +53 -124
  194. package/cjs/tooltip.js +130 -245
  195. package/cjs/tree-list.d.ts +274 -905
  196. package/cjs/tree-list.js +638 -998
  197. package/cjs/tree-map.d.ts +77 -257
  198. package/cjs/tree-map.js +186 -329
  199. package/cjs/tree-view.d.ts +34 -81
  200. package/cjs/tree-view.js +78 -232
  201. package/cjs/validation-group.d.ts +14 -12
  202. package/cjs/validation-group.js +21 -53
  203. package/cjs/validation-summary.d.ts +25 -42
  204. package/cjs/validation-summary.js +49 -74
  205. package/cjs/validator.d.ts +48 -142
  206. package/cjs/validator.js +135 -190
  207. package/cjs/vector-map.d.ts +92 -347
  208. package/cjs/vector-map.js +239 -387
  209. package/esm/accordion.js +56 -118
  210. package/esm/action-sheet.js +47 -95
  211. package/esm/autocomplete.js +174 -352
  212. package/esm/bar-gauge.js +203 -353
  213. package/esm/box.js +46 -113
  214. package/esm/bullet.js +72 -148
  215. package/esm/button-group.js +47 -112
  216. package/esm/button.js +26 -88
  217. package/esm/calendar.js +33 -180
  218. package/esm/chart.js +699 -1058
  219. package/esm/check-box.js +25 -101
  220. package/esm/circular-gauge.js +219 -332
  221. package/esm/color-box.js +158 -312
  222. package/esm/common/charts.js +2 -2
  223. package/esm/common/data/custom-store.js +2 -2
  224. package/esm/common/grids.js +2 -2
  225. package/esm/common/index.js +2 -2
  226. package/esm/context-menu.js +144 -279
  227. package/esm/core/component-base.js +254 -223
  228. package/esm/core/component.js +56 -59
  229. package/esm/core/config.js +4 -15
  230. package/esm/core/configuration/comparer.js +25 -25
  231. package/esm/core/configuration/config-node.js +2 -2
  232. package/esm/core/configuration/react/element.js +12 -12
  233. package/esm/core/configuration/react/templates.js +2 -8
  234. package/esm/core/configuration/react/tree.js +28 -35
  235. package/esm/core/configuration/tree.js +23 -23
  236. package/esm/core/configuration/utils.js +12 -17
  237. package/esm/core/extension-component.js +31 -30
  238. package/esm/core/helpers.js +31 -165
  239. package/esm/core/nested-option.js +11 -33
  240. package/esm/core/options-manager.js +83 -118
  241. package/esm/core/template-manager.js +44 -75
  242. package/esm/core/template-wrapper.js +27 -44
  243. package/esm/core/template.js +4 -42
  244. package/esm/core/types.js +2 -2
  245. package/esm/core/widget-config.js +35 -19
  246. package/esm/data-grid.js +746 -1112
  247. package/esm/date-box.js +173 -386
  248. package/esm/date-range-box.js +174 -373
  249. package/esm/defer-rendering.js +83 -151
  250. package/esm/diagram.js +256 -408
  251. package/esm/draggable.js +36 -89
  252. package/esm/drawer.js +32 -102
  253. package/esm/drop-down-box.js +162 -319
  254. package/esm/drop-down-button.js +148 -261
  255. package/esm/file-manager.js +113 -220
  256. package/esm/file-uploader.js +25 -127
  257. package/esm/filter-builder.js +79 -147
  258. package/esm/form.js +259 -402
  259. package/esm/funnel.js +231 -412
  260. package/esm/gallery.js +48 -107
  261. package/esm/gantt.js +243 -420
  262. package/esm/html-editor.js +135 -262
  263. package/esm/index.js +2 -2
  264. package/esm/linear-gauge.js +218 -335
  265. package/esm/list.js +108 -277
  266. package/esm/load-indicator.js +19 -56
  267. package/esm/load-panel.js +104 -220
  268. package/esm/lookup.js +167 -364
  269. package/esm/map.js +77 -164
  270. package/esm/menu.js +146 -286
  271. package/esm/multi-view.js +48 -101
  272. package/esm/number-box.js +54 -183
  273. package/esm/pie-chart.js +302 -520
  274. package/esm/pivot-grid-field-chooser.js +57 -129
  275. package/esm/pivot-grid.js +115 -225
  276. package/esm/polar-chart.js +536 -828
  277. package/esm/popover.js +144 -269
  278. package/esm/popup.js +130 -260
  279. package/esm/progress-bar.js +25 -98
  280. package/esm/radio-group.js +46 -132
  281. package/esm/range-selector.js +447 -646
  282. package/esm/range-slider.js +52 -145
  283. package/esm/recurrence-editor.js +25 -95
  284. package/esm/resizable.js +26 -75
  285. package/esm/responsive-box.js +71 -122
  286. package/esm/sankey.js +172 -321
  287. package/esm/scheduler.js +120 -290
  288. package/esm/scroll-view.js +19 -82
  289. package/esm/select-box.js +179 -366
  290. package/esm/slider.js +52 -142
  291. package/esm/sortable.js +36 -110
  292. package/esm/sparkline.js +72 -183
  293. package/esm/speed-dial-action.js +19 -54
  294. package/esm/splitter.js +46 -103
  295. package/esm/switch.js +25 -98
  296. package/esm/tab-panel.js +54 -140
  297. package/esm/tabs.js +50 -138
  298. package/esm/tag-box.js +184 -390
  299. package/esm/text-area.js +25 -141
  300. package/esm/text-box.js +47 -182
  301. package/esm/tile-view.js +46 -112
  302. package/esm/toast.js +111 -222
  303. package/esm/toolbar.js +52 -92
  304. package/esm/tooltip.js +127 -242
  305. package/esm/tree-list.js +635 -995
  306. package/esm/tree-map.js +183 -326
  307. package/esm/tree-view.js +75 -229
  308. package/esm/validation-group.js +19 -51
  309. package/esm/validation-summary.js +46 -71
  310. package/esm/validator.js +132 -187
  311. package/esm/vector-map.js +236 -384
  312. package/package.json +50 -51
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Developer Express Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Developer Express Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # DevExtreme React UI Components #
2
-
3
- [![Build Status](https://api.shippable.com/projects/5a9532d976382b0800e7a53c/badge?branch=master)](https://app.shippable.com/github/DevExpress/devextreme-react)
4
- [![NPM](https://img.shields.io/npm/v/devextreme-react.svg?maxAge=43200)](https://www.npmjs.com/package/devextreme-react)
5
-
6
- This project allows you to use [DevExtreme widgets](http://js.devexpress.com/Demos/WidgetsGallery/) in [React](https://reactjs.org) applications.
7
-
8
- * [Documentation](https://js.devexpress.com/Documentation/Guide/React_Components/DevExtreme_React_Components/)
9
- * [Technical Demos](https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/Overview/React/Light/)
10
- * [API Reference](http://js.devexpress.com/Documentation/ApiReference/)
11
- * [Live example](https://stackblitz.com/edit/devextreme-react)
12
-
13
- ## License ##
14
-
15
- **DevExtreme React UI Components are released as an MIT-licensed (free and open-source) add-on to DevExtreme.**
16
-
17
- Familiarize yourself with the [DevExtreme License](https://js.devexpress.com/Licensing/). [Free trial is available!](http://js.devexpress.com/Buy/)
18
-
19
- ## Support & Feedback ##
20
-
21
- If you have questions regarding React functionality, consult [React docs](https://reactjs.org/docs).
22
-
23
- If you want to report a bug, request a feature, or ask a question, submit an [issue](https://github.com/DevExpress/devextreme-react/issues) to this repo. Alternatively, you can contact us at the [DevExpress Support Center](https://www.devexpress.com/Support/Center) if you own an active DevExtreme license.
1
+ # DevExtreme React UI Components #
2
+
3
+ [![Build Status](https://api.shippable.com/projects/5a9532d976382b0800e7a53c/badge?branch=master)](https://app.shippable.com/github/DevExpress/devextreme-react)
4
+ [![NPM](https://img.shields.io/npm/v/devextreme-react.svg?maxAge=43200)](https://www.npmjs.com/package/devextreme-react)
5
+
6
+ This project allows you to use [DevExtreme widgets](http://js.devexpress.com/Demos/WidgetsGallery/) in [React](https://reactjs.org) applications.
7
+
8
+ * [Documentation](https://js.devexpress.com/Documentation/Guide/React_Components/DevExtreme_React_Components/)
9
+ * [Technical Demos](https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/Overview/React/Light/)
10
+ * [API Reference](http://js.devexpress.com/Documentation/ApiReference/)
11
+ * [Live example](https://stackblitz.com/edit/devextreme-react)
12
+
13
+ ## License ##
14
+
15
+ **DevExtreme React UI Components are released as an MIT-licensed (free and open-source) add-on to DevExtreme.**
16
+
17
+ Familiarize yourself with the [DevExtreme License](https://js.devexpress.com/Licensing/). [Free trial is available!](http://js.devexpress.com/Buy/)
18
+
19
+ ## Support & Feedback ##
20
+
21
+ If you have questions regarding React functionality, consult [React docs](https://reactjs.org/docs).
22
+
23
+ If you want to report a bug, request a feature, or ask a question, submit an [issue](https://github.com/DevExpress/devextreme-react/issues) to this repo. Alternatively, you can contact us at the [DevExpress Support Center](https://www.devexpress.com/Support/Center) if you own an active DevExtreme license.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.1-alpha-24082-1039
4
- * Build date: Fri Mar 22 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -11,18 +11,18 @@
11
11
  * https://github.com/DevExpress/devextreme-react
12
12
  */
13
13
 
14
- /// <reference types="react" />
15
14
  export { ExplicitTypes } from "devextreme/ui/accordion";
15
+ import * as React from "react";
16
+ import { Ref, ReactElement } from "react";
16
17
  import dxAccordion, { Properties } from "devextreme/ui/accordion";
17
- import { Component as BaseComponent, IHtmlOptions } from "./core/component";
18
- import NestedOption from "./core/nested-option";
18
+ import { IHtmlOptions, IElementDescriptor } from "./core/component";
19
19
  import type { dxAccordionItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent, ItemTitleClickEvent } from "devextreme/ui/accordion";
20
20
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
21
21
  import type { template } from "devextreme/core/templates/template";
22
- declare type ReplaceFieldTypes<TSource, TReplacement> = {
22
+ type ReplaceFieldTypes<TSource, TReplacement> = {
23
23
  [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
24
24
  };
25
- declare type IAccordionOptionsNarrowedEvents<TItem = any, TKey = any> = {
25
+ type IAccordionOptionsNarrowedEvents<TItem = any, TKey = any> = {
26
26
  onContentReady?: ((e: ContentReadyEvent<TItem, TKey>) => void);
27
27
  onDisposing?: ((e: DisposingEvent<TItem, TKey>) => void);
28
28
  onInitialized?: ((e: InitializedEvent<TItem, TKey>) => void);
@@ -32,14 +32,12 @@ declare type IAccordionOptionsNarrowedEvents<TItem = any, TKey = any> = {
32
32
  onItemRendered?: ((e: ItemRenderedEvent<TItem, TKey>) => void);
33
33
  onItemTitleClick?: ((e: ItemTitleClickEvent<TItem, TKey>) => void);
34
34
  };
35
- declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IAccordionOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
35
+ type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IAccordionOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
36
36
  dataSource?: Properties<TItem, TKey>["dataSource"];
37
37
  itemRender?: (...params: any) => React.ReactNode;
38
38
  itemComponent?: React.ComponentType<any>;
39
- itemKeyFn?: (data: any) => string;
40
39
  itemTitleRender?: (...params: any) => React.ReactNode;
41
40
  itemTitleComponent?: React.ComponentType<any>;
42
- itemTitleKeyFn?: (data: any) => string;
43
41
  defaultItems?: Array<any | dxAccordionItem | string>;
44
42
  defaultSelectedIndex?: number;
45
43
  defaultSelectedItem?: any;
@@ -51,32 +49,31 @@ declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildre
51
49
  onSelectedItemKeysChange?: (value: Array<any>) => void;
52
50
  onSelectedItemsChange?: (value: Array<any>) => void;
53
51
  }>;
54
- declare class Accordion<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IAccordionOptions<TItem, TKey>>> {
55
- get instance(): dxAccordion<TItem, TKey>;
56
- protected _WidgetClass: typeof dxAccordion;
57
- protected subscribableOptions: string[];
58
- protected independentEvents: string[];
59
- protected _defaults: {
60
- defaultItems: string;
61
- defaultSelectedIndex: string;
62
- defaultSelectedItem: string;
63
- defaultSelectedItemKeys: string;
64
- defaultSelectedItems: string;
65
- };
66
- protected _expectedChildren: {
67
- item: {
68
- optionName: string;
69
- isCollectionItem: boolean;
70
- };
71
- };
72
- protected _templateProps: {
73
- tmplOption: string;
74
- render: string;
75
- component: string;
76
- keyFn: string;
77
- }[];
52
+ interface AccordionRef<TItem = any, TKey = any> {
53
+ instance: () => dxAccordion<TItem, TKey>;
78
54
  }
79
- declare type IItemProps = React.PropsWithChildren<{
55
+ declare const Accordion: <TItem = any, TKey = any>(props: ReplaceFieldTypes<Properties<TItem, TKey>, IAccordionOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
56
+ dataSource?: import("../../devextreme/artifacts/npm/devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
57
+ itemRender?: ((...params: any) => React.ReactNode) | undefined;
58
+ itemComponent?: React.ComponentType<any> | undefined;
59
+ itemTitleRender?: ((...params: any) => React.ReactNode) | undefined;
60
+ itemTitleComponent?: React.ComponentType<any> | undefined;
61
+ defaultItems?: any[] | undefined;
62
+ defaultSelectedIndex?: number | undefined;
63
+ defaultSelectedItem?: any;
64
+ defaultSelectedItemKeys?: any[] | undefined;
65
+ defaultSelectedItems?: any[] | undefined;
66
+ onItemsChange?: ((value: Array<any | dxAccordionItem | string>) => void) | undefined;
67
+ onSelectedIndexChange?: ((value: number) => void) | undefined;
68
+ onSelectedItemChange?: ((value: any) => void) | undefined;
69
+ onSelectedItemKeysChange?: ((value: Array<any>) => void) | undefined;
70
+ onSelectedItemsChange?: ((value: Array<any>) => void) | undefined;
71
+ } & {
72
+ children?: React.ReactNode;
73
+ } & {
74
+ ref?: React.Ref<AccordionRef<TItem, TKey>> | undefined;
75
+ }) => ReactElement | null;
76
+ type IItemProps = React.PropsWithChildren<{
80
77
  disabled?: boolean;
81
78
  html?: string;
82
79
  icon?: string;
@@ -87,22 +84,12 @@ declare type IItemProps = React.PropsWithChildren<{
87
84
  visible?: boolean;
88
85
  render?: (...params: any) => React.ReactNode;
89
86
  component?: React.ComponentType<any>;
90
- keyFn?: (data: any) => string;
91
87
  titleRender?: (...params: any) => React.ReactNode;
92
88
  titleComponent?: React.ComponentType<any>;
93
- titleKeyFn?: (data: any) => string;
94
89
  }>;
95
- declare class Item extends NestedOption<IItemProps> {
96
- static OptionName: string;
97
- static IsCollectionItem: boolean;
98
- static TemplateProps: {
99
- tmplOption: string;
100
- render: string;
101
- component: string;
102
- keyFn: string;
103
- }[];
104
- }
90
+ declare const _componentItem: React.MemoExoticComponent<(props: IItemProps) => React.FunctionComponentElement<IItemProps>>;
91
+ declare const Item: typeof _componentItem & IElementDescriptor;
105
92
  export default Accordion;
106
- export { Accordion, IAccordionOptions, Item, IItemProps };
93
+ export { Accordion, IAccordionOptions, AccordionRef, Item, IItemProps };
107
94
  import type * as AccordionTypes from 'devextreme/ui/accordion_types';
108
95
  export { AccordionTypes };
package/cjs/accordion.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.1-alpha-24082-1039
4
- * Build date: Fri Mar 22 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -13,21 +13,6 @@
13
13
 
14
14
  "use client";
15
15
  "use strict";
16
- var __extends = (this && this.__extends) || (function () {
17
- var extendStatics = function (d, b) {
18
- extendStatics = Object.setPrototypeOf ||
19
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21
- return extendStatics(d, b);
22
- };
23
- return function (d, b) {
24
- if (typeof b !== "function" && b !== null)
25
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
26
- extendStatics(d, b);
27
- function __() { this.constructor = d; }
28
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
- };
30
- })();
31
16
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
32
17
  if (k2 === undefined) k2 = k;
33
18
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -56,116 +41,69 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
56
41
  };
57
42
  Object.defineProperty(exports, "__esModule", { value: true });
58
43
  exports.Item = exports.Accordion = void 0;
59
- var accordion_1 = __importDefault(require("devextreme/ui/accordion"));
60
- var PropTypes = __importStar(require("prop-types"));
61
- var component_1 = require("./core/component");
62
- var nested_option_1 = __importDefault(require("./core/nested-option"));
63
- var Accordion = /** @class */ (function (_super) {
64
- __extends(Accordion, _super);
65
- function Accordion() {
66
- var _this = _super !== null && _super.apply(this, arguments) || this;
67
- _this._WidgetClass = accordion_1.default;
68
- _this.subscribableOptions = ["items", "selectedIndex", "selectedItem", "selectedItemKeys", "selectedItems"];
69
- _this.independentEvents = ["onContentReady", "onDisposing", "onInitialized", "onItemClick", "onItemContextMenu", "onItemHold", "onItemRendered", "onItemTitleClick"];
70
- _this._defaults = {
71
- defaultItems: "items",
72
- defaultSelectedIndex: "selectedIndex",
73
- defaultSelectedItem: "selectedItem",
74
- defaultSelectedItemKeys: "selectedItemKeys",
75
- defaultSelectedItems: "selectedItems"
76
- };
77
- _this._expectedChildren = {
78
- item: { optionName: "items", isCollectionItem: true }
79
- };
80
- _this._templateProps = [{
81
- tmplOption: "itemTemplate",
82
- render: "itemRender",
83
- component: "itemComponent",
84
- keyFn: "itemKeyFn"
85
- }, {
86
- tmplOption: "itemTitleTemplate",
87
- render: "itemTitleRender",
88
- component: "itemTitleComponent",
89
- keyFn: "itemTitleKeyFn"
90
- }];
91
- return _this;
92
- }
93
- Object.defineProperty(Accordion.prototype, "instance", {
94
- get: function () {
95
- return this._instance;
44
+ const React = __importStar(require("react"));
45
+ const react_1 = require("react");
46
+ const accordion_1 = __importDefault(require("devextreme/ui/accordion"));
47
+ const component_1 = require("./core/component");
48
+ const nested_option_1 = __importDefault(require("./core/nested-option"));
49
+ const Accordion = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
50
+ const baseRef = (0, react_1.useRef)(null);
51
+ (0, react_1.useImperativeHandle)(ref, () => ({
52
+ instance() {
53
+ return baseRef.current?.getInstance();
54
+ }
55
+ }), [baseRef.current]);
56
+ const subscribableOptions = (0, react_1.useMemo)(() => (["items", "selectedIndex", "selectedItem", "selectedItemKeys", "selectedItems"]), []);
57
+ const independentEvents = (0, react_1.useMemo)(() => (["onContentReady", "onDisposing", "onInitialized", "onItemClick", "onItemContextMenu", "onItemHold", "onItemRendered", "onItemTitleClick"]), []);
58
+ const defaults = (0, react_1.useMemo)(() => ({
59
+ defaultItems: "items",
60
+ defaultSelectedIndex: "selectedIndex",
61
+ defaultSelectedItem: "selectedItem",
62
+ defaultSelectedItemKeys: "selectedItemKeys",
63
+ defaultSelectedItems: "selectedItems",
64
+ }), []);
65
+ const expectedChildren = (0, react_1.useMemo)(() => ({
66
+ item: { optionName: "items", isCollectionItem: true }
67
+ }), []);
68
+ const templateProps = (0, react_1.useMemo)(() => ([
69
+ {
70
+ tmplOption: "itemTemplate",
71
+ render: "itemRender",
72
+ component: "itemComponent"
73
+ },
74
+ {
75
+ tmplOption: "itemTitleTemplate",
76
+ render: "itemTitleRender",
77
+ component: "itemTitleComponent"
96
78
  },
97
- enumerable: false,
98
- configurable: true
99
- });
100
- return Accordion;
101
- }(component_1.Component));
79
+ ]), []);
80
+ return (React.createElement((component_1.Component), {
81
+ WidgetClass: accordion_1.default,
82
+ ref: baseRef,
83
+ subscribableOptions,
84
+ independentEvents,
85
+ defaults,
86
+ expectedChildren,
87
+ templateProps,
88
+ ...props,
89
+ }));
90
+ }));
102
91
  exports.Accordion = Accordion;
103
- Accordion.propTypes = {
104
- accessKey: PropTypes.string,
105
- activeStateEnabled: PropTypes.bool,
106
- animationDuration: PropTypes.number,
107
- collapsible: PropTypes.bool,
108
- deferRendering: PropTypes.bool,
109
- disabled: PropTypes.bool,
110
- elementAttr: PropTypes.object,
111
- focusStateEnabled: PropTypes.bool,
112
- height: PropTypes.oneOfType([
113
- PropTypes.func,
114
- PropTypes.number,
115
- PropTypes.string
116
- ]),
117
- hint: PropTypes.string,
118
- hoverStateEnabled: PropTypes.bool,
119
- itemHoldTimeout: PropTypes.number,
120
- items: PropTypes.array,
121
- keyExpr: PropTypes.oneOfType([
122
- PropTypes.func,
123
- PropTypes.string
124
- ]),
125
- multiple: PropTypes.bool,
126
- noDataText: PropTypes.string,
127
- onContentReady: PropTypes.func,
128
- onDisposing: PropTypes.func,
129
- onInitialized: PropTypes.func,
130
- onItemClick: PropTypes.func,
131
- onItemContextMenu: PropTypes.func,
132
- onItemHold: PropTypes.func,
133
- onItemRendered: PropTypes.func,
134
- onItemTitleClick: PropTypes.func,
135
- onOptionChanged: PropTypes.func,
136
- onSelectionChanged: PropTypes.func,
137
- repaintChangesOnly: PropTypes.bool,
138
- rtlEnabled: PropTypes.bool,
139
- selectedIndex: PropTypes.number,
140
- selectedItemKeys: PropTypes.array,
141
- selectedItems: PropTypes.array,
142
- tabIndex: PropTypes.number,
143
- visible: PropTypes.bool,
144
- width: PropTypes.oneOfType([
145
- PropTypes.func,
146
- PropTypes.number,
147
- PropTypes.string
148
- ])
149
- };
150
- var Item = /** @class */ (function (_super) {
151
- __extends(Item, _super);
152
- function Item() {
153
- return _super !== null && _super.apply(this, arguments) || this;
154
- }
155
- Item.OptionName = "items";
156
- Item.IsCollectionItem = true;
157
- Item.TemplateProps = [{
92
+ const _componentItem = (0, react_1.memo)((props) => {
93
+ return React.createElement((nested_option_1.default), { ...props });
94
+ });
95
+ const Item = Object.assign(_componentItem, {
96
+ OptionName: "items",
97
+ IsCollectionItem: true,
98
+ TemplateProps: [{
158
99
  tmplOption: "template",
159
100
  render: "render",
160
- component: "component",
161
- keyFn: "keyFn"
101
+ component: "component"
162
102
  }, {
163
103
  tmplOption: "titleTemplate",
164
104
  render: "titleRender",
165
- component: "titleComponent",
166
- keyFn: "titleKeyFn"
167
- }];
168
- return Item;
169
- }(nested_option_1.default));
105
+ component: "titleComponent"
106
+ }],
107
+ });
170
108
  exports.Item = Item;
171
109
  exports.default = Accordion;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.1-alpha-24082-1039
4
- * Build date: Fri Mar 22 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -11,19 +11,19 @@
11
11
  * https://github.com/DevExpress/devextreme-react
12
12
  */
13
13
 
14
- /// <reference types="react" />
15
14
  export { ExplicitTypes } from "devextreme/ui/action_sheet";
15
+ import * as React from "react";
16
+ import { Ref, ReactElement } from "react";
16
17
  import dxActionSheet, { Properties } from "devextreme/ui/action_sheet";
17
- import { Component as BaseComponent, IHtmlOptions } from "./core/component";
18
- import NestedOption from "./core/nested-option";
18
+ import { IHtmlOptions, IElementDescriptor } from "./core/component";
19
19
  import type { dxActionSheetItem, CancelClickEvent, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent } from "devextreme/ui/action_sheet";
20
20
  import type { NativeEventInfo } from "devextreme/events/index";
21
21
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
22
22
  import type { template } from "devextreme/core/templates/template";
23
- declare type ReplaceFieldTypes<TSource, TReplacement> = {
23
+ type ReplaceFieldTypes<TSource, TReplacement> = {
24
24
  [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
25
25
  };
26
- declare type IActionSheetOptionsNarrowedEvents<TItem = any, TKey = any> = {
26
+ type IActionSheetOptionsNarrowedEvents<TItem = any, TKey = any> = {
27
27
  onCancelClick?: ((e: CancelClickEvent<TItem, TKey>) => void);
28
28
  onContentReady?: ((e: ContentReadyEvent<TItem, TKey>) => void);
29
29
  onDisposing?: ((e: DisposingEvent<TItem, TKey>) => void);
@@ -33,39 +33,32 @@ declare type IActionSheetOptionsNarrowedEvents<TItem = any, TKey = any> = {
33
33
  onItemHold?: ((e: ItemHoldEvent<TItem, TKey>) => void);
34
34
  onItemRendered?: ((e: ItemRenderedEvent<TItem, TKey>) => void);
35
35
  };
36
- declare type IActionSheetOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IActionSheetOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
36
+ type IActionSheetOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IActionSheetOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
37
37
  dataSource?: Properties<TItem, TKey>["dataSource"];
38
38
  itemRender?: (...params: any) => React.ReactNode;
39
39
  itemComponent?: React.ComponentType<any>;
40
- itemKeyFn?: (data: any) => string;
41
40
  defaultItems?: Array<any | dxActionSheetItem | string>;
42
41
  defaultVisible?: boolean;
43
42
  onItemsChange?: (value: Array<any | dxActionSheetItem | string>) => void;
44
43
  onVisibleChange?: (value: boolean) => void;
45
44
  }>;
46
- declare class ActionSheet<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IActionSheetOptions<TItem, TKey>>> {
47
- get instance(): dxActionSheet<TItem, TKey>;
48
- protected _WidgetClass: typeof dxActionSheet;
49
- protected subscribableOptions: string[];
50
- protected independentEvents: string[];
51
- protected _defaults: {
52
- defaultItems: string;
53
- defaultVisible: string;
54
- };
55
- protected _expectedChildren: {
56
- item: {
57
- optionName: string;
58
- isCollectionItem: boolean;
59
- };
60
- };
61
- protected _templateProps: {
62
- tmplOption: string;
63
- render: string;
64
- component: string;
65
- keyFn: string;
66
- }[];
45
+ interface ActionSheetRef<TItem = any, TKey = any> {
46
+ instance: () => dxActionSheet<TItem, TKey>;
67
47
  }
68
- declare type IItemProps = React.PropsWithChildren<{
48
+ declare const ActionSheet: <TItem = any, TKey = any>(props: ReplaceFieldTypes<Properties<TItem, TKey>, IActionSheetOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
49
+ dataSource?: import("../../devextreme/artifacts/npm/devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
50
+ itemRender?: ((...params: any) => React.ReactNode) | undefined;
51
+ itemComponent?: React.ComponentType<any> | undefined;
52
+ defaultItems?: any[] | undefined;
53
+ defaultVisible?: boolean | undefined;
54
+ onItemsChange?: ((value: Array<any | dxActionSheetItem | string>) => void) | undefined;
55
+ onVisibleChange?: ((value: boolean) => void) | undefined;
56
+ } & {
57
+ children?: React.ReactNode;
58
+ } & {
59
+ ref?: React.Ref<ActionSheetRef<TItem, TKey>> | undefined;
60
+ }) => ReactElement | null;
61
+ type IItemProps = React.PropsWithChildren<{
69
62
  disabled?: boolean;
70
63
  icon?: string;
71
64
  onClick?: ((e: NativeEventInfo<any>) => void);
@@ -75,19 +68,10 @@ declare type IItemProps = React.PropsWithChildren<{
75
68
  type?: "danger" | "default" | "normal" | "success";
76
69
  render?: (...params: any) => React.ReactNode;
77
70
  component?: React.ComponentType<any>;
78
- keyFn?: (data: any) => string;
79
71
  }>;
80
- declare class Item extends NestedOption<IItemProps> {
81
- static OptionName: string;
82
- static IsCollectionItem: boolean;
83
- static TemplateProps: {
84
- tmplOption: string;
85
- render: string;
86
- component: string;
87
- keyFn: string;
88
- }[];
89
- }
72
+ declare const _componentItem: React.MemoExoticComponent<(props: IItemProps) => React.FunctionComponentElement<IItemProps>>;
73
+ declare const Item: typeof _componentItem & IElementDescriptor;
90
74
  export default ActionSheet;
91
- export { ActionSheet, IActionSheetOptions, Item, IItemProps };
75
+ export { ActionSheet, IActionSheetOptions, ActionSheetRef, Item, IItemProps };
92
76
  import type * as ActionSheetTypes from 'devextreme/ui/action_sheet_types';
93
77
  export { ActionSheetTypes };