devextreme-react 24.2.1-alpha-24256-1935 → 24.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 (325) hide show
  1. package/cjs/accordion.d.ts +22 -6
  2. package/cjs/accordion.js +21 -16
  3. package/cjs/action-sheet.d.ts +22 -8
  4. package/cjs/action-sheet.js +17 -12
  5. package/cjs/autocomplete.d.ts +382 -84
  6. package/cjs/autocomplete.js +203 -123
  7. package/cjs/bar-gauge.d.ts +435 -106
  8. package/cjs/bar-gauge.js +254 -144
  9. package/cjs/box.d.ts +22 -7
  10. package/cjs/box.js +17 -12
  11. package/cjs/bullet.d.ts +118 -32
  12. package/cjs/bullet.js +76 -41
  13. package/cjs/button-group.d.ts +21 -6
  14. package/cjs/button-group.js +17 -12
  15. package/cjs/button.d.ts +2 -2
  16. package/cjs/button.js +2 -2
  17. package/cjs/calendar.d.ts +5 -5
  18. package/cjs/calendar.js +2 -2
  19. package/cjs/chart.d.ts +2989 -779
  20. package/cjs/chart.js +1082 -622
  21. package/cjs/chat.d.ts +112 -13
  22. package/cjs/chat.js +94 -17
  23. package/cjs/check-box.d.ts +4 -4
  24. package/cjs/check-box.js +2 -2
  25. package/cjs/circular-gauge.d.ts +451 -112
  26. package/cjs/circular-gauge.js +268 -148
  27. package/cjs/color-box.d.ts +368 -80
  28. package/cjs/color-box.js +187 -112
  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 +3 -3
  34. package/cjs/common/grids.js +2 -2
  35. package/cjs/common/index.d.ts +3 -3
  36. package/cjs/common/index.js +2 -2
  37. package/cjs/context-menu.d.ts +206 -60
  38. package/cjs/context-menu.js +157 -82
  39. package/cjs/core/component-base.d.ts +19 -5
  40. package/cjs/core/component-base.js +46 -30
  41. package/cjs/core/component.d.ts +21 -6
  42. package/cjs/core/component.js +4 -6
  43. package/cjs/core/config.d.ts +2 -2
  44. package/cjs/core/config.js +2 -2
  45. package/cjs/core/configuration/comparer.d.ts +2 -2
  46. package/cjs/core/configuration/comparer.js +16 -14
  47. package/cjs/core/configuration/config-node.d.ts +20 -5
  48. package/cjs/core/configuration/config-node.js +102 -2
  49. package/cjs/core/configuration/react/element.d.ts +5 -12
  50. package/cjs/core/configuration/react/element.js +35 -38
  51. package/cjs/core/configuration/react/templates.d.ts +2 -2
  52. package/cjs/core/configuration/react/templates.js +2 -2
  53. package/cjs/core/configuration/tree.d.ts +2 -2
  54. package/cjs/core/configuration/tree.js +5 -3
  55. package/cjs/core/configuration/utils.d.ts +2 -2
  56. package/cjs/core/configuration/utils.js +2 -2
  57. package/cjs/core/contexts.d.ts +34 -0
  58. package/cjs/core/contexts.js +30 -0
  59. package/cjs/core/extension-component.d.ts +20 -8
  60. package/cjs/core/extension-component.js +4 -3
  61. package/cjs/core/helpers.d.ts +3 -6
  62. package/cjs/core/helpers.js +3 -8
  63. package/cjs/core/nested-option.d.ts +6 -3
  64. package/cjs/core/nested-option.js +31 -10
  65. package/cjs/core/options-manager.d.ts +2 -2
  66. package/cjs/core/options-manager.js +2 -2
  67. package/cjs/core/template-manager.d.ts +2 -2
  68. package/cjs/core/template-manager.js +5 -4
  69. package/cjs/core/template-wrapper.d.ts +2 -2
  70. package/cjs/core/template-wrapper.js +4 -4
  71. package/cjs/core/template.d.ts +2 -2
  72. package/cjs/core/template.js +2 -2
  73. package/cjs/core/types.d.ts +6 -6
  74. package/cjs/core/types.js +2 -2
  75. package/cjs/core/use-option-scanning.d.ts +21 -0
  76. package/cjs/core/use-option-scanning.js +65 -0
  77. package/cjs/core/widget-config.d.ts +2 -2
  78. package/cjs/core/widget-config.js +3 -2
  79. package/cjs/data-grid.d.ts +2231 -465
  80. package/cjs/data-grid.js +1096 -653
  81. package/cjs/date-box.d.ts +455 -102
  82. package/cjs/date-box.js +214 -129
  83. package/cjs/date-range-box.d.ts +455 -102
  84. package/cjs/date-range-box.js +214 -129
  85. package/cjs/defer-rendering.d.ts +130 -41
  86. package/cjs/defer-rendering.js +97 -52
  87. package/cjs/diagram.d.ts +439 -131
  88. package/cjs/diagram.js +302 -172
  89. package/cjs/draggable.d.ts +11 -5
  90. package/cjs/draggable.js +11 -6
  91. package/cjs/drawer.d.ts +2 -2
  92. package/cjs/drawer.js +2 -2
  93. package/cjs/drop-down-box.d.ts +368 -80
  94. package/cjs/drop-down-box.js +187 -112
  95. package/cjs/drop-down-button.d.ts +329 -68
  96. package/cjs/drop-down-button.js +175 -105
  97. package/cjs/file-manager.d.ts +195 -65
  98. package/cjs/file-manager.js +130 -70
  99. package/cjs/file-uploader.d.ts +2 -2
  100. package/cjs/file-uploader.js +2 -2
  101. package/cjs/filter-builder.d.ts +132 -34
  102. package/cjs/filter-builder.js +72 -42
  103. package/cjs/form.d.ts +650 -172
  104. package/cjs/form.js +362 -252
  105. package/cjs/funnel.d.ts +577 -146
  106. package/cjs/funnel.js +317 -182
  107. package/cjs/gallery.d.ts +18 -6
  108. package/cjs/gallery.js +17 -12
  109. package/cjs/gantt.d.ts +486 -125
  110. package/cjs/gantt.js +298 -173
  111. package/cjs/html-editor.d.ts +286 -63
  112. package/cjs/html-editor.js +175 -102
  113. package/cjs/index.d.ts +3 -2
  114. package/cjs/index.js +6 -4
  115. package/cjs/linear-gauge.d.ts +461 -114
  116. package/cjs/linear-gauge.js +278 -153
  117. package/cjs/list.d.ts +227 -52
  118. package/cjs/list.js +95 -60
  119. package/cjs/load-indicator.d.ts +2 -2
  120. package/cjs/load-indicator.js +2 -2
  121. package/cjs/load-panel.d.ts +159 -50
  122. package/cjs/load-panel.js +112 -57
  123. package/cjs/lookup.d.ts +302 -83
  124. package/cjs/lookup.js +196 -116
  125. package/cjs/map.d.ts +83 -18
  126. package/cjs/map.js +78 -35
  127. package/cjs/menu.d.ts +210 -59
  128. package/cjs/menu.js +167 -92
  129. package/cjs/multi-view.d.ts +17 -6
  130. package/cjs/multi-view.js +17 -12
  131. package/cjs/number-box.d.ts +72 -20
  132. package/cjs/number-box.js +38 -23
  133. package/cjs/pagination.d.ts +33 -0
  134. package/cjs/{core/__tests__/integration/integration.test.js → pagination.js} +30 -28
  135. package/cjs/pie-chart.d.ts +966 -262
  136. package/cjs/pie-chart.js +423 -248
  137. package/cjs/pivot-grid-field-chooser.d.ts +67 -14
  138. package/cjs/pivot-grid-field-chooser.js +52 -27
  139. package/cjs/pivot-grid.d.ts +196 -36
  140. package/cjs/pivot-grid.js +132 -67
  141. package/cjs/polar-chart.d.ts +2072 -507
  142. package/cjs/polar-chart.js +823 -473
  143. package/cjs/popover.d.ts +210 -66
  144. package/cjs/popover.js +149 -79
  145. package/cjs/popup.d.ts +190 -58
  146. package/cjs/popup.js +131 -71
  147. package/cjs/progress-bar.d.ts +2 -2
  148. package/cjs/progress-bar.js +2 -2
  149. package/cjs/radio-group.d.ts +16 -5
  150. package/cjs/radio-group.js +17 -12
  151. package/cjs/range-selector.d.ts +1628 -423
  152. package/cjs/range-selector.js +666 -366
  153. package/cjs/range-slider.d.ts +42 -16
  154. package/cjs/range-slider.js +35 -20
  155. package/cjs/recurrence-editor.d.ts +2 -2
  156. package/cjs/recurrence-editor.js +2 -2
  157. package/cjs/resizable.d.ts +2 -2
  158. package/cjs/resizable.js +2 -2
  159. package/cjs/responsive-box.d.ts +63 -20
  160. package/cjs/responsive-box.js +50 -30
  161. package/cjs/sankey.d.ts +396 -109
  162. package/cjs/sankey.js +219 -124
  163. package/cjs/scheduler.d.ts +166 -26
  164. package/cjs/scheduler.js +85 -60
  165. package/cjs/scroll-view.d.ts +2 -2
  166. package/cjs/scroll-view.js +2 -2
  167. package/cjs/select-box.d.ts +382 -84
  168. package/cjs/select-box.js +203 -123
  169. package/cjs/slider.d.ts +42 -16
  170. package/cjs/slider.js +35 -20
  171. package/cjs/sortable.d.ts +11 -5
  172. package/cjs/sortable.js +11 -6
  173. package/cjs/sparkline.d.ts +118 -32
  174. package/cjs/sparkline.js +76 -41
  175. package/cjs/speed-dial-action.d.ts +2 -2
  176. package/cjs/speed-dial-action.js +2 -2
  177. package/cjs/splitter.d.ts +28 -11
  178. package/cjs/splitter.js +17 -12
  179. package/cjs/switch.d.ts +2 -2
  180. package/cjs/switch.js +2 -2
  181. package/cjs/tab-panel.d.ts +23 -6
  182. package/cjs/tab-panel.js +21 -16
  183. package/cjs/tabs.d.ts +19 -6
  184. package/cjs/tabs.js +17 -12
  185. package/cjs/tag-box.d.ts +382 -84
  186. package/cjs/tag-box.js +203 -123
  187. package/cjs/text-area.d.ts +2 -2
  188. package/cjs/text-area.js +2 -2
  189. package/cjs/text-box.d.ts +59 -17
  190. package/cjs/text-box.js +29 -19
  191. package/cjs/tile-view.d.ts +19 -6
  192. package/cjs/tile-view.js +17 -12
  193. package/cjs/toast.d.ts +157 -48
  194. package/cjs/toast.js +112 -57
  195. package/cjs/toolbar.d.ts +33 -12
  196. package/cjs/toolbar.js +21 -16
  197. package/cjs/tooltip.d.ts +179 -58
  198. package/cjs/tooltip.js +130 -65
  199. package/cjs/tree-list.d.ts +1970 -427
  200. package/cjs/tree-list.js +953 -570
  201. package/cjs/tree-map.d.ts +388 -114
  202. package/cjs/tree-map.js +239 -134
  203. package/cjs/tree-view.d.ts +160 -39
  204. package/cjs/tree-view.js +59 -39
  205. package/cjs/validation-group.d.ts +2 -2
  206. package/cjs/validation-group.js +2 -2
  207. package/cjs/validation-summary.d.ts +17 -6
  208. package/cjs/validation-summary.js +17 -12
  209. package/cjs/validator.d.ts +162 -42
  210. package/cjs/validator.js +142 -87
  211. package/cjs/vector-map.d.ts +628 -154
  212. package/cjs/vector-map.js +319 -189
  213. package/esm/accordion.js +21 -16
  214. package/esm/action-sheet.js +17 -12
  215. package/esm/autocomplete.js +203 -123
  216. package/esm/bar-gauge.js +254 -144
  217. package/esm/box.js +17 -12
  218. package/esm/bullet.js +76 -41
  219. package/esm/button-group.js +17 -12
  220. package/esm/button.js +2 -2
  221. package/esm/calendar.js +2 -2
  222. package/esm/chart.js +1082 -622
  223. package/esm/chat.js +90 -17
  224. package/esm/check-box.js +2 -2
  225. package/esm/circular-gauge.js +268 -148
  226. package/esm/color-box.js +187 -112
  227. package/esm/common/charts.js +2 -2
  228. package/esm/common/data/custom-store.js +2 -2
  229. package/esm/common/grids.js +2 -2
  230. package/esm/common/index.js +2 -2
  231. package/esm/context-menu.js +157 -82
  232. package/esm/core/component-base.js +45 -29
  233. package/esm/core/component.js +4 -6
  234. package/esm/core/config.js +2 -2
  235. package/esm/core/configuration/comparer.js +16 -14
  236. package/esm/core/configuration/config-node.js +77 -3
  237. package/esm/core/configuration/react/element.js +33 -37
  238. package/esm/core/configuration/react/templates.js +2 -2
  239. package/esm/core/configuration/tree.js +5 -3
  240. package/esm/core/configuration/utils.js +2 -2
  241. package/esm/core/contexts.js +27 -0
  242. package/esm/core/extension-component.js +4 -3
  243. package/esm/core/helpers.js +2 -7
  244. package/esm/core/nested-option.js +32 -11
  245. package/esm/core/options-manager.js +2 -2
  246. package/esm/core/template-manager.js +5 -4
  247. package/esm/core/template-wrapper.js +3 -3
  248. package/esm/core/template.js +2 -2
  249. package/esm/core/types.js +2 -2
  250. package/esm/core/use-option-scanning.js +61 -0
  251. package/esm/core/widget-config.js +3 -2
  252. package/esm/data-grid.js +1095 -653
  253. package/esm/date-box.js +214 -129
  254. package/esm/date-range-box.js +214 -129
  255. package/esm/defer-rendering.js +97 -52
  256. package/esm/diagram.js +302 -172
  257. package/esm/draggable.js +11 -6
  258. package/esm/drawer.js +2 -2
  259. package/esm/drop-down-box.js +187 -112
  260. package/esm/drop-down-button.js +175 -105
  261. package/esm/file-manager.js +130 -70
  262. package/esm/file-uploader.js +2 -2
  263. package/esm/filter-builder.js +72 -42
  264. package/esm/form.js +362 -252
  265. package/esm/funnel.js +317 -182
  266. package/esm/gallery.js +17 -12
  267. package/esm/gantt.js +298 -173
  268. package/esm/html-editor.js +175 -103
  269. package/esm/index.js +3 -2
  270. package/esm/linear-gauge.js +278 -153
  271. package/esm/list.js +95 -60
  272. package/esm/load-indicator.js +2 -2
  273. package/esm/load-panel.js +112 -57
  274. package/esm/lookup.js +196 -116
  275. package/esm/map.js +77 -35
  276. package/esm/menu.js +167 -92
  277. package/esm/multi-view.js +17 -12
  278. package/esm/number-box.js +38 -23
  279. package/esm/pagination.js +42 -0
  280. package/esm/pie-chart.js +423 -248
  281. package/esm/pivot-grid-field-chooser.js +52 -27
  282. package/esm/pivot-grid.js +132 -67
  283. package/esm/polar-chart.js +823 -473
  284. package/esm/popover.js +149 -79
  285. package/esm/popup.js +131 -71
  286. package/esm/progress-bar.js +2 -2
  287. package/esm/radio-group.js +17 -12
  288. package/esm/range-selector.js +666 -366
  289. package/esm/range-slider.js +35 -20
  290. package/esm/recurrence-editor.js +2 -2
  291. package/esm/resizable.js +2 -2
  292. package/esm/responsive-box.js +50 -30
  293. package/esm/sankey.js +219 -124
  294. package/esm/scheduler.js +85 -60
  295. package/esm/scroll-view.js +2 -2
  296. package/esm/select-box.js +203 -123
  297. package/esm/slider.js +35 -20
  298. package/esm/sortable.js +11 -6
  299. package/esm/sparkline.js +76 -41
  300. package/esm/speed-dial-action.js +2 -2
  301. package/esm/splitter.js +17 -12
  302. package/esm/switch.js +2 -2
  303. package/esm/tab-panel.js +21 -16
  304. package/esm/tabs.js +17 -12
  305. package/esm/tag-box.js +203 -123
  306. package/esm/text-area.js +2 -2
  307. package/esm/text-box.js +29 -19
  308. package/esm/tile-view.js +17 -12
  309. package/esm/toast.js +112 -57
  310. package/esm/toolbar.js +21 -16
  311. package/esm/tooltip.js +130 -65
  312. package/esm/tree-list.js +952 -570
  313. package/esm/tree-map.js +239 -134
  314. package/esm/tree-view.js +59 -39
  315. package/esm/validation-group.js +2 -2
  316. package/esm/validation-summary.js +17 -12
  317. package/esm/validator.js +142 -87
  318. package/esm/vector-map.js +319 -189
  319. package/package.json +2 -2
  320. package/pagination/package.json +6 -0
  321. package/cjs/core/__tests__/integration/integration.test.d.ts +0 -14
  322. package/cjs/core/configuration/react/tree.d.ts +0 -30
  323. package/cjs/core/configuration/react/tree.js +0 -121
  324. package/esm/core/__tests__/integration/integration.test.js +0 -41
  325. package/esm/core/configuration/react/tree.js +0 -94
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.2.1-alpha-24256-1935
4
- * Build date: Thu Sep 12 2024
3
+ * Version: 24.2.2-beta
4
+ * Build date: Mon Nov 18 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -15,7 +15,7 @@ export { ExplicitTypes } from "devextreme/ui/accordion";
15
15
  import * as React from "react";
