devextreme-react 24.2.1-alpha-24256-1935 → 24.2.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/accordion.d.ts +22 -6
- package/cjs/accordion.js +21 -16
- package/cjs/action-sheet.d.ts +22 -8
- package/cjs/action-sheet.js +17 -12
- package/cjs/autocomplete.d.ts +382 -84
- package/cjs/autocomplete.js +203 -123
- package/cjs/bar-gauge.d.ts +435 -106
- package/cjs/bar-gauge.js +254 -144
- package/cjs/box.d.ts +22 -7
- package/cjs/box.js +17 -12
- package/cjs/bullet.d.ts +118 -32
- package/cjs/bullet.js +76 -41
- package/cjs/button-group.d.ts +21 -6
- package/cjs/button-group.js +17 -12
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +2 -2
- package/cjs/calendar.d.ts +5 -5
- package/cjs/calendar.js +2 -2
- package/cjs/chart.d.ts +2989 -779
- package/cjs/chart.js +1082 -622
- package/cjs/chat.d.ts +112 -13
- package/cjs/chat.js +94 -17
- package/cjs/check-box.d.ts +4 -4
- package/cjs/check-box.js +2 -2
- package/cjs/circular-gauge.d.ts +451 -112
- package/cjs/circular-gauge.js +268 -148
- package/cjs/color-box.d.ts +368 -80
- package/cjs/color-box.js +187 -112
- package/cjs/common/charts.d.ts +2 -2
- package/cjs/common/charts.js +2 -2
- package/cjs/common/data/custom-store.d.ts +2 -2
- package/cjs/common/data/custom-store.js +2 -2
- package/cjs/common/grids.d.ts +3 -3
- package/cjs/common/grids.js +2 -2
- package/cjs/common/index.d.ts +3 -3
- package/cjs/common/index.js +2 -2
- package/cjs/context-menu.d.ts +206 -60
- package/cjs/context-menu.js +157 -82
- package/cjs/core/component-base.d.ts +19 -5
- package/cjs/core/component-base.js +46 -30
- package/cjs/core/component.d.ts +21 -6
- package/cjs/core/component.js +4 -6
- package/cjs/core/config.d.ts +2 -2
- package/cjs/core/config.js +2 -2
- package/cjs/core/configuration/comparer.d.ts +2 -2
- package/cjs/core/configuration/comparer.js +16 -14
- package/cjs/core/configuration/config-node.d.ts +20 -5
- package/cjs/core/configuration/config-node.js +102 -2
- package/cjs/core/configuration/react/element.d.ts +5 -12
- package/cjs/core/configuration/react/element.js +35 -38
- package/cjs/core/configuration/react/templates.d.ts +2 -2
- package/cjs/core/configuration/react/templates.js +2 -2
- package/cjs/core/configuration/tree.d.ts +2 -2
- package/cjs/core/configuration/tree.js +5 -3
- package/cjs/core/configuration/utils.d.ts +2 -2
- package/cjs/core/configuration/utils.js +2 -2
- package/cjs/core/contexts.d.ts +34 -0
- package/cjs/core/contexts.js +30 -0
- package/cjs/core/extension-component.d.ts +20 -8
- package/cjs/core/extension-component.js +4 -3
- package/cjs/core/helpers.d.ts +3 -6
- package/cjs/core/helpers.js +3 -8
- package/cjs/core/nested-option.d.ts +6 -3
- package/cjs/core/nested-option.js +31 -10
- package/cjs/core/options-manager.d.ts +2 -2
- package/cjs/core/options-manager.js +2 -2
- package/cjs/core/template-manager.d.ts +2 -2
- package/cjs/core/template-manager.js +5 -4
- package/cjs/core/template-wrapper.d.ts +2 -2
- package/cjs/core/template-wrapper.js +4 -4
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +2 -2
- package/cjs/core/types.d.ts +6 -6
- package/cjs/core/types.js +2 -2
- package/cjs/core/use-option-scanning.d.ts +21 -0
- package/cjs/core/use-option-scanning.js +65 -0
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +3 -2
- package/cjs/data-grid.d.ts +2231 -465
- package/cjs/data-grid.js +1096 -653
- package/cjs/date-box.d.ts +455 -102
- package/cjs/date-box.js +214 -129
- package/cjs/date-range-box.d.ts +455 -102
- package/cjs/date-range-box.js +214 -129
- package/cjs/defer-rendering.d.ts +130 -41
- package/cjs/defer-rendering.js +97 -52
- package/cjs/diagram.d.ts +439 -131
- package/cjs/diagram.js +302 -172
- package/cjs/draggable.d.ts +11 -5
- package/cjs/draggable.js +11 -6
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +2 -2
- package/cjs/drop-down-box.d.ts +368 -80
- package/cjs/drop-down-box.js +187 -112
- package/cjs/drop-down-button.d.ts +329 -68
- package/cjs/drop-down-button.js +175 -105
- package/cjs/file-manager.d.ts +195 -65
- package/cjs/file-manager.js +130 -70
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +2 -2
- package/cjs/filter-builder.d.ts +132 -34
- package/cjs/filter-builder.js +72 -42
- package/cjs/form.d.ts +650 -172
- package/cjs/form.js +362 -252
- package/cjs/funnel.d.ts +577 -146
- package/cjs/funnel.js +317 -182
- package/cjs/gallery.d.ts +18 -6
- package/cjs/gallery.js +17 -12
- package/cjs/gantt.d.ts +486 -125
- package/cjs/gantt.js +298 -173
- package/cjs/html-editor.d.ts +286 -63
- package/cjs/html-editor.js +175 -102
- package/cjs/index.d.ts +3 -2
- package/cjs/index.js +6 -4
- package/cjs/linear-gauge.d.ts +461 -114
- package/cjs/linear-gauge.js +278 -153
- package/cjs/list.d.ts +227 -52
- package/cjs/list.js +95 -60
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +2 -2
- package/cjs/load-panel.d.ts +159 -50
- package/cjs/load-panel.js +112 -57
- package/cjs/lookup.d.ts +302 -83
- package/cjs/lookup.js +196 -116
- package/cjs/map.d.ts +83 -18
- package/cjs/map.js +78 -35
- package/cjs/menu.d.ts +210 -59
- package/cjs/menu.js +167 -92
- package/cjs/multi-view.d.ts +17 -6
- package/cjs/multi-view.js +17 -12
- package/cjs/number-box.d.ts +72 -20
- package/cjs/number-box.js +38 -23
- package/cjs/pagination.d.ts +33 -0
- package/cjs/{core/__tests__/integration/integration.test.js → pagination.js} +30 -28
- package/cjs/pie-chart.d.ts +966 -262
- package/cjs/pie-chart.js +423 -248
- package/cjs/pivot-grid-field-chooser.d.ts +67 -14
- package/cjs/pivot-grid-field-chooser.js +52 -27
- package/cjs/pivot-grid.d.ts +196 -36
- package/cjs/pivot-grid.js +132 -67
- package/cjs/polar-chart.d.ts +2072 -507
- package/cjs/polar-chart.js +823 -473
- package/cjs/popover.d.ts +210 -66
- package/cjs/popover.js +149 -79
- package/cjs/popup.d.ts +190 -58
- package/cjs/popup.js +131 -71
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +2 -2
- package/cjs/radio-group.d.ts +16 -5
- package/cjs/radio-group.js +17 -12
- package/cjs/range-selector.d.ts +1628 -423
- package/cjs/range-selector.js +666 -366
- package/cjs/range-slider.d.ts +42 -16
- package/cjs/range-slider.js +35 -20
- package/cjs/recurrence-editor.d.ts +2 -2
- package/cjs/recurrence-editor.js +2 -2
- package/cjs/resizable.d.ts +2 -2
- package/cjs/resizable.js +2 -2
- package/cjs/responsive-box.d.ts +63 -20
- package/cjs/responsive-box.js +50 -30
- package/cjs/sankey.d.ts +396 -109
- package/cjs/sankey.js +219 -124
- package/cjs/scheduler.d.ts +166 -26
- package/cjs/scheduler.js +85 -60
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +2 -2
- package/cjs/select-box.d.ts +382 -84
- package/cjs/select-box.js +203 -123
- package/cjs/slider.d.ts +42 -16
- package/cjs/slider.js +35 -20
- package/cjs/sortable.d.ts +11 -5
- package/cjs/sortable.js +11 -6
- package/cjs/sparkline.d.ts +118 -32
- package/cjs/sparkline.js +76 -41
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +2 -2
- package/cjs/splitter.d.ts +28 -11
- package/cjs/splitter.js +17 -12
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +2 -2
- package/cjs/tab-panel.d.ts +23 -6
- package/cjs/tab-panel.js +21 -16
- package/cjs/tabs.d.ts +19 -6
- package/cjs/tabs.js +17 -12
- package/cjs/tag-box.d.ts +382 -84
- package/cjs/tag-box.js +203 -123
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +2 -2
- package/cjs/text-box.d.ts +59 -17
- package/cjs/text-box.js +29 -19
- package/cjs/tile-view.d.ts +19 -6
- package/cjs/tile-view.js +17 -12
- package/cjs/toast.d.ts +157 -48
- package/cjs/toast.js +112 -57
- package/cjs/toolbar.d.ts +33 -12
- package/cjs/toolbar.js +21 -16
- package/cjs/tooltip.d.ts +179 -58
- package/cjs/tooltip.js +130 -65
- package/cjs/tree-list.d.ts +1970 -427
- package/cjs/tree-list.js +953 -570
- package/cjs/tree-map.d.ts +388 -114
- package/cjs/tree-map.js +239 -134
- package/cjs/tree-view.d.ts +160 -39
- package/cjs/tree-view.js +59 -39
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +2 -2
- package/cjs/validation-summary.d.ts +17 -6
- package/cjs/validation-summary.js +17 -12
- package/cjs/validator.d.ts +162 -42
- package/cjs/validator.js +142 -87
- package/cjs/vector-map.d.ts +628 -154
- package/cjs/vector-map.js +319 -189
- package/esm/accordion.js +21 -16
- package/esm/action-sheet.js +17 -12
- package/esm/autocomplete.js +203 -123
- package/esm/bar-gauge.js +254 -144
- package/esm/box.js +17 -12
- package/esm/bullet.js +76 -41
- package/esm/button-group.js +17 -12
- package/esm/button.js +2 -2
- package/esm/calendar.js +2 -2
- package/esm/chart.js +1082 -622
- package/esm/chat.js +90 -17
- package/esm/check-box.js +2 -2
- package/esm/circular-gauge.js +268 -148
- package/esm/color-box.js +187 -112
- package/esm/common/charts.js +2 -2
- package/esm/common/data/custom-store.js +2 -2
- package/esm/common/grids.js +2 -2
- package/esm/common/index.js +2 -2
- package/esm/context-menu.js +157 -82
- package/esm/core/component-base.js +45 -29
- package/esm/core/component.js +4 -6
- package/esm/core/config.js +2 -2
- package/esm/core/configuration/comparer.js +16 -14
- package/esm/core/configuration/config-node.js +77 -3
- package/esm/core/configuration/react/element.js +33 -37
- package/esm/core/configuration/react/templates.js +2 -2
- package/esm/core/configuration/tree.js +5 -3
- package/esm/core/configuration/utils.js +2 -2
- package/esm/core/contexts.js +27 -0
- package/esm/core/extension-component.js +4 -3
- package/esm/core/helpers.js +2 -7
- package/esm/core/nested-option.js +32 -11
- package/esm/core/options-manager.js +2 -2
- package/esm/core/template-manager.js +5 -4
- package/esm/core/template-wrapper.js +3 -3
- package/esm/core/template.js +2 -2
- package/esm/core/types.js +2 -2
- package/esm/core/use-option-scanning.js +61 -0
- package/esm/core/widget-config.js +3 -2
- package/esm/data-grid.js +1095 -653
- package/esm/date-box.js +214 -129
- package/esm/date-range-box.js +214 -129
- package/esm/defer-rendering.js +97 -52
- package/esm/diagram.js +302 -172
- package/esm/draggable.js +11 -6
- package/esm/drawer.js +2 -2
- package/esm/drop-down-box.js +187 -112
- package/esm/drop-down-button.js +175 -105
- package/esm/file-manager.js +130 -70
- package/esm/file-uploader.js +2 -2
- package/esm/filter-builder.js +72 -42
- package/esm/form.js +362 -252
- package/esm/funnel.js +317 -182
- package/esm/gallery.js +17 -12
- package/esm/gantt.js +298 -173
- package/esm/html-editor.js +175 -103
- package/esm/index.js +3 -2
- package/esm/linear-gauge.js +278 -153
- package/esm/list.js +95 -60
- package/esm/load-indicator.js +2 -2
- package/esm/load-panel.js +112 -57
- package/esm/lookup.js +196 -116
- package/esm/map.js +77 -35
- package/esm/menu.js +167 -92
- package/esm/multi-view.js +17 -12
- package/esm/number-box.js +38 -23
- package/esm/pagination.js +42 -0
- package/esm/pie-chart.js +423 -248
- package/esm/pivot-grid-field-chooser.js +52 -27
- package/esm/pivot-grid.js +132 -67
- package/esm/polar-chart.js +823 -473
- package/esm/popover.js +149 -79
- package/esm/popup.js +131 -71
- package/esm/progress-bar.js +2 -2
- package/esm/radio-group.js +17 -12
- package/esm/range-selector.js +666 -366
- package/esm/range-slider.js +35 -20
- package/esm/recurrence-editor.js +2 -2
- package/esm/resizable.js +2 -2
- package/esm/responsive-box.js +50 -30
- package/esm/sankey.js +219 -124
- package/esm/scheduler.js +85 -60
- package/esm/scroll-view.js +2 -2
- package/esm/select-box.js +203 -123
- package/esm/slider.js +35 -20
- package/esm/sortable.js +11 -6
- package/esm/sparkline.js +76 -41
- package/esm/speed-dial-action.js +2 -2
- package/esm/splitter.js +17 -12
- package/esm/switch.js +2 -2
- package/esm/tab-panel.js +21 -16
- package/esm/tabs.js +17 -12
- package/esm/tag-box.js +203 -123
- package/esm/text-area.js +2 -2
- package/esm/text-box.js +29 -19
- package/esm/tile-view.js +17 -12
- package/esm/toast.js +112 -57
- package/esm/toolbar.js +21 -16
- package/esm/tooltip.js +130 -65
- package/esm/tree-list.js +952 -570
- package/esm/tree-map.js +239 -134
- package/esm/tree-view.js +59 -39
- package/esm/validation-group.js +2 -2
- package/esm/validation-summary.js +17 -12
- package/esm/validator.js +142 -87
- package/esm/vector-map.js +319 -189
- package/package.json +2 -2
- package/pagination/package.json +6 -0
- package/cjs/core/__tests__/integration/integration.test.d.ts +0 -14
- package/cjs/core/configuration/react/tree.d.ts +0 -30
- package/cjs/core/configuration/react/tree.js +0 -121
- package/esm/core/__tests__/integration/integration.test.js +0 -41
- package/esm/core/configuration/react/tree.js +0 -94
package/cjs/accordion.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.2.2-beta
|
|
4
|
+
* Build date: Mon Nov 18 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -15,7 +15,7 @@ export { ExplicitTypes } from "devextreme/ui/accordion";
|
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Ref, ReactElement } from "react";
|
|
17
17
|
import dxAccordion, { Properties } from "devextreme/ui/accordion";
|
|
18
|
-
import { IHtmlOptions,
|
|
18
|
+
import { IHtmlOptions, NestedComponentMeta } from "./core/component";
|
|
19
19
|
import type { dxAccordionItem, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent, ItemTitleClickEvent } from "devextreme/ui/accordion";
|
|
20
20
|
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
21
21
|
import type { template } from "devextreme/core/templates/template";
|
|
@@ -53,7 +53,7 @@ interface AccordionRef<TItem = any, TKey = any> {
|
|
|
53
53
|
instance: () => dxAccordion<TItem, TKey>;
|
|
54
54
|
}
|
|
55
55
|
declare const Accordion: <TItem = any, TKey = any>(props: ReplaceFieldTypes<Properties<TItem, TKey>, IAccordionOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
|
|
56
|
-
dataSource?: import("
|
|
56
|
+
dataSource?: import("devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
|
|
57
57
|
itemRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
58
58
|
itemComponent?: React.ComponentType<any> | undefined;
|
|
59
59
|
itemTitleRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
@@ -87,8 +87,24 @@ type IItemProps = React.PropsWithChildren<{
|
|
|
87
87
|
titleRender?: (...params: any) => React.ReactNode;
|
|
88
88
|
titleComponent?: React.ComponentType<any>;
|
|
89
89
|
}>;
|
|
90
|
-
declare const
|
|
91
|
-
|
|
90
|
+
declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
91
|
+
disabled?: boolean | undefined;
|
|
92
|
+
html?: string | undefined;
|
|
93
|
+
icon?: string | undefined;
|
|
94
|
+
template?: template | ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | undefined;
|
|
95
|
+
text?: string | undefined;
|
|
96
|
+
title?: string | undefined;
|
|
97
|
+
titleTemplate?: template | (() => string | any) | undefined;
|
|
98
|
+
visible?: boolean | undefined;
|
|
99
|
+
render?: ((...params: any) => React.ReactNode) | undefined;
|
|
100
|
+
component?: React.ComponentType<any> | undefined;
|
|
101
|
+
titleRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
102
|
+
titleComponent?: React.ComponentType<any> | undefined;
|
|
103
|
+
} & {
|
|
104
|
+
children?: React.ReactNode;
|
|
105
|
+
} & {
|
|
106
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
107
|
+
}>>) & NestedComponentMeta;
|
|
92
108
|
export default Accordion;
|
|
93
109
|
export { Accordion, IAccordionOptions, AccordionRef, Item, IItemProps };
|
|
94
110
|
import type * as AccordionTypes from 'devextreme/ui/accordion_types';
|
package/cjs/accordion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.2.2-beta
|
|
4
|
+
* Build date: Mon Nov 18 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -89,21 +89,26 @@ const Accordion = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
|
89
89
|
}));
|
|
90
90
|
}));
|
|
91
91
|
exports.Accordion = Accordion;
|
|
92
|
-
const _componentItem = (
|
|
93
|
-
return React.createElement((nested_option_1.default), {
|
|
94
|
-
|
|
92
|
+
const _componentItem = (props) => {
|
|
93
|
+
return React.createElement((nested_option_1.default), {
|
|
94
|
+
...props,
|
|
95
|
+
elementDescriptor: {
|
|
96
|
+
OptionName: "items",
|
|
97
|
+
IsCollectionItem: true,
|
|
98
|
+
TemplateProps: [{
|
|
99
|
+
tmplOption: "template",
|
|
100
|
+
render: "render",
|
|
101
|
+
component: "component"
|
|
102
|
+
}, {
|
|
103
|
+
tmplOption: "titleTemplate",
|
|
104
|
+
render: "titleRender",
|
|
105
|
+
component: "titleComponent"
|
|
106
|
+
}],
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
};
|
|
95
110
|
const Item = Object.assign(_componentItem, {
|
|
96
|
-
|
|
97
|
-
IsCollectionItem: true,
|
|
98
|
-
TemplateProps: [{
|
|
99
|
-
tmplOption: "template",
|
|
100
|
-
render: "render",
|
|
101
|
-
component: "component"
|
|
102
|
-
}, {
|
|
103
|
-
tmplOption: "titleTemplate",
|
|
104
|
-
render: "titleRender",
|
|
105
|
-
component: "titleComponent"
|
|
106
|
-
}],
|
|
111
|
+
componentType: "option",
|
|
107
112
|
});
|
|
108
113
|
exports.Item = Item;
|
|
109
114
|
exports.default = Accordion;
|
package/cjs/action-sheet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.2.2-beta
|
|
4
|
+
* Build date: Mon Nov 18 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -15,9 +15,10 @@ export { ExplicitTypes } from "devextreme/ui/action_sheet";
|
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Ref, ReactElement } from "react";
|
|
17
17
|
import dxActionSheet, { Properties } from "devextreme/ui/action_sheet";
|
|
18
|
-
import { IHtmlOptions,
|
|
18
|
+
import { IHtmlOptions, NestedComponentMeta } from "./core/component";
|
|
19
19
|
import type { dxActionSheetItem, CancelClickEvent, ContentReadyEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemHoldEvent, ItemRenderedEvent } from "devextreme/ui/action_sheet";
|
|
20
20
|
import type { NativeEventInfo } from "devextreme/events/index";
|
|
21
|
+
import type { ButtonStyle, ButtonType } from "devextreme/common";
|
|
21
22
|
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
22
23
|
import type { template } from "devextreme/core/templates/template";
|
|
23
24
|
type ReplaceFieldTypes<TSource, TReplacement> = {
|
|
@@ -46,7 +47,7 @@ interface ActionSheetRef<TItem = any, TKey = any> {
|
|
|
46
47
|
instance: () => dxActionSheet<TItem, TKey>;
|
|
47
48
|
}
|
|
48
49
|
declare const ActionSheet: <TItem = any, TKey = any>(props: ReplaceFieldTypes<Properties<TItem, TKey>, IActionSheetOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
|
|
49
|
-
dataSource?: import("
|
|
50
|
+
dataSource?: import("devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
|
|
50
51
|
itemRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
51
52
|
itemComponent?: React.ComponentType<any> | undefined;
|
|
52
53
|
defaultItems?: any[] | undefined;
|
|
@@ -62,15 +63,28 @@ type IItemProps = React.PropsWithChildren<{
|
|
|
62
63
|
disabled?: boolean;
|
|
63
64
|
icon?: string;
|
|
64
65
|
onClick?: ((e: NativeEventInfo<any>) => void);
|
|
65
|
-
stylingMode?:
|
|
66
|
+
stylingMode?: ButtonStyle;
|
|
66
67
|
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | template;
|
|
67
68
|
text?: string;
|
|
68
|
-
type?:
|
|
69
|
+
type?: ButtonType;
|
|
69
70
|
render?: (...params: any) => React.ReactNode;
|
|
70
71
|
component?: React.ComponentType<any>;
|
|
71
72
|
}>;
|
|
72
|
-
declare const
|
|
73
|
-
|
|
73
|
+
declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
74
|
+
disabled?: boolean | undefined;
|
|
75
|
+
icon?: string | undefined;
|
|
76
|
+
onClick?: ((e: NativeEventInfo<any>) => void) | undefined;
|
|
77
|
+
stylingMode?: ButtonStyle | undefined;
|
|
78
|
+
template?: template | ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | undefined;
|
|
79
|
+
text?: string | undefined;
|
|
80
|
+
type?: ButtonType | undefined;
|
|
81
|
+
render?: ((...params: any) => React.ReactNode) | undefined;
|
|
82
|
+
component?: React.ComponentType<any> | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
children?: React.ReactNode;
|
|
85
|
+
} & {
|
|
86
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
87
|
+
}>>) & NestedComponentMeta;
|
|
74
88
|
export default ActionSheet;
|
|
75
89
|
export { ActionSheet, IActionSheetOptions, ActionSheetRef, Item, IItemProps };
|
|
76
90
|
import type * as ActionSheetTypes from 'devextreme/ui/action_sheet_types';
|
package/cjs/action-sheet.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.2.2-beta
|
|
4
|
+
* Build date: Mon Nov 18 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -81,17 +81,22 @@ const ActionSheet = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
|
81
81
|
}));
|
|
82
82
|
}));
|
|
83
83
|
exports.ActionSheet = ActionSheet;
|
|
84
|
-
const _componentItem = (
|
|
85
|
-
return React.createElement((nested_option_1.default), {
|
|
86
|
-
|
|
84
|
+
const _componentItem = (props) => {
|
|
85
|
+
return React.createElement((nested_option_1.default), {
|
|
86
|
+
...props,
|
|
87
|
+
elementDescriptor: {
|
|
88
|
+
OptionName: "items",
|
|
89
|
+
IsCollectionItem: true,
|
|
90
|
+
TemplateProps: [{
|
|
91
|
+
tmplOption: "template",
|
|
92
|
+
render: "render",
|
|
93
|
+
component: "component"
|
|
94
|
+
}],
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
};
|
|
87
98
|
const Item = Object.assign(_componentItem, {
|
|
88
|
-
|
|
89
|
-
IsCollectionItem: true,
|
|
90
|
-
TemplateProps: [{
|
|
91
|
-
tmplOption: "template",
|
|
92
|
-
render: "render",
|
|
93
|
-
component: "component"
|
|
94
|
-
}],
|
|
99
|
+
componentType: "option",
|
|
95
100
|
});
|
|
96
101
|
exports.Item = Item;
|
|
97
102
|
exports.default = ActionSheet;
|