devextreme-react 23.1.2-alpha-23114-0308 → 23.1.2-beta.2

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 (207) hide show
  1. package/accordion.d.ts +18 -8
  2. package/accordion.js +2 -2
  3. package/action-sheet.d.ts +18 -10
  4. package/action-sheet.js +2 -2
  5. package/autocomplete.d.ts +41 -51
  6. package/autocomplete.js +2 -2
  7. package/bar-gauge.d.ts +32 -21
  8. package/bar-gauge.js +2 -2
  9. package/box.d.ts +18 -8
  10. package/box.js +2 -2
  11. package/bullet.d.ts +22 -7
  12. package/bullet.js +2 -2
  13. package/button-group.d.ts +13 -5
  14. package/button-group.js +2 -2
  15. package/button.d.ts +12 -3
  16. package/button.js +2 -2
  17. package/calendar.d.ts +12 -3
  18. package/calendar.js +2 -2
  19. package/chart.d.ts +193 -177
  20. package/chart.js +2 -2
  21. package/check-box.d.ts +13 -3
  22. package/check-box.js +2 -2
  23. package/circular-gauge.d.ts +31 -17
  24. package/circular-gauge.js +2 -2
  25. package/color-box.d.ts +39 -51
  26. package/color-box.js +2 -2
  27. package/common/charts.d.ts +2 -2
  28. package/common/charts.js +2 -2
  29. package/common/grids.d.ts +3 -3
  30. package/common/grids.js +2 -2
  31. package/common/index.d.ts +2 -2
  32. package/common/index.js +2 -2
  33. package/context-menu.d.ts +23 -15
  34. package/context-menu.js +2 -2
  35. package/core/component-base.d.ts +2 -2
  36. package/core/component-base.js +2 -2
  37. package/core/component.d.ts +2 -2
  38. package/core/component.js +2 -2
  39. package/core/config.d.ts +2 -2
  40. package/core/config.js +2 -2
  41. package/core/configuration/comparer.d.ts +2 -2
  42. package/core/configuration/comparer.js +2 -2
  43. package/core/configuration/config-node.d.ts +2 -2
  44. package/core/configuration/config-node.js +2 -2
  45. package/core/configuration/react/element.d.ts +2 -2
  46. package/core/configuration/react/element.js +2 -2
  47. package/core/configuration/react/templates.d.ts +2 -2
  48. package/core/configuration/react/templates.js +2 -2
  49. package/core/configuration/react/tree.d.ts +2 -2
  50. package/core/configuration/react/tree.js +2 -2
  51. package/core/configuration/tree.d.ts +2 -2
  52. package/core/configuration/tree.js +2 -2
  53. package/core/configuration/utils.d.ts +2 -2
  54. package/core/configuration/utils.js +2 -2
  55. package/core/dx-template.d.ts +2 -2
  56. package/core/dx-template.js +2 -2
  57. package/core/extension-component.d.ts +2 -2
  58. package/core/extension-component.js +2 -2
  59. package/core/helpers.d.ts +2 -2
  60. package/core/helpers.js +2 -2
  61. package/core/nested-option.d.ts +2 -2
  62. package/core/nested-option.js +2 -2
  63. package/core/options-manager.d.ts +2 -2
  64. package/core/options-manager.js +2 -2
  65. package/core/template-wrapper.d.ts +2 -2
  66. package/core/template-wrapper.js +2 -2
  67. package/core/template.d.ts +2 -2
  68. package/core/template.js +2 -2
  69. package/core/templates-manager.d.ts +2 -2
  70. package/core/templates-manager.js +2 -2
  71. package/core/templates-renderer.d.ts +2 -2
  72. package/core/templates-renderer.js +2 -2
  73. package/core/templates-store.d.ts +2 -2
  74. package/core/templates-store.js +2 -2
  75. package/core/widget-config.d.ts +2 -2
  76. package/core/widget-config.js +2 -2
  77. package/data-grid.d.ts +146 -182
  78. package/data-grid.js +4 -2
  79. package/date-box.d.ts +49 -92
  80. package/date-box.js +2 -2
  81. package/date-range-box.d.ts +49 -92
  82. package/date-range-box.js +16 -23
  83. package/defer-rendering.d.ts +17 -8
  84. package/defer-rendering.js +2 -2
  85. package/diagram.d.ts +27 -19
  86. package/diagram.js +2 -2
  87. package/draggable.d.ts +11 -3
  88. package/draggable.js +2 -2
  89. package/drawer.d.ts +11 -3
  90. package/drawer.js +2 -2
  91. package/drop-down-box.d.ts +39 -51
  92. package/drop-down-box.js +2 -2
  93. package/drop-down-button.d.ts +20 -25
  94. package/drop-down-button.js +2 -2
  95. package/file-manager.d.ts +13 -62
  96. package/file-manager.js +2 -41
  97. package/file-uploader.d.ts +12 -3
  98. package/file-uploader.js +2 -2
  99. package/filter-builder.d.ts +18 -10
  100. package/filter-builder.js +3 -2
  101. package/form.d.ts +73 -190
  102. package/form.js +3 -5
  103. package/funnel.d.ts +45 -33
  104. package/funnel.js +2 -2
  105. package/gallery.d.ts +18 -9
  106. package/gallery.js +2 -2
  107. package/gantt.d.ts +25 -68
  108. package/gantt.js +5 -19
  109. package/html-editor.d.ts +24 -44
  110. package/html-editor.js +2 -2
  111. package/index.d.ts +2 -2
  112. package/index.js +2 -2
  113. package/linear-gauge.d.ts +32 -18
  114. package/linear-gauge.js +2 -2
  115. package/list.d.ts +50 -113
  116. package/list.js +2 -7
  117. package/load-indicator.d.ts +12 -3
  118. package/load-indicator.js +2 -2
  119. package/load-panel.d.ts +21 -8
  120. package/load-panel.js +2 -2
  121. package/lookup.d.ts +35 -89
  122. package/lookup.js +2 -2
  123. package/map.d.ts +20 -12
  124. package/map.js +2 -2
  125. package/menu.d.ts +25 -17
  126. package/menu.js +2 -2
  127. package/multi-view.d.ts +18 -9
  128. package/multi-view.js +2 -2
  129. package/number-box.d.ts +32 -36
  130. package/number-box.js +2 -2
  131. package/package.json +5 -5
  132. package/pie-chart.d.ts +76 -60
  133. package/pie-chart.js +2 -2
  134. package/pivot-grid-field-chooser.d.ts +13 -4
  135. package/pivot-grid-field-chooser.js +2 -2
  136. package/pivot-grid.d.ts +16 -7
  137. package/pivot-grid.js +2 -2
  138. package/polar-chart.d.ts +152 -138
  139. package/polar-chart.js +2 -2
  140. package/popover.d.ts +22 -8
  141. package/popover.js +2 -2
  142. package/popup.d.ts +7 -7
  143. package/popup.js +2 -2
  144. package/progress-bar.d.ts +13 -3
  145. package/progress-bar.js +2 -2
  146. package/radio-group.d.ts +13 -3
  147. package/radio-group.js +2 -2
  148. package/range-selector.d.ts +118 -105
  149. package/range-selector.js +2 -2
  150. package/range-slider.d.ts +12 -3
  151. package/range-slider.js +2 -2
  152. package/recurrence-editor.d.ts +15 -3
  153. package/recurrence-editor.js +2 -2
  154. package/resizable.d.ts +11 -3
  155. package/resizable.js +2 -2
  156. package/responsive-box.d.ts +19 -9
  157. package/responsive-box.js +2 -2
  158. package/sankey.d.ts +36 -24
  159. package/sankey.js +2 -2
  160. package/scheduler.d.ts +22 -14
  161. package/scheduler.js +2 -2
  162. package/scroll-view.d.ts +13 -3
  163. package/scroll-view.js +2 -2
  164. package/select-box.d.ts +41 -51
  165. package/select-box.js +2 -2
  166. package/slider.d.ts +13 -3
  167. package/slider.js +2 -2
  168. package/sortable.d.ts +11 -3
  169. package/sortable.js +2 -2
  170. package/sparkline.d.ts +22 -7
  171. package/sparkline.js +2 -2
  172. package/speed-dial-action.d.ts +11 -3
  173. package/speed-dial-action.js +2 -2
  174. package/switch.d.ts +13 -3
  175. package/switch.js +2 -2
  176. package/tab-panel.d.ts +18 -9
  177. package/tab-panel.js +2 -2
  178. package/tabs.d.ts +18 -8
  179. package/tabs.js +2 -2
  180. package/tag-box.d.ts +39 -51
  181. package/tag-box.js +2 -2
  182. package/text-area.d.ts +23 -3
  183. package/text-area.js +2 -2
  184. package/text-box.d.ts +32 -36
  185. package/text-box.js +2 -2
  186. package/tile-view.d.ts +18 -8
  187. package/tile-view.js +2 -2
  188. package/toast.d.ts +21 -8
  189. package/toast.js +2 -2
  190. package/toolbar.d.ts +18 -8
  191. package/toolbar.js +2 -2
  192. package/tooltip.d.ts +21 -8
  193. package/tooltip.js +2 -2
  194. package/tree-list.d.ts +136 -168
  195. package/tree-list.js +4 -2
  196. package/tree-map.d.ts +37 -25
  197. package/tree-map.js +2 -2
  198. package/tree-view.d.ts +41 -77
  199. package/tree-view.js +2 -2
  200. package/validation-group.d.ts +11 -3
  201. package/validation-group.js +2 -2
  202. package/validation-summary.d.ts +15 -7
  203. package/validation-summary.js +2 -2
  204. package/validator.d.ts +19 -19
  205. package/validator.js +2 -2
  206. package/vector-map.d.ts +44 -49
  207. package/vector-map.js +3 -13
