devextreme-react 24.2.6 → 25.1.1-alpha
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 +2 -2
- package/cjs/accordion.js +2 -2
- package/cjs/action-sheet.d.ts +2 -2
- package/cjs/action-sheet.js +2 -2
- package/cjs/autocomplete.d.ts +2 -2
- package/cjs/autocomplete.js +2 -2
- package/cjs/bar-gauge.d.ts +2 -2
- package/cjs/bar-gauge.js +2 -2
- package/cjs/box.d.ts +2 -2
- package/cjs/box.js +2 -2
- package/cjs/bullet.d.ts +2 -2
- package/cjs/bullet.js +2 -2
- package/cjs/button-group.d.ts +2 -2
- package/cjs/button-group.js +2 -2
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +2 -2
- package/cjs/calendar.d.ts +2 -2
- package/cjs/calendar.js +2 -2
- package/cjs/chart.d.ts +2 -2
- package/cjs/chart.js +2 -2
- package/cjs/chat.d.ts +2 -2
- package/cjs/chat.js +2 -2
- package/cjs/check-box.d.ts +2 -2
- package/cjs/check-box.js +2 -2
- package/cjs/circular-gauge.d.ts +2 -2
- package/cjs/circular-gauge.js +2 -2
- package/cjs/color-box.d.ts +2 -2
- package/cjs/color-box.js +2 -2
- package/cjs/common/charts.d.ts +2 -2
- package/cjs/common/charts.js +2 -2
- package/cjs/common/core/animation.d.ts +2 -2
- package/cjs/common/core/animation.js +2 -2
- package/cjs/common/core/environment.d.ts +2 -2
- package/cjs/common/core/environment.js +2 -2
- package/cjs/common/core/events.d.ts +2 -2
- package/cjs/common/core/events.js +2 -2
- package/cjs/common/core/index.d.ts +2 -2
- package/cjs/common/core/index.js +2 -2
- package/cjs/common/core/localization.d.ts +2 -2
- package/cjs/common/core/localization.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/data.d.ts +2 -2
- package/cjs/common/data.js +2 -2
- package/cjs/common/export/excel.d.ts +2 -2
- package/cjs/common/export/excel.js +2 -2
- package/cjs/common/export/index.d.ts +2 -2
- package/cjs/common/export/index.js +2 -2
- package/cjs/common/export/pdf.d.ts +2 -2
- package/cjs/common/export/pdf.js +2 -2
- package/cjs/common/grids.d.ts +2 -2
- package/cjs/common/grids.js +2 -2
- package/cjs/common/index.d.ts +2 -2
- package/cjs/common/index.js +2 -2
- package/cjs/context-menu.d.ts +2 -2
- package/cjs/context-menu.js +2 -2
- package/cjs/core/component-base.d.ts +2 -2
- package/cjs/core/component-base.js +2 -2
- package/cjs/core/component.d.ts +2 -2
- package/cjs/core/component.js +2 -2
- 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 +2 -2
- package/cjs/core/configuration/config-node.d.ts +2 -2
- package/cjs/core/configuration/config-node.js +2 -2
- package/cjs/core/configuration/react/element.d.ts +2 -2
- package/cjs/core/configuration/react/element.js +2 -2
- 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 +2 -2
- package/cjs/core/configuration/utils.d.ts +2 -2
- package/cjs/core/configuration/utils.js +2 -2
- package/cjs/core/contexts.d.ts +2 -2
- package/cjs/core/contexts.js +2 -2
- package/cjs/core/extension-component.d.ts +2 -2
- package/cjs/core/extension-component.js +2 -2
- package/cjs/core/helpers.d.ts +2 -2
- package/cjs/core/helpers.js +2 -2
- package/cjs/core/nested-option.d.ts +2 -2
- package/cjs/core/nested-option.js +2 -2
- 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 +16 -16
- package/cjs/core/template-wrapper.d.ts +2 -2
- package/cjs/core/template-wrapper.js +10 -11
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +2 -2
- package/cjs/core/types.d.ts +2 -2
- package/cjs/core/types.js +2 -2
- package/cjs/core/use-option-scanning.d.ts +2 -2
- package/cjs/core/use-option-scanning.js +2 -2
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +2 -2
- package/cjs/data-grid.d.ts +2 -2
- package/cjs/data-grid.js +2 -2
- package/cjs/date-box.d.ts +2 -2
- package/cjs/date-box.js +2 -2
- package/cjs/date-range-box.d.ts +2 -2
- package/cjs/date-range-box.js +2 -2
- package/cjs/defer-rendering.d.ts +2 -2
- package/cjs/defer-rendering.js +2 -2
- package/cjs/diagram.d.ts +2 -2
- package/cjs/diagram.js +2 -2
- package/cjs/draggable.d.ts +2 -2
- package/cjs/draggable.js +2 -2
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +2 -2
- package/cjs/drop-down-box.d.ts +2 -2
- package/cjs/drop-down-box.js +2 -2
- package/cjs/drop-down-button.d.ts +2 -2
- package/cjs/drop-down-button.js +2 -2
- package/cjs/file-manager.d.ts +2 -2
- package/cjs/file-manager.js +2 -2
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +2 -2
- package/cjs/filter-builder.d.ts +2 -2
- package/cjs/filter-builder.js +2 -2
- package/cjs/form.d.ts +2 -2
- package/cjs/form.js +2 -2
- package/cjs/funnel.d.ts +2 -2
- package/cjs/funnel.js +2 -2
- package/cjs/gallery.d.ts +2 -2
- package/cjs/gallery.js +2 -2
- package/cjs/gantt.d.ts +2 -2
- package/cjs/gantt.js +2 -2
- package/cjs/html-editor.d.ts +2 -2
- package/cjs/html-editor.js +2 -2
- package/cjs/index.d.ts +3 -2
- package/cjs/index.js +5 -3
- package/cjs/linear-gauge.d.ts +2 -2
- package/cjs/linear-gauge.js +2 -2
- package/cjs/list.d.ts +2 -2
- package/cjs/list.js +2 -2
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +2 -2
- package/cjs/load-panel.d.ts +2 -2
- package/cjs/load-panel.js +2 -2
- package/cjs/lookup.d.ts +2 -2
- package/cjs/lookup.js +2 -2
- package/cjs/map.d.ts +4 -4
- package/cjs/map.js +2 -2
- package/cjs/menu.d.ts +2 -2
- package/cjs/menu.js +2 -2
- package/cjs/multi-view.d.ts +2 -2
- package/cjs/multi-view.js +2 -2
- package/cjs/number-box.d.ts +2 -2
- package/cjs/number-box.js +2 -2
- package/cjs/pagination.d.ts +2 -2
- package/cjs/pagination.js +2 -2
- package/cjs/pie-chart.d.ts +2 -2
- package/cjs/pie-chart.js +2 -2
- package/cjs/pivot-grid-field-chooser.d.ts +2 -2
- package/cjs/pivot-grid-field-chooser.js +2 -2
- package/cjs/pivot-grid.d.ts +2 -2
- package/cjs/pivot-grid.js +2 -2
- package/cjs/polar-chart.d.ts +2 -2
- package/cjs/polar-chart.js +2 -2
- package/cjs/popover.d.ts +2 -2
- package/cjs/popover.js +2 -2
- package/cjs/popup.d.ts +2 -2
- package/cjs/popup.js +2 -2
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +2 -2
- package/cjs/radio-group.d.ts +2 -2
- package/cjs/radio-group.js +2 -2
- package/cjs/range-selector.d.ts +2 -2
- package/cjs/range-selector.js +2 -2
- package/cjs/range-slider.d.ts +2 -2
- package/cjs/range-slider.js +2 -2
- 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 +2 -2
- package/cjs/responsive-box.js +2 -2
- package/cjs/sankey.d.ts +2 -2
- package/cjs/sankey.js +2 -2
- package/cjs/scheduler.d.ts +216 -5
- package/cjs/scheduler.js +113 -3
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +2 -2
- package/cjs/select-box.d.ts +2 -2
- package/cjs/select-box.js +2 -2
- package/cjs/slider.d.ts +2 -2
- package/cjs/slider.js +2 -2
- package/cjs/sortable.d.ts +2 -2
- package/cjs/sortable.js +2 -2
- package/cjs/sparkline.d.ts +2 -2
- package/cjs/sparkline.js +2 -2
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +2 -2
- package/cjs/splitter.d.ts +2 -2
- package/cjs/splitter.js +2 -2
- package/cjs/stepper.d.ts +93 -0
- package/cjs/stepper.js +103 -0
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +2 -2
- package/cjs/tab-panel.d.ts +2 -2
- package/cjs/tab-panel.js +2 -2
- package/cjs/tabs.d.ts +2 -2
- package/cjs/tabs.js +2 -2
- package/cjs/tag-box.d.ts +2 -2
- package/cjs/tag-box.js +2 -2
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +2 -2
- package/cjs/text-box.d.ts +2 -2
- package/cjs/text-box.js +2 -2
- package/cjs/tile-view.d.ts +2 -2
- package/cjs/tile-view.js +2 -2
- package/cjs/toast.d.ts +2 -2
- package/cjs/toast.js +2 -2
- package/cjs/toolbar.d.ts +2 -2
- package/cjs/toolbar.js +2 -2
- package/cjs/tooltip.d.ts +2 -2
- package/cjs/tooltip.js +2 -2
- package/cjs/tree-list.d.ts +2 -2
- package/cjs/tree-list.js +2 -2
- package/cjs/tree-map.d.ts +2 -2
- package/cjs/tree-map.js +2 -2
- package/cjs/tree-view.d.ts +2 -2
- package/cjs/tree-view.js +2 -2
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +2 -2
- package/cjs/validation-summary.d.ts +2 -2
- package/cjs/validation-summary.js +2 -2
- package/cjs/validator.d.ts +2 -2
- package/cjs/validator.js +2 -2
- package/cjs/vector-map.d.ts +2 -2
- package/cjs/vector-map.js +2 -2
- package/esm/accordion.js +2 -2
- package/esm/action-sheet.js +2 -2
- package/esm/autocomplete.js +2 -2
- package/esm/bar-gauge.js +2 -2
- package/esm/box.js +2 -2
- package/esm/bullet.js +2 -2
- package/esm/button-group.js +2 -2
- package/esm/button.js +2 -2
- package/esm/calendar.js +2 -2
- package/esm/chart.js +2 -2
- package/esm/chat.js +2 -2
- package/esm/check-box.js +2 -2
- package/esm/circular-gauge.js +2 -2
- package/esm/color-box.js +2 -2
- package/esm/common/charts.js +2 -2
- package/esm/common/core/animation.js +2 -2
- package/esm/common/core/environment.js +2 -2
- package/esm/common/core/events.js +2 -2
- package/esm/common/core/index.js +2 -2
- package/esm/common/core/localization.js +2 -2
- package/esm/common/data/custom-store.js +2 -2
- package/esm/common/data.js +2 -2
- package/esm/common/export/excel.js +2 -2
- package/esm/common/export/index.js +2 -2
- package/esm/common/export/pdf.js +2 -2
- package/esm/common/grids.js +2 -2
- package/esm/common/index.js +2 -2
- package/esm/context-menu.js +2 -2
- package/esm/core/component-base.js +2 -2
- package/esm/core/component.js +2 -2
- package/esm/core/config.js +2 -2
- package/esm/core/configuration/comparer.js +2 -2
- package/esm/core/configuration/config-node.js +2 -2
- package/esm/core/configuration/react/element.js +2 -2
- package/esm/core/configuration/react/templates.js +2 -2
- package/esm/core/configuration/tree.js +2 -2
- package/esm/core/configuration/utils.js +2 -2
- package/esm/core/contexts.js +2 -2
- package/esm/core/extension-component.js +2 -2
- package/esm/core/helpers.js +2 -2
- package/esm/core/nested-option.js +2 -2
- package/esm/core/options-manager.js +2 -2
- package/esm/core/template-manager.js +16 -16
- package/esm/core/template-wrapper.js +10 -11
- package/esm/core/template.js +2 -2
- package/esm/core/types.js +2 -2
- package/esm/core/use-option-scanning.js +2 -2
- package/esm/core/widget-config.js +2 -2
- package/esm/data-grid.js +2 -2
- package/esm/date-box.js +2 -2
- package/esm/date-range-box.js +2 -2
- package/esm/defer-rendering.js +2 -2
- package/esm/diagram.js +2 -2
- package/esm/draggable.js +2 -2
- package/esm/drawer.js +2 -2
- package/esm/drop-down-box.js +2 -2
- package/esm/drop-down-button.js +2 -2
- package/esm/file-manager.js +2 -2
- package/esm/file-uploader.js +2 -2
- package/esm/filter-builder.js +2 -2
- package/esm/form.js +2 -2
- package/esm/funnel.js +2 -2
- package/esm/gallery.js +2 -2
- package/esm/gantt.js +2 -2
- package/esm/html-editor.js +2 -2
- package/esm/index.js +3 -2
- package/esm/linear-gauge.js +2 -2
- package/esm/list.js +2 -2
- package/esm/load-indicator.js +2 -2
- package/esm/load-panel.js +2 -2
- package/esm/lookup.js +2 -2
- package/esm/map.js +2 -2
- package/esm/menu.js +2 -2
- package/esm/multi-view.js +2 -2
- package/esm/number-box.js +2 -2
- package/esm/pagination.js +2 -2
- package/esm/pie-chart.js +2 -2
- package/esm/pivot-grid-field-chooser.js +2 -2
- package/esm/pivot-grid.js +2 -2
- package/esm/polar-chart.js +2 -2
- package/esm/popover.js +2 -2
- package/esm/popup.js +2 -2
- package/esm/progress-bar.js +2 -2
- package/esm/radio-group.js +2 -2
- package/esm/range-selector.js +2 -2
- package/esm/range-slider.js +2 -2
- package/esm/recurrence-editor.js +2 -2
- package/esm/resizable.js +2 -2
- package/esm/responsive-box.js +2 -2
- package/esm/sankey.js +2 -2
- package/esm/scheduler.js +108 -3
- package/esm/scroll-view.js +2 -2
- package/esm/select-box.js +2 -2
- package/esm/slider.js +2 -2
- package/esm/sortable.js +2 -2
- package/esm/sparkline.js +2 -2
- package/esm/speed-dial-action.js +2 -2
- package/esm/splitter.js +2 -2
- package/esm/stepper.js +73 -0
- package/esm/switch.js +2 -2
- package/esm/tab-panel.js +2 -2
- package/esm/tabs.js +2 -2
- package/esm/tag-box.js +2 -2
- package/esm/text-area.js +2 -2
- package/esm/text-box.js +2 -2
- package/esm/tile-view.js +2 -2
- package/esm/toast.js +2 -2
- package/esm/toolbar.js +2 -2
- package/esm/tooltip.js +2 -2
- package/esm/tree-list.js +2 -2
- package/esm/tree-map.js +2 -2
- package/esm/tree-view.js +2 -2
- package/esm/validation-group.js +2 -2
- package/esm/validation-summary.js +2 -2
- package/esm/validator.js +2 -2
- package/esm/vector-map.js +2 -2
- package/package.json +5 -2
- package/stepper/package.json +6 -0
package/cjs/slider.d.ts
CHANGED
package/cjs/slider.js
CHANGED
package/cjs/sortable.d.ts
CHANGED
package/cjs/sortable.js
CHANGED
package/cjs/sparkline.d.ts
CHANGED
package/cjs/sparkline.js
CHANGED
package/cjs/speed-dial-action.js
CHANGED
package/cjs/splitter.d.ts
CHANGED
package/cjs/splitter.js
CHANGED
package/cjs/stepper.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-react
|
|
3
|
+
* Version: 25.1.1-alpha
|
|
4
|
+
* Build date: Wed Apr 02 2025
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
|
+
*
|
|
8
|
+
* This software may be modified and distributed under the terms
|
|
9
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
+
*
|
|
11
|
+
* https://github.com/DevExpress/devextreme-react
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export { ExplicitTypes } from "devextreme/ui/stepper";
|
|
15
|
+
import * as React from "react";
|
|
16
|
+
import { Ref, ReactElement } from "react";
|
|
17
|
+
import dxStepper, { Properties } from "devextreme/ui/stepper";
|
|
18
|
+
import { IHtmlOptions, NestedComponentMeta } from "./core/component";
|
|
19
|
+
import type { dxStepperItem, DisposingEvent, InitializedEvent, ItemClickEvent, ItemContextMenuEvent, ItemRenderedEvent, SelectionChangingEvent } from "devextreme/ui/stepper";
|
|
20
|
+
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
21
|
+
import type { template } from "devextreme/common";
|
|
22
|
+
type ReplaceFieldTypes<TSource, TReplacement> = {
|
|
23
|
+
[P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
|
|
24
|
+
};
|
|
25
|
+
type IStepperOptionsNarrowedEvents<TItem = any, TKey = any> = {
|
|
26
|
+
onDisposing?: ((e: DisposingEvent<TItem, TKey>) => void);
|
|
27
|
+
onInitialized?: ((e: InitializedEvent<TItem, TKey>) => void);
|
|
28
|
+
onItemClick?: ((e: ItemClickEvent<TItem, TKey>) => void);
|
|
29
|
+
onItemContextMenu?: ((e: ItemContextMenuEvent<TItem, TKey>) => void);
|
|
30
|
+
onItemRendered?: ((e: ItemRenderedEvent<TItem, TKey>) => void);
|
|
31
|
+
onSelectionChanging?: ((e: SelectionChangingEvent<TItem, TKey>) => void);
|
|
32
|
+
};
|
|
33
|
+
type IStepperOptions<TItem = any, TKey = any> = React.PropsWithChildren<ReplaceFieldTypes<Properties<TItem, TKey>, IStepperOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
|
|
34
|
+
dataSource?: Properties<TItem, TKey>["dataSource"];
|
|
35
|
+
itemRender?: (...params: any) => React.ReactNode;
|
|
36
|
+
itemComponent?: React.ComponentType<any>;
|
|
37
|
+
defaultItems?: Array<dxStepperItem>;
|
|
38
|
+
defaultSelectedIndex?: number;
|
|
39
|
+
defaultSelectedItem?: any;
|
|
40
|
+
onItemsChange?: (value: Array<dxStepperItem>) => void;
|
|
41
|
+
onSelectedIndexChange?: (value: number) => void;
|
|
42
|
+
onSelectedItemChange?: (value: any) => void;
|
|
43
|
+
}>;
|
|
44
|
+
interface StepperRef<TItem = any, TKey = any> {
|
|
45
|
+
instance: () => dxStepper<TItem, TKey>;
|
|
46
|
+
}
|
|
47
|
+
declare const Stepper: <TItem = any, TKey = any>(props: ReplaceFieldTypes<Properties<TItem, TKey>, IStepperOptionsNarrowedEvents<TItem, TKey>> & IHtmlOptions & {
|
|
48
|
+
dataSource?: import("devextreme/data/data_source").DataSourceLike<TItem, TKey> | null | undefined;
|
|
49
|
+
itemRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
50
|
+
itemComponent?: React.ComponentType<any> | undefined;
|
|
51
|
+
defaultItems?: dxStepperItem[] | undefined;
|
|
52
|
+
defaultSelectedIndex?: number | undefined;
|
|
53
|
+
defaultSelectedItem?: any;
|
|
54
|
+
onItemsChange?: ((value: Array<dxStepperItem>) => void) | undefined;
|
|
55
|
+
onSelectedIndexChange?: ((value: number) => void) | undefined;
|
|
56
|
+
onSelectedItemChange?: ((value: any) => void) | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
} & {
|
|
60
|
+
ref?: React.Ref<StepperRef<TItem, TKey>> | undefined;
|
|
61
|
+
}) => ReactElement | null;
|
|
62
|
+
type IItemProps = React.PropsWithChildren<{
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
hint?: string;
|
|
65
|
+
icon?: string;
|
|
66
|
+
isValid?: boolean;
|
|
67
|
+
optional?: boolean;
|
|
68
|
+
template?: ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | template;
|
|
69
|
+
text?: string;
|
|
70
|
+
title?: string;
|
|
71
|
+
render?: (...params: any) => React.ReactNode;
|
|
72
|
+
component?: React.ComponentType<any>;
|
|
73
|
+
}>;
|
|
74
|
+
declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
75
|
+
disabled?: boolean | undefined;
|
|
76
|
+
hint?: string | undefined;
|
|
77
|
+
icon?: string | undefined;
|
|
78
|
+
isValid?: boolean | undefined;
|
|
79
|
+
optional?: boolean | undefined;
|
|
80
|
+
template?: template | ((itemData: CollectionWidgetItem, itemIndex: number, itemElement: any) => string | any) | undefined;
|
|
81
|
+
text?: string | undefined;
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
render?: ((...params: any) => React.ReactNode) | undefined;
|
|
84
|
+
component?: React.ComponentType<any> | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
children?: React.ReactNode;
|
|
87
|
+
} & {
|
|
88
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
89
|
+
}>>) & NestedComponentMeta;
|
|
90
|
+
export default Stepper;
|
|
91
|
+
export { Stepper, IStepperOptions, StepperRef, Item, IItemProps };
|
|
92
|
+
import type * as StepperTypes from 'devextreme/ui/stepper_types';
|
|
93
|
+
export { StepperTypes };
|
package/cjs/stepper.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-react
|
|
3
|
+
* Version: 25.1.1-alpha
|
|
4
|
+
* Build date: Wed Apr 02 2025
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
|
+
*
|
|
8
|
+
* This software may be modified and distributed under the terms
|
|
9
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
+
*
|
|
11
|
+
* https://github.com/DevExpress/devextreme-react
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
"use client";
|
|
15
|
+
"use strict";
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.Item = exports.Stepper = void 0;
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const stepper_1 = __importDefault(require("devextreme/ui/stepper"));
|
|
47
|
+
const component_1 = require("./core/component");
|
|
48
|
+
const nested_option_1 = __importDefault(require("./core/nested-option"));
|
|
49
|
+
const Stepper = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
50
|
+
const baseRef = (0, react_1.useRef)(null);
|
|
51
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
52
|
+
instance() {
|
|
53
|
+
return baseRef.current?.getInstance();
|
|
54
|
+
}
|
|
55
|
+
}), [baseRef.current]);
|
|
56
|
+
const subscribableOptions = (0, react_1.useMemo)(() => (["items", "selectedIndex", "selectedItem"]), []);
|
|
57
|
+
const independentEvents = (0, react_1.useMemo)(() => (["onDisposing", "onInitialized", "onItemClick", "onItemContextMenu", "onItemRendered", "onSelectionChanging"]), []);
|
|
58
|
+
const defaults = (0, react_1.useMemo)(() => ({
|
|
59
|
+
defaultItems: "items",
|
|
60
|
+
defaultSelectedIndex: "selectedIndex",
|
|
61
|
+
defaultSelectedItem: "selectedItem",
|
|
62
|
+
}), []);
|
|
63
|
+
const expectedChildren = (0, react_1.useMemo)(() => ({
|
|
64
|
+
item: { optionName: "items", isCollectionItem: true }
|
|
65
|
+
}), []);
|
|
66
|
+
const templateProps = (0, react_1.useMemo)(() => ([
|
|
67
|
+
{
|
|
68
|
+
tmplOption: "itemTemplate",
|
|
69
|
+
render: "itemRender",
|
|
70
|
+
component: "itemComponent"
|
|
71
|
+
},
|
|
72
|
+
]), []);
|
|
73
|
+
return (React.createElement((component_1.Component), {
|
|
74
|
+
WidgetClass: stepper_1.default,
|
|
75
|
+
ref: baseRef,
|
|
76
|
+
subscribableOptions,
|
|
77
|
+
independentEvents,
|
|
78
|
+
defaults,
|
|
79
|
+
expectedChildren,
|
|
80
|
+
templateProps,
|
|
81
|
+
...props,
|
|
82
|
+
}));
|
|
83
|
+
}));
|
|
84
|
+
exports.Stepper = Stepper;
|
|
85
|
+
const _componentItem = (props) => {
|
|
86
|
+
return React.createElement((nested_option_1.default), {
|
|
87
|
+
...props,
|
|
88
|
+
elementDescriptor: {
|
|
89
|
+
OptionName: "items",
|
|
90
|
+
IsCollectionItem: true,
|
|
91
|
+
TemplateProps: [{
|
|
92
|
+
tmplOption: "template",
|
|
93
|
+
render: "render",
|
|
94
|
+
component: "component"
|
|
95
|
+
}],
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
const Item = Object.assign(_componentItem, {
|
|
100
|
+
componentType: "option",
|
|
101
|
+
});
|
|
102
|
+
exports.Item = Item;
|
|
103
|
+
exports.default = Stepper;
|
package/cjs/switch.d.ts
CHANGED
package/cjs/switch.js
CHANGED
package/cjs/tab-panel.d.ts
CHANGED
package/cjs/tab-panel.js
CHANGED
package/cjs/tabs.d.ts
CHANGED
package/cjs/tabs.js
CHANGED
package/cjs/tag-box.d.ts
CHANGED
package/cjs/tag-box.js
CHANGED
package/cjs/text-area.d.ts
CHANGED
package/cjs/text-area.js
CHANGED
package/cjs/text-box.d.ts
CHANGED
package/cjs/text-box.js
CHANGED
package/cjs/tile-view.d.ts
CHANGED
package/cjs/tile-view.js
CHANGED
package/cjs/toast.d.ts
CHANGED
package/cjs/toast.js
CHANGED
package/cjs/toolbar.d.ts
CHANGED
package/cjs/toolbar.js
CHANGED
package/cjs/tooltip.d.ts
CHANGED
package/cjs/tooltip.js
CHANGED
package/cjs/tree-list.d.ts
CHANGED
package/cjs/tree-list.js
CHANGED
package/cjs/tree-map.d.ts
CHANGED
package/cjs/tree-map.js
CHANGED
package/cjs/tree-view.d.ts
CHANGED
package/cjs/tree-view.js
CHANGED
package/cjs/validation-group.js
CHANGED