16
16
  import { Ref, ReactElement } from "react";
17
17
  import dxAccordion, { Properties } from "devextreme/ui/accordion";
18
- import { IHtmlOptions, IElementDescriptor } from "./core/component";
18
+ import { IHtmlOptions, NestedComponentMeta } 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";
@@ -53,7 +53,7 @@ interface AccordionRef<TItem = any, TKey = any> {
53
53
  instance: () => dxAccordion<TItem, TKey>;
54
54
  }
55
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;
56
+ dataSource?: import("devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
57
57
  itemRender?: ((...params: any) => React.ReactNode) | undefined;
58
58
  itemComponent?: React.ComponentType<any> | undefined;
59
59
  itemTitleRender?: ((...params: any) => React.ReactNode) | undefined;
@@ -87,8 +87,24 @@ type IItemProps = React.PropsWithChildren<{
87
87
  titleRender?: (...params: any) => React.ReactNode;
88
88
  titleComponent?: React.ComponentType<any>;
89
89
  }>;
90
- declare const _componentItem: React.MemoExoticComponent<(props: IItemProps) => React.FunctionComponentElement<IItemProps>>;
91
- declare const Item: typeof _componentItem & IElementDescriptor;
90
+ declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
91
+ disabled?: boolean | undefined;
92
+ html?: string | undefined;
93
+ icon?: string | undefined;
94
+ template?: template | ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | undefined;
95
+ text?: string | undefined;
96
+ title?: string | undefined;
97
+ titleTemplate?: template | (() => string | any) | undefined;
98
+ visible?: boolean | undefined;
99
+ render?: ((...params: any) => React.ReactNode) | undefined;
100
+ component?: React.ComponentType<any> | undefined;
101
+ titleRender?: ((...params: any) => React.ReactNode) | undefined;
102
+ titleComponent?: React.ComponentType<any> | undefined;
103
+ } & {
104
+ children?: React.ReactNode;
105
+ } & {
106
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
107
+ }>>) & NestedComponentMeta;
92
108
  export default Accordion;