package/accordion.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -12,15 +12,25 @@
12
12
  */
13
13
 
14
14
  /// <reference types="react" />
15
- export { ExplicitTypes } from "devextreme/ui/accordion";
16
15
  import dxAccordion, { Properties } from "devextreme/ui/accordion";
17
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
18
17
  import NestedOption from "./core/nested-option";
19
- import type { dxAccordionItem } from "devextreme/ui/accordion";
18
+ import type { dxAccordionItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent } from "devextreme/ui/accordion";
20
19
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
21
20
  import type { template } from "devextreme/core/templates/template";
22
- declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildren<Properties<TItem, TKey> & IHtmlOptions & {
23
- dataSource?: Properties<TItem, TKey>["dataSource"];
21
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
22
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
23
+ };
24
+ declare type IAccordionOptionsNarrowedEvents = {
25
+ onContentReady?: ((e: ContentReadyEvent) => void);
26
+ onDisposing?: ((e: DisposingEvent) => void);
27
+ onInitialized?: ((e: InitializedEvent) => void);
28
+ onItemClick?: ((e: ItemClickEvent) => void);
29
+ onItemContextMenu?: ((e: ItemContextMenuEvent) => void);
30
+ onItemHold?: ((e: ItemHoldEvent) => void);
31
+ onItemRendered?: ((e: ItemRenderedEvent) => void);
32
+ };
33
+ declare type IAccordionOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IAccordionOptionsNarrowedEvents> & IHtmlOptions & {
24
34
  itemRender?: (...params: any) => React.ReactNode;
25
35
  itemComponent?: React.ComponentType<any>;
26
36
  itemKeyFn?: (data: any) => string;
@@ -38,8 +48,8 @@ declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildre
38
48
  onSelectedItemKeysChange?: (value: Array<any>) => void;
39
49
  onSelectedItemsChange?: (value: Array<any>) => void;
40
50
  }>;
