devextreme-react 24.1.2-beta → 24.1.3
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/LICENSE +21 -21
- package/README.md +23 -23
- package/cjs/accordion.d.ts +3 -3
- package/cjs/accordion.js +34 -37
- package/cjs/action-sheet.d.ts +3 -3
- package/cjs/action-sheet.js +34 -37
- package/cjs/autocomplete.d.ts +2 -2
- package/cjs/autocomplete.js +79 -82
- package/cjs/bar-gauge.d.ts +2 -2
- package/cjs/bar-gauge.js +97 -100
- package/cjs/box.d.ts +3 -3
- package/cjs/box.js +34 -37
- package/cjs/bullet.d.ts +2 -2
- package/cjs/bullet.js +44 -50
- package/cjs/button-group.d.ts +2 -2
- package/cjs/button-group.js +34 -37
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +22 -28
- package/cjs/calendar.d.ts +2 -2
- package/cjs/calendar.js +27 -31
- package/cjs/chart.d.ts +2 -2
- package/cjs/chart.js +305 -308
- package/cjs/check-box.d.ts +2 -2
- package/cjs/check-box.js +24 -29
- package/cjs/circular-gauge.d.ts +2 -2
- package/cjs/circular-gauge.js +103 -106
- package/cjs/color-box.d.ts +2 -2
- package/cjs/color-box.js +76 -79
- 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 +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 +3 -3
- package/cjs/context-menu.js +76 -79
- package/cjs/core/component-base.d.ts +2 -2
- package/cjs/core/component-base.js +107 -141
- package/cjs/core/component.d.ts +2 -2
- package/cjs/core/component.js +29 -43
- package/cjs/core/config.d.ts +2 -2
- package/cjs/core/config.js +4 -15
- package/cjs/core/configuration/comparer.d.ts +2 -2
- package/cjs/core/configuration/comparer.js +27 -27
- 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 -3
- package/cjs/core/configuration/react/element.js +10 -10
- package/cjs/core/configuration/react/templates.d.ts +2 -2
- package/cjs/core/configuration/react/templates.js +2 -2
- package/cjs/core/configuration/react/tree.d.ts +2 -2
- package/cjs/core/configuration/react/tree.js +33 -40
- package/cjs/core/configuration/tree.d.ts +2 -2
- package/cjs/core/configuration/tree.js +24 -24
- package/cjs/core/configuration/utils.d.ts +2 -2
- package/cjs/core/configuration/utils.js +12 -17
- package/cjs/core/extension-component.d.ts +2 -2
- package/cjs/core/extension-component.js +20 -35
- package/cjs/core/helpers.d.ts +2 -3
- package/cjs/core/helpers.js +30 -161
- package/cjs/core/nested-option.d.ts +2 -2
- package/cjs/core/nested-option.js +8 -8
- package/cjs/core/options-manager.d.ts +2 -2
- package/cjs/core/options-manager.js +85 -128
- package/cjs/core/template-manager.d.ts +2 -2
- package/cjs/core/template-manager.js +51 -82
- package/cjs/core/template-wrapper.d.ts +2 -2
- package/cjs/core/template-wrapper.js +32 -49
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +4 -4
- package/cjs/core/types.d.ts +2 -2
- package/cjs/core/types.js +2 -2
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +21 -22
- package/cjs/data-grid.d.ts +3 -3
- package/cjs/data-grid.js +290 -292
- package/cjs/date-box.d.ts +2 -2
- package/cjs/date-box.js +83 -85
- package/cjs/date-range-box.d.ts +2 -2
- package/cjs/date-range-box.js +82 -85
- package/cjs/defer-rendering.d.ts +2 -2
- package/cjs/defer-rendering.js +50 -56
- package/cjs/diagram.d.ts +16 -16
- package/cjs/diagram.js +109 -112
- package/cjs/draggable.d.ts +2 -2
- package/cjs/draggable.js +29 -34
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +27 -31
- package/cjs/drop-down-box.d.ts +2 -2
- package/cjs/drop-down-box.js +76 -79
- package/cjs/drop-down-button.d.ts +2 -2
- package/cjs/drop-down-button.js +68 -73
- package/cjs/file-manager.d.ts +2 -2
- package/cjs/file-manager.js +59 -65
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +24 -29
- package/cjs/filter-builder.d.ts +2 -2
- package/cjs/filter-builder.js +47 -50
- package/cjs/form.d.ts +2 -2
- package/cjs/form.js +94 -98
- package/cjs/funnel.d.ts +2 -2
- package/cjs/funnel.js +109 -113
- package/cjs/gallery.d.ts +3 -3
- package/cjs/gallery.js +34 -37
- package/cjs/gantt.d.ts +2 -2
- package/cjs/gantt.js +101 -106
- package/cjs/html-editor.d.ts +2 -2
- package/cjs/html-editor.js +64 -68
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/linear-gauge.d.ts +2 -2
- package/cjs/linear-gauge.js +103 -107
- package/cjs/list.d.ts +3 -3
- package/cjs/list.js +52 -55
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +19 -26
- package/cjs/load-panel.d.ts +2 -2
- package/cjs/load-panel.js +62 -65
- package/cjs/lookup.d.ts +2 -2
- package/cjs/lookup.js +79 -82
- package/cjs/map.d.ts +2 -2
- package/cjs/map.js +46 -50
- package/cjs/menu.d.ts +3 -3
- package/cjs/menu.js +76 -79
- package/cjs/multi-view.d.ts +3 -3
- package/cjs/multi-view.js +34 -37
- package/cjs/number-box.d.ts +2 -2
- package/cjs/number-box.js +37 -41
- package/cjs/pie-chart.d.ts +2 -2
- package/cjs/pie-chart.js +136 -139
- package/cjs/pivot-grid-field-chooser.d.ts +2 -2
- package/cjs/pivot-grid-field-chooser.js +38 -44
- package/cjs/pivot-grid.d.ts +2 -2
- package/cjs/pivot-grid.js +62 -68
- package/cjs/polar-chart.d.ts +2 -2
- package/cjs/polar-chart.js +238 -242
- package/cjs/popover.d.ts +2 -2
- package/cjs/popover.js +74 -76
- package/cjs/popup.d.ts +2 -2
- package/cjs/popup.js +68 -70
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +24 -29
- package/cjs/radio-group.d.ts +2 -2
- package/cjs/radio-group.js +34 -37
- package/cjs/range-selector.d.ts +2 -2
- package/cjs/range-selector.js +208 -212
- package/cjs/range-slider.d.ts +2 -2
- package/cjs/range-slider.js +37 -41
- package/cjs/recurrence-editor.d.ts +2 -2
- package/cjs/recurrence-editor.js +24 -29
- package/cjs/resizable.d.ts +2 -2
- package/cjs/resizable.js +24 -29
- package/cjs/responsive-box.d.ts +3 -3
- package/cjs/responsive-box.js +43 -46
- package/cjs/sankey.d.ts +2 -2
- package/cjs/sankey.js +85 -89
- package/cjs/scheduler.d.ts +2 -2
- package/cjs/scheduler.js +46 -49
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +19 -26
- package/cjs/select-box.d.ts +2 -2
- package/cjs/select-box.js +79 -82
- package/cjs/slider.d.ts +2 -2
- package/cjs/slider.js +37 -41
- package/cjs/sortable.d.ts +2 -2
- package/cjs/sortable.js +29 -34
- package/cjs/sparkline.d.ts +2 -2
- package/cjs/sparkline.js +44 -50
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +19 -26
- package/cjs/splitter.d.ts +6 -6
- package/cjs/splitter.js +34 -37
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +24 -29
- package/cjs/tab-panel.d.ts +3 -3
- package/cjs/tab-panel.js +34 -37
- package/cjs/tabs.d.ts +3 -3
- package/cjs/tabs.js +34 -37
- package/cjs/tag-box.d.ts +2 -2
- package/cjs/tag-box.js +79 -82
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +24 -29
- package/cjs/text-box.d.ts +2 -2
- package/cjs/text-box.js +34 -38
- package/cjs/tile-view.d.ts +3 -3
- package/cjs/tile-view.js +34 -37
- package/cjs/toast.d.ts +2 -2
- package/cjs/toast.js +65 -67
- package/cjs/toolbar.d.ts +3 -3
- package/cjs/toolbar.js +34 -37
- package/cjs/tooltip.d.ts +2 -2
- package/cjs/tooltip.js +71 -73
- package/cjs/tree-list.d.ts +3 -3
- package/cjs/tree-list.js +250 -254
- package/cjs/tree-map.d.ts +2 -2
- package/cjs/tree-map.js +91 -95
- package/cjs/tree-view.d.ts +3 -3
- package/cjs/tree-view.js +43 -46
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +19 -26
- package/cjs/validation-summary.d.ts +3 -3
- package/cjs/validation-summary.js +34 -37
- package/cjs/validator.d.ts +2 -2
- package/cjs/validator.js +57 -63
- package/cjs/vector-map.d.ts +2 -2
- package/cjs/vector-map.js +106 -110
- package/esm/accordion.js +29 -32
- package/esm/action-sheet.js +29 -32
- package/esm/autocomplete.js +74 -77
- package/esm/bar-gauge.js +92 -95
- package/esm/box.js +29 -32
- package/esm/bullet.js +39 -45
- package/esm/button-group.js +29 -32
- package/esm/button.js +18 -24
- package/esm/calendar.js +23 -27
- package/esm/chart.js +300 -303
- package/esm/check-box.js +20 -25
- package/esm/circular-gauge.js +98 -101
- package/esm/color-box.js +71 -74
- 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 +71 -74
- package/esm/core/component-base.js +94 -131
- package/esm/core/component.js +25 -39
- package/esm/core/config.js +4 -15
- package/esm/core/configuration/comparer.js +25 -25
- package/esm/core/configuration/config-node.js +2 -2
- package/esm/core/configuration/react/element.js +9 -9
- package/esm/core/configuration/react/templates.js +2 -2
- package/esm/core/configuration/react/tree.js +28 -35
- package/esm/core/configuration/tree.js +23 -23
- package/esm/core/configuration/utils.js +12 -17
- package/esm/core/extension-component.js +17 -32
- package/esm/core/helpers.js +30 -163
- package/esm/core/nested-option.js +6 -6
- package/esm/core/options-manager.js +81 -124
- package/esm/core/template-manager.js +44 -75
- package/esm/core/template-wrapper.js +27 -44
- package/esm/core/template.js +3 -3
- package/esm/core/types.js +2 -2
- package/esm/core/widget-config.js +21 -22
- package/esm/data-grid.js +285 -287
- package/esm/date-box.js +78 -80
- package/esm/date-range-box.js +77 -80
- package/esm/defer-rendering.js +45 -51
- package/esm/diagram.js +104 -107
- package/esm/draggable.js +24 -29
- package/esm/drawer.js +23 -27
- package/esm/drop-down-box.js +71 -74
- package/esm/drop-down-button.js +63 -68
- package/esm/file-manager.js +54 -60
- package/esm/file-uploader.js +20 -25
- package/esm/filter-builder.js +42 -45
- package/esm/form.js +89 -93
- package/esm/funnel.js +104 -108
- package/esm/gallery.js +29 -32
- package/esm/gantt.js +96 -101
- package/esm/html-editor.js +59 -63
- package/esm/index.js +2 -2
- package/esm/linear-gauge.js +98 -102
- package/esm/list.js +47 -50
- package/esm/load-indicator.js +15 -22
- package/esm/load-panel.js +57 -60
- package/esm/lookup.js +74 -77
- package/esm/map.js +41 -45
- package/esm/menu.js +71 -74
- package/esm/multi-view.js +29 -32
- package/esm/number-box.js +32 -36
- package/esm/pie-chart.js +131 -134
- package/esm/pivot-grid-field-chooser.js +33 -39
- package/esm/pivot-grid.js +57 -63
- package/esm/polar-chart.js +233 -237
- package/esm/popover.js +69 -71
- package/esm/popup.js +63 -65
- package/esm/progress-bar.js +20 -25
- package/esm/radio-group.js +29 -32
- package/esm/range-selector.js +203 -207
- package/esm/range-slider.js +32 -36
- package/esm/recurrence-editor.js +20 -25
- package/esm/resizable.js +20 -25
- package/esm/responsive-box.js +38 -41
- package/esm/sankey.js +80 -84
- package/esm/scheduler.js +41 -44
- package/esm/scroll-view.js +15 -22
- package/esm/select-box.js +74 -77
- package/esm/slider.js +32 -36
- package/esm/sortable.js +24 -29
- package/esm/sparkline.js +39 -45
- package/esm/speed-dial-action.js +15 -22
- package/esm/splitter.js +29 -32
- package/esm/switch.js +20 -25
- package/esm/tab-panel.js +29 -32
- package/esm/tabs.js +29 -32
- package/esm/tag-box.js +74 -77
- package/esm/text-area.js +20 -25
- package/esm/text-box.js +29 -33
- package/esm/tile-view.js +29 -32
- package/esm/toast.js +60 -62
- package/esm/toolbar.js +29 -32
- package/esm/tooltip.js +66 -68
- package/esm/tree-list.js +245 -249
- package/esm/tree-map.js +86 -90
- package/esm/tree-view.js +38 -41
- package/esm/validation-group.js +15 -22
- package/esm/validation-summary.js +29 -32
- package/esm/validator.js +52 -58
- package/esm/vector-map.js +101 -105
- package/package.json +50 -51
package/cjs/sankey.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.1.3
|
|
4
|
+
* Build date: Tue Jun 11 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -13,17 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
"use client";
|
|
15
15
|
"use strict";
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
16
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
17
|
if (k2 === undefined) k2 = k;
|
|
29
18
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -52,25 +41,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
41
|
};
|
|
53
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
43
|
exports.TooltipBorder = exports.Tooltip = exports.Title = exports.Subtitle = exports.Size = exports.Shadow = exports.Sankeyborder = exports.Node = exports.Margin = exports.LoadingIndicator = exports.Link = exports.Label = exports.HoverStyle = exports.Hatching = exports.Format = exports.Font = exports.Export = exports.Border = exports.AdaptiveLayout = exports.Sankey = void 0;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(0, react_1.useImperativeHandle)(ref,
|
|
63
|
-
instance
|
|
64
|
-
|
|
65
|
-
return (_a = baseRef.current) === null || _a === void 0 ? void 0 : _a.getInstance();
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const sankey_1 = __importDefault(require("devextreme/viz/sankey"));
|
|
47
|
+
const component_1 = require("./core/component");
|
|
48
|
+
const nested_option_1 = __importDefault(require("./core/nested-option"));
|
|
49
|
+
const Sankey = (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();
|
|
66
54
|
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
}), [baseRef.current]);
|
|
56
|
+
const subscribableOptions = (0, react_1.useMemo)(() => (["loadingIndicator", "loadingIndicator.show"]), []);
|
|
57
|
+
const independentEvents = (0, react_1.useMemo)(() => (["onDisposing", "onDrawn", "onExported", "onExporting", "onFileSaving", "onIncidentOccurred", "onInitialized", "onLinkClick", "onNodeClick"]), []);
|
|
58
|
+
const defaults = (0, react_1.useMemo)(() => ({
|
|
71
59
|
defaultLoadingIndicator: "loadingIndicator",
|
|
72
|
-
})
|
|
73
|
-
|
|
60
|
+
}), []);
|
|
61
|
+
const expectedChildren = (0, react_1.useMemo)(() => ({
|
|
74
62
|
adaptiveLayout: { optionName: "adaptiveLayout", isCollectionItem: false },
|
|
75
63
|
export: { optionName: "export", isCollectionItem: false },
|
|
76
64
|
label: { optionName: "label", isCollectionItem: false },
|
|
@@ -81,63 +69,71 @@ var Sankey = (0, react_1.memo)((0, react_1.forwardRef)(function (props, ref) {
|
|
|
81
69
|
size: { optionName: "size", isCollectionItem: false },
|
|
82
70
|
title: { optionName: "title", isCollectionItem: false },
|
|
83
71
|
tooltip: { optionName: "tooltip", isCollectionItem: false }
|
|
84
|
-
})
|
|
85
|
-
return (React.createElement((component_1.Component),
|
|
72
|
+
}), []);
|
|
73
|
+
return (React.createElement((component_1.Component), {
|
|
74
|
+
WidgetClass: sankey_1.default,
|
|
75
|
+
ref: baseRef,
|
|
76
|
+
subscribableOptions,
|
|
77
|
+
independentEvents,
|
|
78
|
+
defaults,
|
|
79
|
+
expectedChildren,
|
|
80
|
+
...props,
|
|
81
|
+
}));
|
|
86
82
|
}));
|
|
87
83
|
exports.Sankey = Sankey;
|
|
88
|
-
|
|
89
|
-
return React.createElement((nested_option_1.default),
|
|
84
|
+
const _componentAdaptiveLayout = (0, react_1.memo)((props) => {
|
|
85
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
90
86
|
});
|
|
91
|
-
|
|
87
|
+
const AdaptiveLayout = Object.assign(_componentAdaptiveLayout, {
|
|
92
88
|
OptionName: "adaptiveLayout",
|
|
93
89
|
});
|
|
94
90
|
exports.AdaptiveLayout = AdaptiveLayout;
|
|
95
|
-
|
|
96
|
-
return React.createElement((nested_option_1.default),
|
|
91
|
+
const _componentBorder = (0, react_1.memo)((props) => {
|
|
92
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
97
93
|
});
|
|
98
|
-
|
|
94
|
+
const Border = Object.assign(_componentBorder, {
|
|
99
95
|
OptionName: "border",
|
|
100
96
|
});
|
|
101
97
|
exports.Border = Border;
|
|
102
|
-
|
|
103
|
-
return React.createElement((nested_option_1.default),
|
|
98
|
+
const _componentExport = (0, react_1.memo)((props) => {
|
|
99
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
104
100
|
});
|
|
105
|
-
|
|
101
|
+
const Export = Object.assign(_componentExport, {
|
|
106
102
|
OptionName: "export",
|
|
107
103
|
});
|
|
108
104
|
exports.Export = Export;
|
|
109
|
-
|
|
110
|
-
return React.createElement((nested_option_1.default),
|
|
105
|
+
const _componentFont = (0, react_1.memo)((props) => {
|
|
106
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
111
107
|
});
|
|
112
|
-
|
|
108
|
+
const Font = Object.assign(_componentFont, {
|
|
113
109
|
OptionName: "font",
|
|
114
110
|
});
|
|
115
111
|
exports.Font = Font;
|
|
116
|
-
|
|
117
|
-
return React.createElement((nested_option_1.default),
|
|
112
|
+
const _componentFormat = (0, react_1.memo)((props) => {
|
|
113
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
118
114
|
});
|
|
119
|
-
|
|
115
|
+
const Format = Object.assign(_componentFormat, {
|
|
120
116
|
OptionName: "format",
|
|
121
117
|
});
|
|
122
118
|
exports.Format = Format;
|
|
123
|
-
|
|
124
|
-
return React.createElement((nested_option_1.default),
|
|
119
|
+
const _componentHatching = (0, react_1.memo)((props) => {
|
|
120
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
125
121
|
});
|
|
126
|
-
|
|
122
|
+
const Hatching = Object.assign(_componentHatching, {
|
|
127
123
|
OptionName: "hatching",
|
|
128
124
|
});
|
|
129
125
|
exports.Hatching = Hatching;
|
|
130
|
-
|
|
131
|
-
return React.createElement((nested_option_1.default),
|
|
126
|
+
const _componentHoverStyle = (0, react_1.memo)((props) => {
|
|
127
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
132
128
|
});
|
|
133
|
-
|
|
129
|
+
const HoverStyle = Object.assign(_componentHoverStyle, {
|
|
134
130
|
OptionName: "hoverStyle",
|
|
135
131
|
});
|
|
136
132
|
exports.HoverStyle = HoverStyle;
|
|
137
|
-
|
|
138
|
-
return React.createElement((nested_option_1.default),
|
|
133
|
+
const _componentLabel = (0, react_1.memo)((props) => {
|
|
134
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
139
135
|
});
|
|
140
|
-
|
|
136
|
+
const Label = Object.assign(_componentLabel, {
|
|
141
137
|
OptionName: "label",
|
|
142
138
|
ExpectedChildren: {
|
|
143
139
|
border: { optionName: "border", isCollectionItem: false },
|
|
@@ -147,10 +143,10 @@ var Label = Object.assign(_componentLabel, {
|
|
|
147
143
|
},
|
|
148
144
|
});
|
|
149
145
|
exports.Label = Label;
|
|
150
|
-
|
|
151
|
-
return React.createElement((nested_option_1.default),
|
|
146
|
+
const _componentLink = (0, react_1.memo)((props) => {
|
|
147
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
152
148
|
});
|
|
153
|
-
|
|
149
|
+
const Link = Object.assign(_componentLink, {
|
|
154
150
|
OptionName: "link",
|
|
155
151
|
ExpectedChildren: {
|
|
156
152
|
border: { optionName: "border", isCollectionItem: false },
|
|
@@ -159,10 +155,10 @@ var Link = Object.assign(_componentLink, {
|
|
|
159
155
|
},
|
|
160
156
|
});
|
|
161
157
|
exports.Link = Link;
|
|
162
|
-
|
|
163
|
-
return React.createElement((nested_option_1.default),
|
|
158
|
+
const _componentLoadingIndicator = (0, react_1.memo)((props) => {
|
|
159
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
164
160
|
});
|
|
165
|
-
|
|
161
|
+
const LoadingIndicator = Object.assign(_componentLoadingIndicator, {
|
|
166
162
|
OptionName: "loadingIndicator",
|
|
167
163
|
DefaultsProps: {
|
|
168
164
|
defaultShow: "show"
|
|
@@ -172,17 +168,17 @@ var LoadingIndicator = Object.assign(_componentLoadingIndicator, {
|
|
|
172
168
|
},
|
|
173
169
|
});
|
|
174
170
|
exports.LoadingIndicator = LoadingIndicator;
|
|
175
|
-
|
|
176
|
-
return React.createElement((nested_option_1.default),
|
|
171
|
+
const _componentMargin = (0, react_1.memo)((props) => {
|
|
172
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
177
173
|
});
|
|
178
|
-
|
|
174
|
+
const Margin = Object.assign(_componentMargin, {
|
|
179
175
|
OptionName: "margin",
|
|
180
176
|
});
|
|
181
177
|
exports.Margin = Margin;
|
|
182
|
-
|
|
183
|
-
return React.createElement((nested_option_1.default),
|
|
178
|
+
const _componentNode = (0, react_1.memo)((props) => {
|
|
179
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
184
180
|
});
|
|
185
|
-
|
|
181
|
+
const Node = Object.assign(_componentNode, {
|
|
186
182
|
OptionName: "node",
|
|
187
183
|
ExpectedChildren: {
|
|
188
184
|
border: { optionName: "border", isCollectionItem: false },
|
|
@@ -191,41 +187,41 @@ var Node = Object.assign(_componentNode, {
|
|
|
191
187
|
},
|
|
192
188
|
});
|
|
193
189
|
exports.Node = Node;
|
|
194
|
-
|
|
195
|
-
return React.createElement((nested_option_1.default),
|
|
190
|
+
const _componentSankeyborder = (0, react_1.memo)((props) => {
|
|
191
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
196
192
|
});
|
|
197
|
-
|
|
193
|
+
const Sankeyborder = Object.assign(_componentSankeyborder, {
|
|
198
194
|
OptionName: "border",
|
|
199
195
|
});
|
|
200
196
|
exports.Sankeyborder = Sankeyborder;
|
|
201
|
-
|
|
202
|
-
return React.createElement((nested_option_1.default),
|
|
197
|
+
const _componentShadow = (0, react_1.memo)((props) => {
|
|
198
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
203
199
|
});
|
|
204
|
-
|
|
200
|
+
const Shadow = Object.assign(_componentShadow, {
|
|
205
201
|
OptionName: "shadow",
|
|
206
202
|
});
|
|
207
203
|
exports.Shadow = Shadow;
|
|
208
|
-
|
|
209
|
-
return React.createElement((nested_option_1.default),
|
|
204
|
+
const _componentSize = (0, react_1.memo)((props) => {
|
|
205
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
210
206
|
});
|
|
211
|
-
|
|
207
|
+
const Size = Object.assign(_componentSize, {
|
|
212
208
|
OptionName: "size",
|
|
213
209
|
});
|
|
214
210
|
exports.Size = Size;
|
|
215
|
-
|
|
216
|
-
return React.createElement((nested_option_1.default),
|
|
211
|
+
const _componentSubtitle = (0, react_1.memo)((props) => {
|
|
212
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
217
213
|
});
|
|
218
|
-
|
|
214
|
+
const Subtitle = Object.assign(_componentSubtitle, {
|
|
219
215
|
OptionName: "subtitle",
|
|
220
216
|
ExpectedChildren: {
|
|
221
217
|
font: { optionName: "font", isCollectionItem: false }
|
|
222
218
|
},
|
|
223
219
|
});
|
|
224
220
|
exports.Subtitle = Subtitle;
|
|
225
|
-
|
|
226
|
-
return React.createElement((nested_option_1.default),
|
|
221
|
+
const _componentTitle = (0, react_1.memo)((props) => {
|
|
222
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
227
223
|
});
|
|
228
|
-
|
|
224
|
+
const Title = Object.assign(_componentTitle, {
|
|
229
225
|
OptionName: "title",
|
|
230
226
|
ExpectedChildren: {
|
|
231
227
|
font: { optionName: "font", isCollectionItem: false },
|
|
@@ -234,10 +230,10 @@ var Title = Object.assign(_componentTitle, {
|
|
|
234
230
|
},
|
|
235
231
|
});
|
|
236
232
|
exports.Title = Title;
|
|
237
|
-
|
|
238
|
-
return React.createElement((nested_option_1.default),
|
|
233
|
+
const _componentTooltip = (0, react_1.memo)((props) => {
|
|
234
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
239
235
|
});
|
|
240
|
-
|
|
236
|
+
const Tooltip = Object.assign(_componentTooltip, {
|
|
241
237
|
OptionName: "tooltip",
|
|
242
238
|
ExpectedChildren: {
|
|
243
239
|
border: { optionName: "border", isCollectionItem: false },
|
|
@@ -257,10 +253,10 @@ var Tooltip = Object.assign(_componentTooltip, {
|
|
|
257
253
|
}],
|
|
258
254
|
});
|
|
259
255
|
exports.Tooltip = Tooltip;
|
|
260
|
-
|
|
261
|
-
return React.createElement((nested_option_1.default),
|
|
256
|
+
const _componentTooltipBorder = (0, react_1.memo)((props) => {
|
|
257
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
262
258
|
});
|
|
263
|
-
|
|
259
|
+
const TooltipBorder = Object.assign(_componentTooltipBorder, {
|
|
264
260
|
OptionName: "border",
|
|
265
261
|
});
|
|
266
262
|
exports.TooltipBorder = TooltipBorder;
|
package/cjs/scheduler.d.ts
CHANGED
package/cjs/scheduler.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.1.3
|
|
4
|
+
* Build date: Tue Jun 11 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -13,17 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
"use client";
|
|
15
15
|
"use strict";
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
16
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
17
|
if (k2 === undefined) k2 = k;
|
|
29
18
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -52,33 +41,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
41
|
};
|
|
53
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
43
|
exports.View = exports.Scrolling = exports.Resource = exports.Editing = exports.AppointmentDragging = exports.Scheduler = void 0;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(0, react_1.useImperativeHandle)(ref,
|
|
63
|
-
instance
|
|
64
|
-
|
|
65
|
-
return (_a = baseRef.current) === null || _a === void 0 ? void 0 : _a.getInstance();
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const scheduler_1 = __importDefault(require("devextreme/ui/scheduler"));
|
|
47
|
+
const component_1 = require("./core/component");
|
|
48
|
+
const nested_option_1 = __importDefault(require("./core/nested-option"));
|
|
49
|
+
const Scheduler = (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();
|
|
66
54
|
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
}), [baseRef.current]);
|
|
56
|
+
const subscribableOptions = (0, react_1.useMemo)(() => (["currentDate", "currentView"]), []);
|
|
57
|
+
const independentEvents = (0, react_1.useMemo)(() => (["onAppointmentAdded", "onAppointmentAdding", "onAppointmentClick", "onAppointmentContextMenu", "onAppointmentDblClick", "onAppointmentDeleted", "onAppointmentDeleting", "onAppointmentFormOpening", "onAppointmentRendered", "onAppointmentTooltipShowing", "onAppointmentUpdated", "onAppointmentUpdating", "onCellClick", "onCellContextMenu", "onContentReady", "onDisposing", "onInitialized"]), []);
|
|
58
|
+
const defaults = (0, react_1.useMemo)(() => ({
|
|
71
59
|
defaultCurrentDate: "currentDate",
|
|
72
60
|
defaultCurrentView: "currentView",
|
|
73
|
-
})
|
|
74
|
-
|
|
61
|
+
}), []);
|
|
62
|
+
const expectedChildren = (0, react_1.useMemo)(() => ({
|
|
75
63
|
appointmentDragging: { optionName: "appointmentDragging", isCollectionItem: false },
|
|
76
64
|
editing: { optionName: "editing", isCollectionItem: false },
|
|
77
65
|
resource: { optionName: "resources", isCollectionItem: true },
|
|
78
66
|
scrolling: { optionName: "scrolling", isCollectionItem: false },
|
|
79
67
|
view: { optionName: "views", isCollectionItem: true }
|
|
80
|
-
})
|
|
81
|
-
|
|
68
|
+
}), []);
|
|
69
|
+
const templateProps = (0, react_1.useMemo)(() => ([
|
|
82
70
|
{
|
|
83
71
|
tmplOption: "appointmentCollectorTemplate",
|
|
84
72
|
render: "appointmentCollectorRender",
|
|
@@ -119,43 +107,52 @@ var Scheduler = (0, react_1.memo)((0, react_1.forwardRef)(function (props, ref)
|
|
|
119
107
|
render: "timeCellRender",
|
|
120
108
|
component: "timeCellComponent"
|
|
121
109
|
},
|
|
122
|
-
])
|
|
123
|
-
return (React.createElement((component_1.Component),
|
|
110
|
+
]), []);
|
|
111
|
+
return (React.createElement((component_1.Component), {
|
|
112
|
+
WidgetClass: scheduler_1.default,
|
|
113
|
+
ref: baseRef,
|
|
114
|
+
subscribableOptions,
|
|
115
|
+
independentEvents,
|
|
116
|
+
defaults,
|
|
117
|
+
expectedChildren,
|
|
118
|
+
templateProps,
|
|
119
|
+
...props,
|
|
120
|
+
}));
|
|
124
121
|
}));
|
|
125
122
|
exports.Scheduler = Scheduler;
|
|
126
|
-
|
|
127
|
-
return React.createElement((nested_option_1.default),
|
|
123
|
+
const _componentAppointmentDragging = (0, react_1.memo)((props) => {
|
|
124
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
128
125
|
});
|
|
129
|
-
|
|
126
|
+
const AppointmentDragging = Object.assign(_componentAppointmentDragging, {
|
|
130
127
|
OptionName: "appointmentDragging",
|
|
131
128
|
});
|
|
132
129
|
exports.AppointmentDragging = AppointmentDragging;
|
|
133
|
-
|
|
134
|
-
return React.createElement((nested_option_1.default),
|
|
130
|
+
const _componentEditing = (0, react_1.memo)((props) => {
|
|
131
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
135
132
|
});
|
|
136
|
-
|
|
133
|
+
const Editing = Object.assign(_componentEditing, {
|
|
137
134
|
OptionName: "editing",
|
|
138
135
|
});
|
|
139
136
|
exports.Editing = Editing;
|
|
140
|
-
|
|
141
|
-
return React.createElement((nested_option_1.default),
|
|
137
|
+
const _componentResource = (0, react_1.memo)((props) => {
|
|
138
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
142
139
|
});
|
|
143
|
-
|
|
140
|
+
const Resource = Object.assign(_componentResource, {
|
|
144
141
|
OptionName: "resources",
|
|
145
142
|
IsCollectionItem: true,
|
|
146
143
|
});
|
|
147
144
|
exports.Resource = Resource;
|
|
148
|
-
|
|
149
|
-
return React.createElement((nested_option_1.default),
|
|
145
|
+
const _componentScrolling = (0, react_1.memo)((props) => {
|
|
146
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
150
147
|
});
|
|
151
|
-
|
|
148
|
+
const Scrolling = Object.assign(_componentScrolling, {
|
|
152
149
|
OptionName: "scrolling",
|
|
153
150
|
});
|
|
154
151
|
exports.Scrolling = Scrolling;
|
|
155
|
-
|
|
156
|
-
return React.createElement((nested_option_1.default),
|
|
152
|
+
const _componentView = (0, react_1.memo)((props) => {
|
|
153
|
+
return React.createElement((nested_option_1.default), { ...props });
|
|
157
154
|
});
|
|
158
|
-
|
|
155
|
+
const View = Object.assign(_componentView, {
|
|
159
156
|
OptionName: "views",
|
|
160
157
|
IsCollectionItem: true,
|
|
161
158
|
ExpectedChildren: {
|
package/cjs/scroll-view.d.ts
CHANGED
package/cjs/scroll-view.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 24.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 24.1.3
|
|
4
|
+
* Build date: Tue Jun 11 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -13,17 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
"use client";
|
|
15
15
|
"use strict";
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
16
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
17
|
if (k2 === undefined) k2 = k;
|
|
29
18
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -52,20 +41,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
41
|
};
|
|
53
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
43
|
exports.ScrollView = void 0;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(0, react_1.useImperativeHandle)(ref,
|
|
62
|
-
instance
|
|
63
|
-
|
|
64
|
-
return (_a = baseRef.current) === null || _a === void 0 ? void 0 : _a.getInstance();
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const scroll_view_1 = __importDefault(require("devextreme/ui/scroll_view"));
|
|
47
|
+
const component_1 = require("./core/component");
|
|
48
|
+
const ScrollView = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
49
|
+
const baseRef = (0, react_1.useRef)(null);
|
|
50
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
51
|
+
instance() {
|
|
52
|
+
return baseRef.current?.getInstance();
|
|
65
53
|
}
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
return (React.createElement((component_1.Component),
|
|
54
|
+
}), [baseRef.current]);
|
|
55
|
+
const independentEvents = (0, react_1.useMemo)(() => (["onDisposing", "onInitialized", "onPullDown", "onReachBottom", "onScroll", "onUpdated"]), []);
|
|
56
|
+
return (React.createElement((component_1.Component), {
|
|
57
|
+
WidgetClass: scroll_view_1.default,
|
|
58
|
+
ref: baseRef,
|
|
59
|
+
independentEvents,
|
|
60
|
+
...props,
|
|
61
|
+
}));
|
|
69
62
|
}));
|
|
70
63
|
exports.ScrollView = ScrollView;
|
|
71
64
|
exports.default = ScrollView;
|