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.
- package/accordion.d.ts +18 -8
- package/accordion.js +2 -2
- package/action-sheet.d.ts +18 -10
- package/action-sheet.js +2 -2
- package/autocomplete.d.ts +41 -51
- package/autocomplete.js +2 -2
- package/bar-gauge.d.ts +32 -21
- package/bar-gauge.js +2 -2
- package/box.d.ts +18 -8
- package/box.js +2 -2
- package/bullet.d.ts +22 -7
- package/bullet.js +2 -2
- package/button-group.d.ts +13 -5
- package/button-group.js +2 -2
- package/button.d.ts +12 -3
- package/button.js +2 -2
- package/calendar.d.ts +12 -3
- package/calendar.js +2 -2
- package/chart.d.ts +193 -177
- package/chart.js +2 -2
- package/check-box.d.ts +13 -3
- package/check-box.js +2 -2
- package/circular-gauge.d.ts +31 -17
- package/circular-gauge.js +2 -2
- package/color-box.d.ts +39 -51
- package/color-box.js +2 -2
- package/common/charts.d.ts +2 -2
- package/common/charts.js +2 -2
- package/common/grids.d.ts +3 -3
- package/common/grids.js +2 -2
- package/common/index.d.ts +2 -2
- package/common/index.js +2 -2
- package/context-menu.d.ts +23 -15
- package/context-menu.js +2 -2
- package/core/component-base.d.ts +2 -2
- package/core/component-base.js +2 -2
- package/core/component.d.ts +2 -2
- package/core/component.js +2 -2
- package/core/config.d.ts +2 -2
- package/core/config.js +2 -2
- package/core/configuration/comparer.d.ts +2 -2
- package/core/configuration/comparer.js +2 -2
- package/core/configuration/config-node.d.ts +2 -2
- package/core/configuration/config-node.js +2 -2
- package/core/configuration/react/element.d.ts +2 -2
- package/core/configuration/react/element.js +2 -2
- package/core/configuration/react/templates.d.ts +2 -2
- package/core/configuration/react/templates.js +2 -2
- package/core/configuration/react/tree.d.ts +2 -2
- package/core/configuration/react/tree.js +2 -2
- package/core/configuration/tree.d.ts +2 -2
- package/core/configuration/tree.js +2 -2
- package/core/configuration/utils.d.ts +2 -2
- package/core/configuration/utils.js +2 -2
- package/core/dx-template.d.ts +2 -2
- package/core/dx-template.js +2 -2
- package/core/extension-component.d.ts +2 -2
- package/core/extension-component.js +2 -2
- package/core/helpers.d.ts +2 -2
- package/core/helpers.js +2 -2
- package/core/nested-option.d.ts +2 -2
- package/core/nested-option.js +2 -2
- package/core/options-manager.d.ts +2 -2
- package/core/options-manager.js +2 -2
- package/core/template-wrapper.d.ts +2 -2
- package/core/template-wrapper.js +2 -2
- package/core/template.d.ts +2 -2
- package/core/template.js +2 -2
- package/core/templates-manager.d.ts +2 -2
- package/core/templates-manager.js +2 -2
- package/core/templates-renderer.d.ts +2 -2
- package/core/templates-renderer.js +2 -2
- package/core/templates-store.d.ts +2 -2
- package/core/templates-store.js +2 -2
- package/core/widget-config.d.ts +2 -2
- package/core/widget-config.js +2 -2
- package/data-grid.d.ts +146 -182
- package/data-grid.js +4 -2
- package/date-box.d.ts +49 -92
- package/date-box.js +2 -2
- package/date-range-box.d.ts +49 -92
- package/date-range-box.js +16 -23
- package/defer-rendering.d.ts +17 -8
- package/defer-rendering.js +2 -2
- package/diagram.d.ts +27 -19
- package/diagram.js +2 -2
- package/draggable.d.ts +11 -3
- package/draggable.js +2 -2
- package/drawer.d.ts +11 -3
- package/drawer.js +2 -2
- package/drop-down-box.d.ts +39 -51
- package/drop-down-box.js +2 -2
- package/drop-down-button.d.ts +20 -25
- package/drop-down-button.js +2 -2
- package/file-manager.d.ts +13 -62
- package/file-manager.js +2 -41
- package/file-uploader.d.ts +12 -3
- package/file-uploader.js +2 -2
- package/filter-builder.d.ts +18 -10
- package/filter-builder.js +3 -2
- package/form.d.ts +73 -190
- package/form.js +3 -5
- package/funnel.d.ts +45 -33
- package/funnel.js +2 -2
- package/gallery.d.ts +18 -9
- package/gallery.js +2 -2
- package/gantt.d.ts +25 -68
- package/gantt.js +5 -19
- package/html-editor.d.ts +24 -44
- package/html-editor.js +2 -2
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/linear-gauge.d.ts +32 -18
- package/linear-gauge.js +2 -2
- package/list.d.ts +50 -113
- package/list.js +2 -7
- package/load-indicator.d.ts +12 -3
- package/load-indicator.js +2 -2
- package/load-panel.d.ts +21 -8
- package/load-panel.js +2 -2
- package/lookup.d.ts +35 -89
- package/lookup.js +2 -2
- package/map.d.ts +20 -12
- package/map.js +2 -2
- package/menu.d.ts +25 -17
- package/menu.js +2 -2
- package/multi-view.d.ts +18 -9
- package/multi-view.js +2 -2
- package/number-box.d.ts +32 -36
- package/number-box.js +2 -2
- package/package.json +5 -5
- package/pie-chart.d.ts +76 -60
- package/pie-chart.js +2 -2
- package/pivot-grid-field-chooser.d.ts +13 -4
- package/pivot-grid-field-chooser.js +2 -2
- package/pivot-grid.d.ts +16 -7
- package/pivot-grid.js +2 -2
- package/polar-chart.d.ts +152 -138
- package/polar-chart.js +2 -2
- package/popover.d.ts +22 -8
- package/popover.js +2 -2
- package/popup.d.ts +7 -7
- package/popup.js +2 -2
- package/progress-bar.d.ts +13 -3
- package/progress-bar.js +2 -2
- package/radio-group.d.ts +13 -3
- package/radio-group.js +2 -2
- package/range-selector.d.ts +118 -105
- package/range-selector.js +2 -2
- package/range-slider.d.ts +12 -3
- package/range-slider.js +2 -2
- package/recurrence-editor.d.ts +15 -3
- package/recurrence-editor.js +2 -2
- package/resizable.d.ts +11 -3
- package/resizable.js +2 -2
- package/responsive-box.d.ts +19 -9
- package/responsive-box.js +2 -2
- package/sankey.d.ts +36 -24
- package/sankey.js +2 -2
- package/scheduler.d.ts +22 -14
- package/scheduler.js +2 -2
- package/scroll-view.d.ts +13 -3
- package/scroll-view.js +2 -2
- package/select-box.d.ts +41 -51
- package/select-box.js +2 -2
- package/slider.d.ts +13 -3
- package/slider.js +2 -2
- package/sortable.d.ts +11 -3
- package/sortable.js +2 -2
- package/sparkline.d.ts +22 -7
- package/sparkline.js +2 -2
- package/speed-dial-action.d.ts +11 -3
- package/speed-dial-action.js +2 -2
- package/switch.d.ts +13 -3
- package/switch.js +2 -2
- package/tab-panel.d.ts +18 -9
- package/tab-panel.js +2 -2
- package/tabs.d.ts +18 -8
- package/tabs.js +2 -2
- package/tag-box.d.ts +39 -51
- package/tag-box.js +2 -2
- package/text-area.d.ts +23 -3
- package/text-area.js +2 -2
- package/text-box.d.ts +32 -36
- package/text-box.js +2 -2
- package/tile-view.d.ts +18 -8
- package/tile-view.js +2 -2
- package/toast.d.ts +21 -8
- package/toast.js +2 -2
- package/toolbar.d.ts +18 -8
- package/toolbar.js +2 -2
- package/tooltip.d.ts +21 -8
- package/tooltip.js +2 -2
- package/tree-list.d.ts +136 -168
- package/tree-list.js +4 -2
- package/tree-map.d.ts +37 -25
- package/tree-map.js +2 -2
- package/tree-view.d.ts +41 -77
- package/tree-view.js +2 -2
- package/validation-group.d.ts +11 -3
- package/validation-group.js +2 -2
- package/validation-summary.d.ts +15 -7
- package/validation-summary.js +2 -2
- package/validator.d.ts +19 -19
- package/validator.js +2 -2
- package/vector-map.d.ts +44 -49
- 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-
|
|
4
|
-
* Build date:
|
|
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
|
|
23
|
-
|
|
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
|
|
42
|
-
get instance(): dxAccordion
|
|
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
package/action-sheet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.1.2-
|
|
4
|
-
* Build date:
|
|
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
|
|
24
|
-
|
|
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
|
|
34
|
-
get instance(): dxActionSheet
|
|
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
package/autocomplete.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.1.2-
|
|
4
|
-
* Build date:
|
|
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
|
|
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
|
-
|
|
132
|
-
animation?: object | {
|
|
153
|
+
animation?: Record<string, any> | {
|
|
133
154
|
hide?: AnimationConfig;
|
|
134
155
|
show?: AnimationConfig;
|
|
135
156
|
};
|
|
136
|
-
bindingOptions?:
|
|
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?:
|
|
376
|
+
bindingOptions?: Record<string, any>;
|
|
366
377
|
disabled?: boolean;
|
|
367
|
-
elementAttr?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
427
|
+
boundaryOffset?: Record<string, any> | string | {
|
|
438
428
|
x?: number;
|
|
439
429
|
y?: number;
|
|
440
430
|
};
|
|
441
|
-
collision?:
|
|
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?:
|
|
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?:
|
|
440
|
+
offset?: Record<string, any> | string | {
|
|
451
441
|
x?: number;
|
|
452
442
|
y?: number;
|
|
453
443
|
};
|
package/autocomplete.js
CHANGED
package/bar-gauge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.1.2-
|
|
4
|
-
* Build date:
|
|
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
|
|
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?:
|
|
38
|
+
defaultLoadingIndicator?: Record<string, any>;
|
|
27
39
|
defaultValues?: Array<number>;
|
|
28
|
-
onLoadingIndicatorChange?: (value:
|
|
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 |
|
|
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?:
|
|
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?:
|
|
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 |
|
|
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?:
|
|
298
|
+
title?: Record<string, any> | string | {
|
|
287
299
|
font?: BaseWidgetTypes.Font;
|
|
288
300
|
horizontalAlignment?: "center" | "left" | "right";
|
|
289
|
-
margin?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
-
}) =>
|
|
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?:
|
|
533
|
+
shadow?: Record<string, any> | {
|
|
523
534
|
blur?: number;
|
|
524
535
|
color?: string;
|
|
525
536
|
offsetX?: number;
|
package/bar-gauge.js
CHANGED
package/box.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.1.2-
|
|
4
|
-
* Build date:
|
|
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
|
|
23
|
-
|
|
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
|
|
31
|
-
get instance(): dxBox
|
|
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
package/bullet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.1.2-
|
|
4
|
-
* Build date:
|
|
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
|
|
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?:
|
|
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:
|
|
124
|
+
contentTemplate?: ((pointsInfo: Record<string, any>, element: any) => string) | template;
|
|
110
125
|
cornerRadius?: number;
|
|
111
|
-
customizeTooltip?: ((pointsInfo:
|
|
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?:
|
|
134
|
+
shadow?: Record<string, any> | {
|
|
120
135
|
blur?: number;
|
|
121
136
|
color?: string;
|
|
122
137
|
offsetX?: number;
|