93
109
  export { Accordion, IAccordionOptions, AccordionRef, Item, IItemProps };
94
110
  import type * as AccordionTypes from 'devextreme/ui/accordion_types';
package/cjs/accordion.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.2.1-alpha-24256-1935
4
- * Build date: Thu Sep 12 2024
3
+ * Version: 24.2.2-beta
4
+ * Build date: Mon Nov 18 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -89,21 +89,26 @@ const Accordion = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
89
89
  }));
90
90
  }));
91
91
  exports.Accordion = Accordion;
92
- const _componentItem = (0, react_1.memo)((props) => {
93
- return React.createElement((nested_option_1.default), { ...props });
94
- });
92
+ const _componentItem = (props) => {
93
+ return React.createElement((nested_option_1.default), {
94
+ ...props,
95
+ elementDescriptor: {
96
+ OptionName: "items",
97
+ IsCollectionItem: true,
98
+ TemplateProps: [{
99
+ tmplOption: "template",
100
+ render: "render",
101
+ component: "component"
102
+ }, {
103
+ tmplOption: "titleTemplate",
104
+ render: "titleRender",
105
+ component: "titleComponent"
106
+ }],
107
+ },
108
+ });
109
+ };
95
110
  const Item = Object.assign(_componentItem, {
96
- OptionName: "items",
97
- IsCollectionItem: true,
98
- TemplateProps: [{
99
- tmplOption: "template",
100
- render: "render",
101
- component: "component"
102
- }, {
103
- tmplOption: "titleTemplate",
104
- render: "titleRender",
105
- component: "titleComponent"
106
- }],
111
+ componentType: "option",
107
112
  });