41
- declare class Accordion<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IAccordionOptions<TItem, TKey>>> {
42
- get instance(): dxAccordion<TItem, TKey>;
51
+ declare class Accordion extends BaseComponent<React.PropsWithChildren<IAccordionOptions>> {
52
+ get instance(): dxAccordion;
43
53
  protected _WidgetClass: typeof dxAccordion;
44
54
  protected subscribableOptions: string[];
45
55
  protected independentEvents: string[];
package/accordion.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
package/action-sheet.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -12,16 +12,26 @@
12
12
  */
13
13
 
14
14
  /// <reference types="react" />
15
- export { ExplicitTypes } from "devextreme/ui/action_sheet";
16
15
  import dxActionSheet, { Properties } from "devextreme/ui/action_sheet";
17
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
18
17
  import NestedOption from "./core/nested-option";
19
- import type { dxActionSheetItem } from "devextreme/ui/action_sheet";
18
+ import type { dxActionSheetItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent } from "devextreme/ui/action_sheet";
20
19
  import type { NativeEventInfo } from "devextreme/events/index";
21
20
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
22
21
  import type { template } from "devextreme/core/templates/template";
23
- declare type IActionSheetOptions<TItem = any, TKey = any> = React.PropsWithChildren<Properties<TItem, TKey> & IHtmlOptions & {
24
- dataSource?: Properties<TItem, TKey>["dataSource"];
22
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
23
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
24
+ };
25
+ declare type IActionSheetOptionsNarrowedEvents = {
26
+ onContentReady?: ((e: ContentReadyEvent) => void);
27
+ onDisposing?: ((e: DisposingEvent) => void);
28
+ onInitialized?: ((e: InitializedEvent) => void);
29
+ onItemClick?: ((e: ItemClickEvent) => void);
30
+ onItemContextMenu?: ((e: ItemContextMenuEvent) => void);
31
+ onItemHold?: ((e: ItemHoldEvent) => void);
32
+ onItemRendered?: ((e: ItemRenderedEvent) => void);
33
+ };
34
+ declare type IActionSheetOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IActionSheetOptionsNarrowedEvents> & IHtmlOptions & {
25
35
  itemRender?: (...params: any) => React.ReactNode;
26
36
  itemComponent?: React.ComponentType<any>;
27
37
  itemKeyFn?: (data: any) => string;
@@ -30,8 +40,8 @@ declare type IActionSheetOptions<TItem = any, TKey = any> = React.PropsWithChild
30
40
  onItemsChange?: (value: Array<any | dxActionSheetItem | string>) => void;
31
41
  onVisibleChange?: (value: boolean) => void;
32
42
  }>;
33
- declare class ActionSheet<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IActionSheetOptions<TItem, TKey>>> {
34
- get instance(): dxActionSheet<TItem, TKey>;
43
+ declare class ActionSheet extends BaseComponent<React.PropsWithChildren<IActionSheetOptions>> {
44
+ get instance(): dxActionSheet;
35
45
  protected _WidgetClass: typeof dxActionSheet;
36
46
  protected subscribableOptions: string[];
37
47
  protected independentEvents: string[];
@@ -54,14 +64,12 @@ declare class ActionSheet<TItem = any, TKey = any> extends BaseComponent<React.P
54
64
  }
55
65
  declare type IItemProps = React.PropsWithChildren<{
56
66
  disabled?: boolean;
57
- html?: string;
58
67
  icon?: string;
59
68
  onClick?: ((e: NativeEventInfo<any>) => void);
60
69
  stylingMode?: "text" | "outlined" | "contained";
61
70
  template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string) | template;
62
71
  text?: string;
63
72
  type?: "back" | "danger" | "default" | "normal" | "success";
64
- visible?: boolean;
65
73
  render?: (...params: any) => React.ReactNode;
66
74
  component?: React.ComponentType<any>;
67
75
  keyFn?: (data: any) => string;
package/action-sheet.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
package/autocomplete.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -15,20 +15,42 @@
15
15
  import dxAutocomplete, { Properties } from "devextreme/ui/autocomplete";
16
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
17
17
  import NestedOption from "./core/nested-option";
18
+ import type { ChangeEvent, ClosedEvent, ContentReadyEvent, CopyEvent, CutEvent, DisposingEvent, EnterKeyEvent, FocusInEvent, FocusOutEvent, InitializedEvent, InputEvent, ItemClickEvent, KeyDownEvent, KeyUpEvent, OpenedEvent, PasteEvent, ValueChangedEvent } from "devextreme/ui/autocomplete";
19
+ import type { ContentReadyEvent as ButtonContentReadyEvent, DisposingEvent as ButtonDisposingEvent, InitializedEvent as ButtonInitializedEvent, dxButtonOptions, OptionChangedEvent } from "devextreme/ui/button";
18
20
  import type { AnimationConfig, AnimationState } from "devextreme/animation/fx";
19
- import type { dxButtonOptions } from "devextreme/ui/button";
20
21
  import type { event, EventInfo } from "devextreme/events/index";
21
22
  import type { template } from "devextreme/core/templates/template";
22
23
  import type { Component } from "devextreme/core/component";
23
24
  import type { PositionConfig } from "devextreme/animation/position";
24
25
  import type { dxPopupToolbarItem } from "devextreme/ui/popup";
25
26
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
26
- import type Widget from "devextreme/ui/widget/ui.widget";
27
27
  import type dxOverlay from "devextreme/ui/overlay";
28
28
  import type DOMComponent from "devextreme/core/dom_component";
29
29
  import type dxPopup from "devextreme/ui/popup";
30
30
  import type dxButton from "devextreme/ui/button";
31
- declare type IAutocompleteOptions = React.PropsWithChildren<Properties & IHtmlOptions & {
31
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
32
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
33
+ };
34
+ declare type IAutocompleteOptionsNarrowedEvents = {
35
+ onChange?: ((e: ChangeEvent) => void);
36
+ onClosed?: ((e: ClosedEvent) => void);
37
+ onContentReady?: ((e: ContentReadyEvent) => void);
38
+ onCopy?: ((e: CopyEvent) => void);
39
+ onCut?: ((e: CutEvent) => void);
40
+ onDisposing?: ((e: DisposingEvent) => void);
41
+ onEnterKey?: ((e: EnterKeyEvent) => void);
42
+ onFocusIn?: ((e: FocusInEvent) => void);
43
+ onFocusOut?: ((e: FocusOutEvent) => void);
44
+ onInitialized?: ((e: InitializedEvent) => void);
45
+ onInput?: ((e: InputEvent) => void);
46
+ onItemClick?: ((e: ItemClickEvent) => void);
47
+ onKeyDown?: ((e: KeyDownEvent) => void);
48
+ onKeyUp?: ((e: KeyUpEvent) => void);
49
+ onOpened?: ((e: OpenedEvent) => void);
50
+ onPaste?: ((e: PasteEvent) => void);
51
+ onValueChanged?: ((e: ValueChangedEvent) => void);
52
+ };
53
+ declare type IAutocompleteOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IAutocompleteOptionsNarrowedEvents> & IHtmlOptions & {
32
54
  dropDownButtonRender?: (...params: any) => React.ReactNode;
33
55
  dropDownButtonComponent?: React.ComponentType<any>;
34
56
  dropDownButtonKeyFn?: (data: any) => string;
@@ -128,12 +150,11 @@ declare class Collision extends NestedOption<ICollisionProps> {
128
150
  }
129
151
  declare type IDropDownOptionsProps = React.PropsWithChildren<{
130
152
  accessKey?: string;
131
- activeStateEnabled?: boolean;
132
- animation?: object | {
153
+ animation?: Record<string, any> | {
133
154
  hide?: AnimationConfig;
134
155
  show?: AnimationConfig;
135
156
  };
136
- bindingOptions?: object;
157
+ bindingOptions?: Record<string, any>;
137
158
  closeOnOutsideClick?: boolean | ((event: event) => boolean);
138
159
  container?: any | string;
139
160
  contentTemplate?: ((contentElement: any) => string) | template;
@@ -158,16 +179,6 @@ declare type IDropDownOptionsProps = React.PropsWithChildren<{
158
179
  minWidth?: (() => number) | number | string;
159
180
  onContentReady?: ((e: EventInfo<any>) => void);
160
181
  onDisposing?: ((e: EventInfo<any>) => void);
161
- onFocusIn?: ((e: {
162
- component: Widget<any>;
163
- element: any;
164
- model: object;
165
- }) => void);
166
- onFocusOut?: ((e: {
167
- component: Widget<any>;
168
- element: any;
169
- model: object;
170
- }) => void);
171
182
  onHidden?: ((e: EventInfo<any>) => void);
172
183
  onHiding?: ((e: {
173
184
  cancel: boolean | any;
@@ -362,9 +373,9 @@ declare class Offset extends NestedOption<IOffsetProps> {
362
373
  declare type IOptionsProps = React.PropsWithChildren<{
363
374
  accessKey?: string;
364
375
  activeStateEnabled?: boolean;
365
- bindingOptions?: object;
376
+ bindingOptions?: Record<string, any>;
366
377
  disabled?: boolean;
367
- elementAttr?: object;
378
+ elementAttr?: Record<string, any>;
368
379
  focusStateEnabled?: boolean;
369
380
  height?: (() => number) | number | string;
370
381
  hint?: string;
@@ -375,33 +386,12 @@ declare type IOptionsProps = React.PropsWithChildren<{
375
386
  element: any;
376
387
  event: event;
377
388
  model: any;
378
- validationGroup: object;
379
- }) => void);
380
- onContentReady?: ((e: EventInfo<any>) => void);
381
- onDisposing?: ((e: EventInfo<any>) => void);
382
- onFocusIn?: ((e: {
383
- component: Widget<any>;
384
- element: any;
385
- model: object;
386
- }) => void);
387
- onFocusOut?: ((e: {
388
- component: Widget<any>;
389
- element: any;
390
- model: object;
391
- }) => void);
392
- onInitialized?: ((e: {
393
- component: Component<any>;
394
- element: any;
395
- }) => void);
396
- onOptionChanged?: ((e: {
397
- component: DOMComponent;
398
- element: any;
399
- fullName: string;
400
- model: any;
401
- name: string;
402
- previousValue: any;
403
- value: any;
389
+ validationGroup: Record<string, any>;
404
390
  }) => void);
391
+ onContentReady?: ((e: ButtonContentReadyEvent) => void);
392
+ onDisposing?: ((e: ButtonDisposingEvent) => void);
393
+ onInitialized?: ((e: ButtonInitializedEvent) => void);
394
+ onOptionChanged?: ((e: OptionChangedEvent) => void);
405
395
  rtlEnabled?: boolean;
406
396
  stylingMode?: "text" | "outlined" | "contained";
407
397
  tabIndex?: number;
@@ -429,25 +419,25 @@ declare class Options extends NestedOption<IOptionsProps> {
429
419
  }[];
430
420
  }
431
421
  declare type IPositionProps = React.PropsWithChildren<{
432
- at?: object | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
422
+ at?: Record<string, any> | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
433
423
  x?: "center" | "left" | "right";
434
424
  y?: "bottom" | "center" | "top";
435
425
  };
436
426
  boundary?: any | string;
437
- boundaryOffset?: object | string | {
427
+ boundaryOffset?: Record<string, any> | string | {
438
428
  x?: number;
439
429
  y?: number;
440
430
  };
441
- collision?: object | "fit" | "fit flip" | "fit flipfit" | "fit none" | "flip" | "flip fit" | "flip none" | "flipfit" | "flipfit fit" | "flipfit none" | "none" | "none fit" | "none flip" | "none flipfit" | {
431
+ collision?: Record<string, any> | "fit" | "fit flip" | "fit flipfit" | "fit none" | "flip" | "flip fit" | "flip none" | "flipfit" | "flipfit fit" | "flipfit none" | "none" | "none fit" | "none flip" | "none flipfit" | {
442
432
  x?: "fit" | "flip" | "flipfit" | "none";
443
433
  y?: "fit" | "flip" | "flipfit" | "none";
444
434
  };
445
- my?: object | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
435
+ my?: Record<string, any> | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
446
436
  x?: "center" | "left" | "right";
447
437
  y?: "bottom" | "center" | "top";
448
438
  };
449
439
  of?: any | string;
450
- offset?: object | string | {
440
+ offset?: Record<string, any> | string | {
451
441
  x?: number;
452
442
  y?: number;
453
443
  };
package/autocomplete.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
package/bar-gauge.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -15,17 +15,29 @@
15
15
  import dxBarGauge, { Properties } from "devextreme/viz/bar_gauge";
16
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
17
17
  import NestedOption from "./core/nested-option";
18
- import type { BarGaugeBarInfo, BarGaugeLegendItem } from "devextreme/viz/bar_gauge";
18
+ import type { DisposingEvent, DrawnEvent, ExportedEvent, ExportingEvent, FileSavingEvent, IncidentOccurredEvent, InitializedEvent, BarGaugeBarInfo, BarGaugeLegendItem } from "devextreme/viz/bar_gauge";
19
19
  import type { template } from "devextreme/core/templates/template";
20
20
  import type * as BaseWidgetTypes from "devextreme/viz/core/base_widget";
21
21
  import type * as LocalizationTypes from "devextreme/localization";
22
- declare type IBarGaugeOptions = React.PropsWithChildren<Properties & IHtmlOptions & {
22
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
23
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
24
+ };
25
+ declare type IBarGaugeOptionsNarrowedEvents = {
26
+ onDisposing?: ((e: DisposingEvent) => void);
27
+ onDrawn?: ((e: DrawnEvent) => void);
28
+ onExported?: ((e: ExportedEvent) => void);
29
+ onExporting?: ((e: ExportingEvent) => void);
30
+ onFileSaving?: ((e: FileSavingEvent) => void);
31
+ onIncidentOccurred?: ((e: IncidentOccurredEvent) => void);
32
+ onInitialized?: ((e: InitializedEvent) => void);
33
+ };
34
+ declare type IBarGaugeOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IBarGaugeOptionsNarrowedEvents> & IHtmlOptions & {
23
35
  centerRender?: (...params: any) => React.ReactNode;
24
36
  centerComponent?: React.ComponentType<any>;
25
37
  centerKeyFn?: (data: any) => string;
26
- defaultLoadingIndicator?: object;
38
+ defaultLoadingIndicator?: Record<string, any>;
27
39
  defaultValues?: Array<number>;
28
- onLoadingIndicatorChange?: (value: object) => void;
40
+ onLoadingIndicatorChange?: (value: Record<string, any>) => void;
29
41
  onValuesChange?: (value: Array<number>) => void;
30
42
  }>;
31
43
  declare class BarGauge extends BaseComponent<React.PropsWithChildren<IBarGaugeOptions>> {
@@ -101,14 +113,14 @@ declare class Animation extends NestedOption<IAnimationProps> {
101
113
  declare type IBarGaugeTitleProps = React.PropsWithChildren<{
102
114
  font?: BaseWidgetTypes.Font;
103
115
  horizontalAlignment?: "center" | "left" | "right";
104
- margin?: number | object | {
116
+ margin?: number | Record<string, any> | {
105
117
  bottom?: number;
106
118
  left?: number;
107
119
  right?: number;
108
120
  top?: number;
109
121
  };
110
122
  placeholderSize?: number;
111
- subtitle?: object | string | {
123
+ subtitle?: Record<string, any> | string | {
112
124
  font?: BaseWidgetTypes.Font;
113
125
  offset?: number;
114
126
  text?: string;
@@ -246,7 +258,7 @@ declare class Label extends NestedOption<ILabelProps> {
246
258
  }
247
259
  declare type ILegendProps = React.PropsWithChildren<{
248
260
  backgroundColor?: string;
249
- border?: object | {
261
+ border?: Record<string, any> | {
250
262
  color?: string;
251
263
  cornerRadius?: number;
252
264
  dashStyle?: "dash" | "dot" | "longDash" | "solid";
@@ -270,7 +282,7 @@ declare type ILegendProps = React.PropsWithChildren<{
270
282
  itemsAlignment?: "center" | "left" | "right";
271
283
  itemTextFormat?: LocalizationTypes.Format;
272
284
  itemTextPosition?: "bottom" | "left" | "right" | "top";
273
- margin?: number | object | {
285
+ margin?: number | Record<string, any> | {
274
286
  bottom?: number;
275
287
  left?: number;
276
288
  right?: number;
@@ -283,17 +295,17 @@ declare type ILegendProps = React.PropsWithChildren<{
283
295
  paddingTopBottom?: number;
284
296
  rowCount?: number;
285
297
  rowItemSpacing?: number;
286
- title?: object | string | {
298
+ title?: Record<string, any> | string | {
287
299
  font?: BaseWidgetTypes.Font;
288
300
  horizontalAlignment?: "center" | "left" | "right";
289
- margin?: object | {
301
+ margin?: Record<string, any> | {
290
302
  bottom?: number;
291
303
  left?: number;
292
304
  right?: number;
293
305
  top?: number;
294
306
  };
295
307
  placeholderSize?: number;
296
- subtitle?: object | string | {
308
+ subtitle?: Record<string, any> | string | {
297
309
  font?: BaseWidgetTypes.Font;
298
310
  offset?: number;
299
311
  text?: string;
@@ -360,14 +372,14 @@ declare class LegendBorder extends NestedOption<ILegendBorderProps> {
360
372
  declare type ILegendTitleProps = React.PropsWithChildren<{
361
373
  font?: BaseWidgetTypes.Font;
362
374
  horizontalAlignment?: "center" | "left" | "right";
363
- margin?: object | {
375
+ margin?: Record<string, any> | {
364
376
  bottom?: number;
365
377
  left?: number;
366
378
  right?: number;
367
379
  top?: number;
368
380
  };
369
381
  placeholderSize?: number;
370
- subtitle?: object | string | {
382
+ subtitle?: Record<string, any> | string | {
371
383
  font?: BaseWidgetTypes.Font;
372
384
  offset?: number;
373
385
  text?: string;
@@ -412,7 +424,6 @@ declare class LegendTitleSubtitle extends NestedOption<ILegendTitleSubtitleProps
412
424
  }
413
425
  declare type ILoadingIndicatorProps = React.PropsWithChildren<{
414
426
  backgroundColor?: string;
415
- enabled?: boolean;
416
427
  font?: BaseWidgetTypes.Font;
417
428
  show?: boolean;
418
429
  text?: string;
@@ -470,14 +481,14 @@ declare class Subtitle extends NestedOption<ISubtitleProps> {
470
481
  declare type ITitleProps = React.PropsWithChildren<{
471
482
  font?: BaseWidgetTypes.Font;
472
483
  horizontalAlignment?: "center" | "left" | "right";
473
- margin?: object | {
484
+ margin?: Record<string, any> | {
474
485
  bottom?: number;
475
486
  left?: number;
476
487
  right?: number;
477
488
  top?: number;
478
489
  };
479
490
  placeholderSize?: number;
480
- subtitle?: object | string | {
491
+ subtitle?: Record<string, any> | string | {
481
492
  font?: BaseWidgetTypes.Font;
482
493
  offset?: number;
483
494
  text?: string;
@@ -492,7 +503,7 @@ declare class Title extends NestedOption<ITitleProps> {
492
503
  }
493
504
  declare type ITooltipProps = React.PropsWithChildren<{
494
505
  arrowLength?: number;
495
- border?: object | {
506
+ border?: Record<string, any> | {
496
507
  color?: string;
497
508
  dashStyle?: "dash" | "dot" | "longDash" | "solid";
498
509
  opacity?: number;
@@ -511,7 +522,7 @@ declare type ITooltipProps = React.PropsWithChildren<{
511
522
  index: number;
512
523
  value: number;
513
524
  valueText: string;
514
- }) => object);
525
+ }) => Record<string, any>);
515
526
  enabled?: boolean;
516
527
  font?: BaseWidgetTypes.Font;
517
528
  format?: LocalizationTypes.Format;
@@ -519,7 +530,7 @@ declare type ITooltipProps = React.PropsWithChildren<{
519
530
  opacity?: number;
520
531
  paddingLeftRight?: number;
521
532
  paddingTopBottom?: number;
522
- shadow?: object | {
533
+ shadow?: Record<string, any> | {
523
534
  blur?: number;
524
535
  color?: string;
525
536
  offsetX?: number;
package/bar-gauge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
package/box.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -12,23 +12,33 @@
12
12
  */
13
13
 
14
14
  /// <reference types="react" />
15
- export { ExplicitTypes } from "devextreme/ui/box";
16
15
  import dxBox, { Properties } from "devextreme/ui/box";
17
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
18
17
  import NestedOption from "./core/nested-option";
19
- import type { dxBoxItem, dxBoxOptions } from "devextreme/ui/box";
18
+ import type { dxBoxItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent, dxBoxOptions } from "devextreme/ui/box";
20
19
  import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
21
20
  import type { template } from "devextreme/core/templates/template";
22
- declare type IBoxOptions<TItem = any, TKey = any> = React.PropsWithChildren<Properties<TItem, TKey> & IHtmlOptions & {
23
- dataSource?: Properties<TItem, TKey>["dataSource"];
21
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
22
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
23
+ };
24
+ declare type IBoxOptionsNarrowedEvents = {
25
+ onContentReady?: ((e: ContentReadyEvent) => void);
26
+ onDisposing?: ((e: DisposingEvent) => void);
27
+ onInitialized?: ((e: InitializedEvent) => void);
28
+ onItemClick?: ((e: ItemClickEvent) => void);
29
+ onItemContextMenu?: ((e: ItemContextMenuEvent) => void);
30
+ onItemHold?: ((e: ItemHoldEvent) => void);
31
+ onItemRendered?: ((e: ItemRenderedEvent) => void);
32
+ };
33
+ declare type IBoxOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IBoxOptionsNarrowedEvents> & IHtmlOptions & {
24
34
  itemRender?: (...params: any) => React.ReactNode;
25
35
  itemComponent?: React.ComponentType<any>;
26
36
  itemKeyFn?: (data: any) => string;
27
37
  defaultItems?: Array<any | dxBoxItem | string>;
28
38
  onItemsChange?: (value: Array<any | dxBoxItem | string>) => void;
29
39
  }>;
30
- declare class Box<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IBoxOptions<TItem, TKey>>> {
31
- get instance(): dxBox<TItem, TKey>;
40
+ declare class Box extends BaseComponent<React.PropsWithChildren<IBoxOptions>> {
41
+ get instance(): dxBox;
32
42
  protected _WidgetClass: typeof dxBox;
33
43
  protected subscribableOptions: string[];
34
44
  protected independentEvents: string[];
package/box.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
package/bullet.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -15,10 +15,25 @@
15
15
  import dxBullet, { Properties } from "devextreme/viz/bullet";
16
16
  import { Component as BaseComponent, IHtmlOptions } from "./core/component";
17
17
  import NestedOption from "./core/nested-option";
18
+ import type { DisposingEvent, DrawnEvent, ExportedEvent, ExportingEvent, FileSavingEvent, IncidentOccurredEvent, InitializedEvent, TooltipHiddenEvent, TooltipShownEvent } from "devextreme/viz/bullet";
18
19
  import type { template } from "devextreme/core/templates/template";
19
20
  import type * as BaseWidgetTypes from "devextreme/viz/core/base_widget";
20
21
  import type * as LocalizationTypes from "devextreme/localization";
21
- declare type IBulletOptions = React.PropsWithChildren<Properties & IHtmlOptions & {}>;
22
+ declare type ReplaceFieldTypes<TSource, TReplacement> = {
23
+ [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
24
+ };
25
+ declare type IBulletOptionsNarrowedEvents = {
26
+ onDisposing?: ((e: DisposingEvent) => void);
27
+ onDrawn?: ((e: DrawnEvent) => void);
28
+ onExported?: ((e: ExportedEvent) => void);
29
+ onExporting?: ((e: ExportingEvent) => void);
30
+ onFileSaving?: ((e: FileSavingEvent) => void);
31
+ onIncidentOccurred?: ((e: IncidentOccurredEvent) => void);
32
+ onInitialized?: ((e: InitializedEvent) => void);
33
+ onTooltipHidden?: ((e: TooltipHiddenEvent) => void);
34
+ onTooltipShown?: ((e: TooltipShownEvent) => void);
35
+ };
36
+ declare type IBulletOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IBulletOptionsNarrowedEvents> & IHtmlOptions & {}>;
22
37
  declare class Bullet extends BaseComponent<React.PropsWithChildren<IBulletOptions>> {
23
38
  get instance(): dxBullet;
24
39
  protected _WidgetClass: typeof dxBullet;
@@ -97,7 +112,7 @@ declare class Size extends NestedOption<ISizeProps> {
97
112
  }
98
113
  declare type ITooltipProps = React.PropsWithChildren<{
99
114
  arrowLength?: number;
100
- border?: object | {
115
+ border?: Record<string, any> | {
101
116
  color?: string;
102
117
  dashStyle?: "dash" | "dot" | "longDash" | "solid";
103
118
  opacity?: number;
@@ -106,9 +121,9 @@ declare type ITooltipProps = React.PropsWithChildren<{
106
121
  };
107
122
  color?: string;
108
123
  container?: any | string;
109
- contentTemplate?: ((pointsInfo: object, element: any) => string) | template;
124
+ contentTemplate?: ((pointsInfo: Record<string, any>, element: any) => string) | template;
110
125
  cornerRadius?: number;
111
- customizeTooltip?: ((pointsInfo: object) => object);
126
+ customizeTooltip?: ((pointsInfo: Record<string, any>) => Record<string, any>);
112
127
  enabled?: boolean;
113
128
  font?: BaseWidgetTypes.Font;
114
129
  format?: LocalizationTypes.Format;
@@ -116,7 +131,7 @@ declare type ITooltipProps = React.PropsWithChildren<{
116
131
  opacity?: number;
117
132
  paddingLeftRight?: number;
118
133
  paddingTopBottom?: number;
119
- shadow?: object | {
134
+ shadow?: Record<string, any> | {
120
135
  blur?: number;
121
136
  color?: string;
122
137
  offsetX?: number;
package/bullet.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 23.1.2-alpha-23114-0308
4
- * Build date: Mon Apr 24 2023
3
+ * Version: 23.1.2-beta.2
4
+ * Build date: Fri May 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *