devextreme-react 23.1.2-alpha-23076-1933 → 23.1.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.
- package/accordion.d.ts +22 -7
- package/accordion.js +2 -2
- package/action-sheet.d.ts +10 -8
- package/action-sheet.js +2 -2
- package/autocomplete.d.ts +96 -82
- package/autocomplete.js +2 -2
- package/bar-gauge.d.ts +45 -42
- package/bar-gauge.js +2 -2
- package/box.d.ts +9 -6
- package/box.js +2 -2
- package/bullet.d.ts +27 -9
- package/bullet.js +2 -2
- package/button-group.d.ts +6 -5
- package/button-group.js +2 -2
- package/button.d.ts +2 -2
- package/button.js +2 -2
- package/calendar.d.ts +2 -2
- package/calendar.js +2 -2
- package/chart.d.ts +319 -311
- package/chart.js +2 -2
- package/check-box.d.ts +13 -3
- package/check-box.js +2 -2
- package/circular-gauge.d.ts +57 -39
- package/circular-gauge.js +2 -2
- package/color-box.d.ts +93 -81
- 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/{common.d.ts → index.d.ts} +2 -2
- package/common/{common.js → index.js} +2 -2
- package/context-menu.d.ts +41 -26
- 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 +4 -2
- package/core/component.js +9 -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 +426 -335
- package/data-grid.js +73 -4
- package/date-box.d.ts +107 -105
- package/date-box.js +2 -2
- package/date-range-box.d.ts +590 -0
- package/date-range-box.js +422 -0
- package/defer-rendering.d.ts +25 -14
- package/defer-rendering.js +2 -2
- package/diagram.d.ts +53 -39
- 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 +93 -81
- package/drop-down-box.js +2 -2
- package/drop-down-button.d.ts +62 -65
- package/drop-down-button.js +2 -2
- package/file-manager.d.ts +11 -66
- package/file-manager.js +2 -41
- package/file-uploader.d.ts +12 -3
- package/file-uploader.js +2 -2
- package/filter-builder.d.ts +22 -17
- package/filter-builder.js +3 -2
- package/form.d.ts +111 -207
- package/form.js +3 -5
- package/funnel.d.ts +60 -56
- package/funnel.js +2 -2
- package/gallery.d.ts +21 -7
- package/gallery.js +2 -2
- package/gantt.d.ts +123 -100
- package/gantt.js +38 -19
- package/html-editor.d.ts +56 -72
- package/html-editor.js +2 -2
- package/index.d.ts +3 -2
- package/index.js +6 -4
- package/linear-gauge.d.ts +42 -39
- package/linear-gauge.js +2 -2
- package/list.d.ts +80 -114
- package/list.js +2 -7
- package/load-indicator.d.ts +12 -3
- package/load-indicator.js +2 -2
- package/load-panel.d.ts +37 -22
- package/load-panel.js +2 -2
- package/lookup.d.ts +62 -107
- package/lookup.js +2 -2
- package/map.d.ts +20 -12
- package/map.js +2 -2
- package/menu.d.ts +32 -26
- package/menu.js +2 -2
- package/multi-view.d.ts +21 -7
- package/multi-view.js +2 -2
- package/number-box.d.ts +40 -24
- package/number-box.js +2 -2
- package/package.json +4 -4
- package/pie-chart.d.ts +111 -106
- package/pie-chart.js +2 -2
- package/pivot-grid-field-chooser.d.ts +20 -4
- package/pivot-grid-field-chooser.js +13 -3
- package/pivot-grid.d.ts +23 -7
- package/pivot-grid.js +13 -3
- package/polar-chart.d.ts +237 -232
- package/polar-chart.js +2 -2
- package/popover.d.ts +42 -24
- package/popover.js +2 -2
- package/popup.d.ts +27 -23
- package/popup.js +2 -2
- package/progress-bar.d.ts +13 -3
- package/progress-bar.js +2 -2
- package/radio-group.d.ts +5 -3
- package/radio-group.js +2 -2
- package/range-selector.d.ts +171 -165
- package/range-selector.js +2 -2
- package/range-slider.d.ts +15 -5
- 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 +9 -6
- package/responsive-box.js +2 -2
- package/sankey.d.ts +36 -32
- package/sankey.js +2 -2
- package/scheduler.d.ts +43 -35
- package/scheduler.js +2 -2
- package/scroll-view.d.ts +13 -3
- package/scroll-view.js +2 -2
- package/select-box.d.ts +96 -82
- package/select-box.js +2 -2
- package/slider.d.ts +5 -4
- package/slider.js +2 -2
- package/sortable.d.ts +2 -2
- package/sortable.js +2 -2
- package/sparkline.d.ts +11 -8
- 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 +22 -8
- package/tab-panel.js +2 -2
- package/tabs.d.ts +8 -5
- package/tabs.js +2 -2
- package/tag-box.d.ts +94 -82
- package/tag-box.js +2 -2
- package/text-area.d.ts +23 -3
- package/text-area.js +2 -2
- package/text-box.d.ts +40 -24
- package/text-box.js +2 -2
- package/tile-view.d.ts +8 -5
- package/tile-view.js +2 -2
- package/toast.d.ts +37 -22
- package/toast.js +2 -2
- package/toolbar.d.ts +9 -6
- package/toolbar.js +2 -2
- package/tooltip.d.ts +37 -22
- package/tooltip.js +2 -2
- package/tree-list.d.ts +405 -314
- package/tree-list.js +74 -5
- package/tree-map.d.ts +41 -37
- package/tree-map.js +2 -2
- package/tree-view.d.ts +45 -63
- package/tree-view.js +2 -2
- package/validation-group.d.ts +2 -2
- package/validation-group.js +2 -2
- package/validation-summary.d.ts +18 -6
- package/validation-summary.js +2 -2
- package/validator.d.ts +19 -19
- package/validator.js +2 -2
- package/vector-map.d.ts +64 -74
- 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
|
|
4
|
+
* Build date: Wed May 17 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -16,7 +16,22 @@ export { ExplicitTypes } from "devextreme/ui/accordion";
|
|
|
16
16
|
import dxAccordion, { Properties } from "devextreme/ui/accordion";
|
|
17
17
|
import { Component as BaseComponent, IHtmlOptions } from "./core/component";
|
|
18
18
|
import NestedOption from "./core/nested-option";
|
|
19
|
-
|
|
19
|
+
import type { dxAccordionItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent } from "devextreme/ui/accordion";
|
|
20
|
+
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
21
|
+
import type { template } from "devextreme/core/templates/template";
|
|
22
|
+
declare type ReplaceFieldTypes<TSource, TReplacement> = {
|
|
23
|
+
[P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
|
|
24
|
+
};
|
|
25
|
+
declare type IAccordionOptionsNarrowedEvents<TItem = any, TKey = any> = {
|
|
26
|
+
onContentReady?: ((e: ContentReadyEvent<TItem, TKey>) => void);
|
|
27
|
+
onDisposing?: ((e: DisposingEvent<TItem, TKey>) => void);
|
|
28
|
+
onInitialized?: ((e: InitializedEvent<TItem, TKey>) => void);
|
|
29
|
+
onItemClick?: ((e: ItemClickEvent<TItem, TKey>) => void);
|
|
30
|
+
onItemContextMenu?: ((e: ItemContextMenuEvent<TItem, TKey>) => void);
|
|
31
|
+
onItemHold?: ((e: ItemHoldEvent<TItem, TKey>) => void);
|
|
32
|
+
onItemRendered?: ((e: ItemRenderedEvent<TItem, TKey>) => void);
|
|
33
|
+
};
|
|
34
|
+
declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IAccordionOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
|
|
20
35
|
dataSource?: Properties<TItem, TKey>["dataSource"];
|
|
21
36
|
itemRender?: (...params: any) => React.ReactNode;
|
|
22
37
|
itemComponent?: React.ComponentType<any>;
|
|
@@ -24,12 +39,12 @@ declare type IAccordionOptions<TItem = any, TKey = any> = React.PropsWithChildre
|
|
|
24
39
|
itemTitleRender?: (...params: any) => React.ReactNode;
|
|
25
40
|
itemTitleComponent?: React.ComponentType<any>;
|
|
26
41
|
itemTitleKeyFn?: (data: any) => string;
|
|
27
|
-
defaultItems?: Array<any | string>;
|
|
42
|
+
defaultItems?: Array<any | dxAccordionItem | string>;
|
|
28
43
|
defaultSelectedIndex?: number;
|
|
29
44
|
defaultSelectedItem?: any;
|
|
30
45
|
defaultSelectedItemKeys?: Array<any>;
|
|
31
46
|
defaultSelectedItems?: Array<any>;
|
|
32
|
-
onItemsChange?: (value: Array<any | string>) => void;
|
|
47
|
+
onItemsChange?: (value: Array<any | dxAccordionItem | string>) => void;
|
|
33
48
|
onSelectedIndexChange?: (value: number) => void;
|
|
34
49
|
onSelectedItemChange?: (value: any) => void;
|
|
35
50
|
onSelectedItemKeysChange?: (value: Array<any>) => void;
|
|
@@ -64,10 +79,10 @@ declare type IItemProps = React.PropsWithChildren<{
|
|
|
64
79
|
disabled?: boolean;
|
|
65
80
|
html?: string;
|
|
66
81
|
icon?: string;
|
|
67
|
-
template?: ((itemData:
|
|
82
|
+
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string) | template;
|
|
68
83
|
text?: string;
|
|
69
84
|
title?: string;
|
|
70
|
-
titleTemplate?: (() => string);
|
|
85
|
+
titleTemplate?: (() => string) | template;
|
|
71
86
|
visible?: boolean;
|
|
72
87
|
render?: (...params: any) => React.ReactNode;
|
|
73
88
|
component?: React.ComponentType<any>;
|
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
|
|
4
|
+
* Build date: Wed May 17 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -16,14 +16,18 @@ export { ExplicitTypes } from "devextreme/ui/action_sheet";
|
|
|
16
16
|
import dxActionSheet, { Properties } from "devextreme/ui/action_sheet";
|
|
17
17
|
import { Component as BaseComponent, IHtmlOptions } from "./core/component";
|
|
18
18
|
import NestedOption from "./core/nested-option";
|
|
19
|
+
import type { dxActionSheetItem } from "devextreme/ui/action_sheet";
|
|
20
|
+
import type { NativeEventInfo } from "devextreme/events/index";
|
|
21
|
+
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
22
|
+
import type { template } from "devextreme/core/templates/template";
|
|
19
23
|
declare type IActionSheetOptions<TItem = any, TKey = any> = React.PropsWithChildren<Properties<TItem, TKey> & IHtmlOptions & {
|
|
20
24
|
dataSource?: Properties<TItem, TKey>["dataSource"];
|
|
21
25
|
itemRender?: (...params: any) => React.ReactNode;
|
|
22
26
|
itemComponent?: React.ComponentType<any>;
|
|
23
27
|
itemKeyFn?: (data: any) => string;
|
|
24
|
-
defaultItems?: Array<any | string>;
|
|
28
|
+
defaultItems?: Array<any | dxActionSheetItem | string>;
|
|
25
29
|
defaultVisible?: boolean;
|
|
26
|
-
onItemsChange?: (value: Array<any | string>) => void;
|
|
30
|
+
onItemsChange?: (value: Array<any | dxActionSheetItem | string>) => void;
|
|
27
31
|
onVisibleChange?: (value: boolean) => void;
|
|
28
32
|
}>;
|
|
29
33
|
declare class ActionSheet<TItem = any, TKey = any> extends BaseComponent<React.PropsWithChildren<IActionSheetOptions<TItem, TKey>>> {
|
|
@@ -50,14 +54,12 @@ declare class ActionSheet<TItem = any, TKey = any> extends BaseComponent<React.P
|
|
|
50
54
|
}
|
|
51
55
|
declare type IItemProps = React.PropsWithChildren<{
|
|
52
56
|
disabled?: boolean;
|
|
53
|
-
html?: string;
|
|
54
57
|
icon?: string;
|
|
55
|
-
onClick?: ((e: any) => void);
|
|
58
|
+
onClick?: ((e: NativeEventInfo<any>) => void);
|
|
56
59
|
stylingMode?: "text" | "outlined" | "contained";
|
|
57
|
-
template?: ((itemData:
|
|
60
|
+
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string) | template;
|
|
58
61
|
text?: string;
|
|
59
62
|
type?: "back" | "danger" | "default" | "normal" | "success";
|
|
60
|
-
visible?: boolean;
|
|
61
63
|
render?: (...params: any) => React.ReactNode;
|
|
62
64
|
component?: React.ComponentType<any>;
|
|
63
65
|
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
|
|
4
|
+
* Build date: Wed May 17 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -15,7 +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
|
-
|
|
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 { AnimationConfig, AnimationState } from "devextreme/animation/fx";
|
|
20
|
+
import type { dxButtonOptions } from "devextreme/ui/button";
|
|
21
|
+
import type { event, EventInfo } from "devextreme/events/index";
|
|
22
|
+
import type { template } from "devextreme/core/templates/template";
|
|
23
|
+
import type { Component } from "devextreme/core/component";
|
|
24
|
+
import type { PositionConfig } from "devextreme/animation/position";
|
|
25
|
+
import type { dxPopupToolbarItem } from "devextreme/ui/popup";
|
|
26
|
+
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
27
|
+
import type dxOverlay from "devextreme/ui/overlay";
|
|
28
|
+
import type DOMComponent from "devextreme/core/dom_component";
|
|
29
|
+
import type dxPopup from "devextreme/ui/popup";
|
|
30
|
+
import type dxButton from "devextreme/ui/button";
|
|
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 & {
|
|
19
54
|
dropDownButtonRender?: (...params: any) => React.ReactNode;
|
|
20
55
|
dropDownButtonComponent?: React.ComponentType<any>;
|
|
21
56
|
dropDownButtonKeyFn?: (data: any) => string;
|
|
@@ -61,8 +96,8 @@ declare class Autocomplete extends BaseComponent<React.PropsWithChildren<IAutoco
|
|
|
61
96
|
}[];
|
|
62
97
|
}
|
|
63
98
|
declare type IAnimationProps = React.PropsWithChildren<{
|
|
64
|
-
hide?:
|
|
65
|
-
show?:
|
|
99
|
+
hide?: AnimationConfig;
|
|
100
|
+
show?: AnimationConfig;
|
|
66
101
|
}>;
|
|
67
102
|
declare class Animation extends NestedOption<IAnimationProps> {
|
|
68
103
|
static OptionName: string;
|
|
@@ -94,7 +129,7 @@ declare class BoundaryOffset extends NestedOption<IBoundaryOffsetProps> {
|
|
|
94
129
|
declare type IButtonProps = React.PropsWithChildren<{
|
|
95
130
|
location?: "after" | "before";
|
|
96
131
|
name?: string;
|
|
97
|
-
options?:
|
|
132
|
+
options?: dxButtonOptions;
|
|
98
133
|
}>;
|
|
99
134
|
declare class Button extends NestedOption<IButtonProps> {
|
|
100
135
|
static OptionName: string;
|
|
@@ -115,15 +150,14 @@ declare class Collision extends NestedOption<ICollisionProps> {
|
|
|
115
150
|
}
|
|
116
151
|
declare type IDropDownOptionsProps = React.PropsWithChildren<{
|
|
117
152
|
accessKey?: string;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
show?: any;
|
|
153
|
+
animation?: Record<string, any> | {
|
|
154
|
+
hide?: AnimationConfig;
|
|
155
|
+
show?: AnimationConfig;
|
|
122
156
|
};
|
|
123
|
-
bindingOptions?:
|
|
124
|
-
closeOnOutsideClick?: boolean | ((event:
|
|
157
|
+
bindingOptions?: Record<string, any>;
|
|
158
|
+
closeOnOutsideClick?: boolean | ((event: event) => boolean);
|
|
125
159
|
container?: any | string;
|
|
126
|
-
contentTemplate?: ((contentElement: any) => string);
|
|
160
|
+
contentTemplate?: ((contentElement: any) => string) | template;
|
|
127
161
|
copyRootClassesToWrapper?: boolean;
|
|
128
162
|
deferRendering?: boolean;
|
|
129
163
|
disabled?: boolean;
|
|
@@ -135,7 +169,7 @@ declare type IDropDownOptionsProps = React.PropsWithChildren<{
|
|
|
135
169
|
focusStateEnabled?: boolean;
|
|
136
170
|
fullScreen?: boolean;
|
|
137
171
|
height?: (() => number) | number | string;
|
|
138
|
-
hideOnOutsideClick?: boolean | ((event:
|
|
172
|
+
hideOnOutsideClick?: boolean | ((event: event) => boolean);
|
|
139
173
|
hideOnParentScroll?: boolean;
|
|
140
174
|
hint?: string;
|
|
141
175
|
hoverStateEnabled?: boolean;
|
|
@@ -143,31 +177,21 @@ declare type IDropDownOptionsProps = React.PropsWithChildren<{
|
|
|
143
177
|
maxWidth?: (() => number) | number | string;
|
|
144
178
|
minHeight?: (() => number) | number | string;
|
|
145
179
|
minWidth?: (() => number) | number | string;
|
|
146
|
-
onContentReady?: ((e: any) => void);
|
|
147
|
-
onDisposing?: ((e: any) => void);
|
|
148
|
-
|
|
149
|
-
component: any;
|
|
150
|
-
element: any;
|
|
151
|
-
model: object;
|
|
152
|
-
}) => void);
|
|
153
|
-
onFocusOut?: ((e: {
|
|
154
|
-
component: any;
|
|
155
|
-
element: any;
|
|
156
|
-
model: object;
|
|
157
|
-
}) => void);
|
|
158
|
-
onHidden?: ((e: any) => void);
|
|
180
|
+
onContentReady?: ((e: EventInfo<any>) => void);
|
|
181
|
+
onDisposing?: ((e: EventInfo<any>) => void);
|
|
182
|
+
onHidden?: ((e: EventInfo<any>) => void);
|
|
159
183
|
onHiding?: ((e: {
|
|
160
184
|
cancel: boolean | any;
|
|
161
|
-
component: any
|
|
185
|
+
component: dxOverlay<any>;
|
|
162
186
|
element: any;
|
|
163
187
|
model: any;
|
|
164
188
|
}) => void);
|
|
165
189
|
onInitialized?: ((e: {
|
|
166
|
-
component: any
|
|
190
|
+
component: Component<any>;
|
|
167
191
|
element: any;
|
|
168
192
|
}) => void);
|
|
169
193
|
onOptionChanged?: ((e: {
|
|
170
|
-
component:
|
|
194
|
+
component: DOMComponent;
|
|
171
195
|
element: any;
|
|
172
196
|
fullName: string;
|
|
173
197
|
model: any;
|
|
@@ -176,43 +200,43 @@ declare type IDropDownOptionsProps = React.PropsWithChildren<{
|
|
|
176
200
|
value: any;
|
|
177
201
|
}) => void);
|
|
178
202
|
onResize?: ((e: {
|
|
179
|
-
component:
|
|
203
|
+
component: dxPopup;
|
|
180
204
|
element: any;
|
|
181
|
-
event:
|
|
205
|
+
event: event;
|
|
182
206
|
height: number;
|
|
183
207
|
model: any;
|
|
184
208
|
width: number;
|
|
185
209
|
}) => void);
|
|
186
210
|
onResizeEnd?: ((e: {
|
|
187
|
-
component:
|
|
211
|
+
component: dxPopup;
|
|
188
212
|
element: any;
|
|
189
|
-
event:
|
|
213
|
+
event: event;
|
|
190
214
|
height: number;
|
|
191
215
|
model: any;
|
|
192
216
|
width: number;
|
|
193
217
|
}) => void);
|
|
194
218
|
onResizeStart?: ((e: {
|
|
195
|
-
component:
|
|
219
|
+
component: dxPopup;
|
|
196
220
|
element: any;
|
|
197
|
-
event:
|
|
221
|
+
event: event;
|
|
198
222
|
height: number;
|
|
199
223
|
model: any;
|
|
200
224
|
width: number;
|
|
201
225
|
}) => void);
|
|
202
226
|
onShowing?: ((e: {
|
|
203
227
|
cancel: boolean | any;
|
|
204
|
-
component: any
|
|
228
|
+
component: dxOverlay<any>;
|
|
205
229
|
element: any;
|
|
206
230
|
model: any;
|
|
207
231
|
}) => void);
|
|
208
|
-
onShown?: ((e: any) => void);
|
|
232
|
+
onShown?: ((e: EventInfo<any>) => void);
|
|
209
233
|
onTitleRendered?: ((e: {
|
|
210
|
-
component:
|
|
234
|
+
component: dxPopup;
|
|
211
235
|
element: any;
|
|
212
236
|
model: any;
|
|
213
237
|
titleElement: any;
|
|
214
238
|
}) => void);
|
|
215
|
-
position?: (() => void) | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top";
|
|
239
|
+
position?: (() => void) | PositionConfig | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top";
|
|
216
240
|
resizeEnabled?: boolean;
|
|
217
241
|
restorePosition?: boolean;
|
|
218
242
|
rtlEnabled?: boolean;
|
|
@@ -222,15 +246,15 @@ declare type IDropDownOptionsProps = React.PropsWithChildren<{
|
|
|
222
246
|
showTitle?: boolean;
|
|
223
247
|
tabIndex?: number;
|
|
224
248
|
title?: string;
|
|
225
|
-
titleTemplate?: ((titleElement: any) => string);
|
|
226
|
-
toolbarItems?: Array<
|
|
249
|
+
titleTemplate?: ((titleElement: any) => string) | template;
|
|
250
|
+
toolbarItems?: Array<dxPopupToolbarItem>;
|
|
227
251
|
visible?: boolean;
|
|
228
252
|
width?: (() => number) | number | string;
|
|
229
253
|
wrapperAttr?: any;
|
|
230
254
|
defaultHeight?: (() => number) | number | string;
|
|
231
255
|
onHeightChange?: (value: (() => number) | number | string) => void;
|
|
232
|
-
defaultPosition?: (() => void) | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top";
|
|
233
|
-
onPositionChange?: (value: (() => void) | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top") => void;
|
|
256
|
+
defaultPosition?: (() => void) | PositionConfig | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top";
|
|
257
|
+
onPositionChange?: (value: (() => void) | PositionConfig | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top") => void;
|
|
234
258
|
defaultVisible?: boolean;
|
|
235
259
|
onVisibleChange?: (value: boolean) => void;
|
|
236
260
|
defaultWidth?: (() => number) | number | string;
|
|
@@ -274,7 +298,7 @@ declare class DropDownOptions extends NestedOption<IDropDownOptionsProps> {
|
|
|
274
298
|
declare type IFromProps = React.PropsWithChildren<{
|
|
275
299
|
left?: number;
|
|
276
300
|
opacity?: number;
|
|
277
|
-
position?:
|
|
301
|
+
position?: PositionConfig;
|
|
278
302
|
scale?: number;
|
|
279
303
|
top?: number;
|
|
280
304
|
}>;
|
|
@@ -288,15 +312,15 @@ declare class From extends NestedOption<IFromProps> {
|
|
|
288
312
|
};
|
|
289
313
|
}
|
|
290
314
|
declare type IHideProps = React.PropsWithChildren<{
|
|
291
|
-
complete?: (($element: any, config:
|
|
315
|
+
complete?: (($element: any, config: AnimationConfig) => void);
|
|
292
316
|
delay?: number;
|
|
293
317
|
direction?: "bottom" | "left" | "right" | "top";
|
|
294
318
|
duration?: number;
|
|
295
319
|
easing?: string;
|
|
296
|
-
from?:
|
|
320
|
+
from?: AnimationState;
|
|
297
321
|
staggerDelay?: number;
|
|
298
|
-
start?: (($element: any, config:
|
|
299
|
-
to?:
|
|
322
|
+
start?: (($element: any, config: AnimationConfig) => void);
|
|
323
|
+
to?: AnimationState;
|
|
300
324
|
type?: "css" | "fade" | "fadeIn" | "fadeOut" | "pop" | "slide" | "slideIn" | "slideOut";
|
|
301
325
|
}>;
|
|
302
326
|
declare class Hide extends NestedOption<IHideProps> {
|
|
@@ -315,7 +339,7 @@ declare class Hide extends NestedOption<IHideProps> {
|
|
|
315
339
|
declare type IItemProps = React.PropsWithChildren<{
|
|
316
340
|
disabled?: boolean;
|
|
317
341
|
html?: string;
|
|
318
|
-
template?: ((itemData:
|
|
342
|
+
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string) | template;
|
|
319
343
|
text?: string;
|
|
320
344
|
visible?: boolean;
|
|
321
345
|
render?: (...params: any) => React.ReactNode;
|
|
@@ -349,39 +373,29 @@ declare class Offset extends NestedOption<IOffsetProps> {
|
|
|
349
373
|
declare type IOptionsProps = React.PropsWithChildren<{
|
|
350
374
|
accessKey?: string;
|
|
351
375
|
activeStateEnabled?: boolean;
|
|
352
|
-
bindingOptions?:
|
|
376
|
+
bindingOptions?: Record<string, any>;
|
|
353
377
|
disabled?: boolean;
|
|
354
|
-
elementAttr?:
|
|
378
|
+
elementAttr?: Record<string, any>;
|
|
355
379
|
focusStateEnabled?: boolean;
|
|
356
380
|
height?: (() => number) | number | string;
|
|
357
381
|
hint?: string;
|
|
358
382
|
hoverStateEnabled?: boolean;
|
|
359
383
|
icon?: string;
|
|
360
384
|
onClick?: ((e: {
|
|
361
|
-
component:
|
|
385
|
+
component: dxButton;
|
|
362
386
|
element: any;
|
|
363
|
-
event:
|
|
387
|
+
event: event;
|
|
364
388
|
model: any;
|
|
365
|
-
validationGroup:
|
|
366
|
-
}) => void);
|
|
367
|
-
onContentReady?: ((e: any) => void);
|
|
368
|
-
onDisposing?: ((e: any) => void);
|
|
369
|
-
onFocusIn?: ((e: {
|
|
370
|
-
component: any;
|
|
371
|
-
element: any;
|
|
372
|
-
model: object;
|
|
373
|
-
}) => void);
|
|
374
|
-
onFocusOut?: ((e: {
|
|
375
|
-
component: any;
|
|
376
|
-
element: any;
|
|
377
|
-
model: object;
|
|
389
|
+
validationGroup: Record<string, any>;
|
|
378
390
|
}) => void);
|
|
391
|
+
onContentReady?: ((e: EventInfo<any>) => void);
|
|
392
|
+
onDisposing?: ((e: EventInfo<any>) => void);
|
|
379
393
|
onInitialized?: ((e: {
|
|
380
|
-
component: any
|
|
394
|
+
component: Component<any>;
|
|
381
395
|
element: any;
|
|
382
396
|
}) => void);
|
|
383
397
|
onOptionChanged?: ((e: {
|
|
384
|
-
component:
|
|
398
|
+
component: DOMComponent;
|
|
385
399
|
element: any;
|
|
386
400
|
fullName: string;
|
|
387
401
|
model: any;
|
|
@@ -395,7 +409,7 @@ declare type IOptionsProps = React.PropsWithChildren<{
|
|
|
395
409
|
template?: ((buttonData: {
|
|
396
410
|
icon: string;
|
|
397
411
|
text: string;
|
|
398
|
-
}, contentElement: any) => string);
|
|
412
|
+
}, contentElement: any) => string) | template;
|
|
399
413
|
text?: string;
|
|
400
414
|
type?: "back" | "danger" | "default" | "normal" | "success";
|
|
401
415
|
useSubmitBehavior?: boolean;
|
|
@@ -416,25 +430,25 @@ declare class Options extends NestedOption<IOptionsProps> {
|
|
|
416
430
|
}[];
|
|
417
431
|
}
|
|
418
432
|
declare type IPositionProps = React.PropsWithChildren<{
|
|
419
|
-
at?:
|
|
433
|
+
at?: Record<string, any> | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
|
|
420
434
|
x?: "center" | "left" | "right";
|
|
421
435
|
y?: "bottom" | "center" | "top";
|
|
422
436
|
};
|
|
423
437
|
boundary?: any | string;
|
|
424
|
-
boundaryOffset?:
|
|
438
|
+
boundaryOffset?: Record<string, any> | string | {
|
|
425
439
|
x?: number;
|
|
426
440
|
y?: number;
|
|
427
441
|
};
|
|
428
|
-
collision?:
|
|
442
|
+
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" | {
|
|
429
443
|
x?: "fit" | "flip" | "flipfit" | "none";
|
|
430
444
|
y?: "fit" | "flip" | "flipfit" | "none";
|
|
431
445
|
};
|
|
432
|
-
my?:
|
|
446
|
+
my?: Record<string, any> | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" | {
|
|
433
447
|
x?: "center" | "left" | "right";
|
|
434
448
|
y?: "bottom" | "center" | "top";
|
|
435
449
|
};
|
|
436
450
|
of?: any | string;
|
|
437
|
-
offset?:
|
|
451
|
+
offset?: Record<string, any> | string | {
|
|
438
452
|
x?: number;
|
|
439
453
|
y?: number;
|
|
440
454
|
};
|
|
@@ -443,15 +457,15 @@ declare class Position extends NestedOption<IPositionProps> {
|
|
|
443
457
|
static OptionName: string;
|
|
444
458
|
}
|
|
445
459
|
declare type IShowProps = React.PropsWithChildren<{
|
|
446
|
-
complete?: (($element: any, config:
|
|
460
|
+
complete?: (($element: any, config: AnimationConfig) => void);
|
|
447
461
|
delay?: number;
|
|
448
462
|
direction?: "bottom" | "left" | "right" | "top";
|
|
449
463
|
duration?: number;
|
|
450
464
|
easing?: string;
|
|
451
|
-
from?:
|
|
465
|
+
from?: AnimationState;
|
|
452
466
|
staggerDelay?: number;
|
|
453
|
-
start?: (($element: any, config:
|
|
454
|
-
to?:
|
|
467
|
+
start?: (($element: any, config: AnimationConfig) => void);
|
|
468
|
+
to?: AnimationState;
|
|
455
469
|
type?: "css" | "fade" | "fadeIn" | "fadeOut" | "pop" | "slide" | "slideIn" | "slideOut";
|
|
456
470
|
}>;
|
|
457
471
|
declare class Show extends NestedOption<IShowProps> {
|
|
@@ -460,7 +474,7 @@ declare class Show extends NestedOption<IShowProps> {
|
|
|
460
474
|
declare type IToProps = React.PropsWithChildren<{
|
|
461
475
|
left?: number;
|
|
462
476
|
opacity?: number;
|
|
463
|
-
position?:
|
|
477
|
+
position?: PositionConfig;
|
|
464
478
|
scale?: number;
|
|
465
479
|
top?: number;
|
|
466
480
|
}>;
|
|
@@ -473,10 +487,10 @@ declare type IToolbarItemProps = React.PropsWithChildren<{
|
|
|
473
487
|
html?: string;
|
|
474
488
|
locateInMenu?: "always" | "auto" | "never";
|
|
475
489
|
location?: "after" | "before" | "center";
|
|
476
|
-
menuItemTemplate?: (() => string);
|
|
490
|
+
menuItemTemplate?: (() => string) | template;
|
|
477
491
|
options?: any;
|
|
478
492
|
showText?: "always" | "inMenu";
|
|
479
|
-
template?: ((itemData:
|
|
493
|
+
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string) | template;
|
|
480
494
|
text?: string;
|
|
481
495
|
toolbar?: "bottom" | "top";
|
|
482
496
|
visible?: boolean;
|