108
113
  exports.Item = Item;
109
114
  exports.default = Accordion;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.2.1-alpha-24256-1935
4
- * Build date: Thu Sep 12 2024
3
+ * Version: 24.2.2-beta
4
+ * Build date: Mon Nov 18 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -15,9 +15,10 @@ export { ExplicitTypes } from "devextreme/ui/action_sheet";
15
15
  import * as React from "react";
16
16
  import { Ref, ReactElement } from "react";
17
17
  import dxActionSheet, { Properties } from "devextreme/ui/action_sheet";
18
- import { IHtmlOptions, IElementDescriptor } from "./core/component";
18
+ import { IHtmlOptions, NestedComponentMeta } 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
+ import type { ButtonStyle, ButtonType } from "devextreme/common";
21
22
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
22
23
  import type { template } from "devextreme/core/templates/template";
23
24
  type ReplaceFieldTypes<TSource, TReplacement> = {
@@ -46,7 +47,7 @@ interface ActionSheetRef<TItem = any, TKey = any> {
46
47
  instance: () => dxActionSheet<TItem, TKey>;
47
48
  }
48
49
  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
+ dataSource?: import("devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
50
51
  itemRender?: ((...params: any) => React.ReactNode) | undefined;
51
52
  itemComponent?: React.ComponentType<any> | undefined;
52
53
  defaultItems?: any[] | undefined;
@@ -62,15 +63,28 @@ type IItemProps = React.PropsWithChildren<{
62
63
  disabled?: boolean;
63
64
  icon?: string;
64
65
  onClick?: ((e: NativeEventInfo<any>) => void);
65
- stylingMode?: "text" | "outlined" | "contained";
66
+ stylingMode?: ButtonStyle;
66
67
  template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | template;
67
68
  text?: string;
68
- type?: "danger" | "default" | "normal" | "success";
69
+ type?: ButtonType;
69
70
  render?: (...params: any) => React.ReactNode;
70
71
  component?: React.ComponentType<any>;
71
72
  }>;
72
- declare const _componentItem: React.MemoExoticComponent<(props: IItemProps) => React.FunctionComponentElement<IItemProps>>;
73
- declare const Item: typeof _componentItem & IElementDescriptor;
73
+ declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
74
+ disabled?: boolean | undefined;
75
+ icon?: string | undefined;
76
+ onClick?: ((e: NativeEventInfo<any>) => void) | undefined;
77
+ stylingMode?: ButtonStyle | undefined;
78
+ template?: template | ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | undefined;
79
+ text?: string | undefined;
80
+ type?: ButtonType | undefined;
81
+ render?: ((...params: any) => React.ReactNode) | undefined;
82
+ component?: React.ComponentType<any> | undefined;
83
+ } & {
84
+ children?: React.ReactNode;
85
+ } & {
86
+ elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
87
+ }>>) & NestedComponentMeta;
74
88
  export default ActionSheet;
75
89
  export { ActionSheet, IActionSheetOptions, ActionSheetRef, Item, IItemProps };
76
90
  import type * as ActionSheetTypes from 'devextreme/ui/action_sheet_types';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.2.1-alpha-24256-1935
4
- * Build date: Thu Sep 12 2024
3
+ * Version: 24.2.2-beta
4
+ * Build date: Mon Nov 18 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -81,17 +81,22 @@ const ActionSheet = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
81
81
  }));
82
82
  }));
83
83
  exports.ActionSheet = ActionSheet;
84
- const _componentItem = (0, react_1.memo)((props) => {
85
- return React.createElement((nested_option_1.default), { ...props });
86
- });
84
+ const _componentItem = (props) => {
85
+ return React.createElement((nested_option_1.default), {
86
+ ...props,
87
+ elementDescriptor: {
88
+ OptionName: "items",
89
+ IsCollectionItem: true,
90
+ TemplateProps: [{
91
+ tmplOption: "template",
92
+ render: "render",
93
+ component: "component"
94
+ }],
95
+ },
96
+ });
97
+ };
87
98
  const Item = Object.assign(_componentItem, {
88
- OptionName: "items",
89
- IsCollectionItem: true,
90
- TemplateProps: [{
91
- tmplOption: "template",
92
- render: "render",
93
- component: "component"
94
- }],
99
+ componentType: "option",
95
100
  });
96
101
  exports.Item = Item;
97
102
  exports.default = ActionSheet;