devextreme-react 23.2.1-alpha-23255-1813 → 23.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 +2 -2
- package/cjs/accordion.js +3 -2
- package/cjs/action-sheet.d.ts +2 -2
- package/cjs/action-sheet.js +3 -2
- package/cjs/autocomplete.d.ts +2 -2
- package/cjs/autocomplete.js +5 -3
- package/cjs/bar-gauge.d.ts +18 -18
- package/cjs/bar-gauge.js +3 -2
- package/cjs/box.d.ts +3 -3
- package/cjs/box.js +3 -2
- package/cjs/bullet.d.ts +4 -4
- package/cjs/bullet.js +3 -2
- package/cjs/button-group.d.ts +2 -2
- package/cjs/button-group.js +3 -2
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +3 -2
- package/cjs/calendar.d.ts +2 -2
- package/cjs/calendar.js +3 -2
- package/cjs/chart.d.ts +60 -61
- package/cjs/chart.js +3 -2
- package/cjs/check-box.d.ts +2 -2
- package/cjs/check-box.js +3 -2
- package/cjs/circular-gauge.d.ts +13 -14
- package/cjs/circular-gauge.js +3 -2
- package/cjs/color-box.d.ts +2 -2
- package/cjs/color-box.js +5 -3
- package/cjs/common/charts.d.ts +3 -3
- 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 +2 -2
- package/cjs/context-menu.js +3 -2
- package/cjs/core/component-base.d.ts +13 -6
- package/cjs/core/component-base.js +81 -32
- 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/react/tree.d.ts +2 -2
- package/cjs/core/configuration/react/tree.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/extension-component.d.ts +2 -2
- package/cjs/core/extension-component.js +2 -2
- package/cjs/core/helpers.d.ts +14 -3
- package/cjs/core/helpers.js +155 -4
- package/cjs/core/nested-option.d.ts +2 -2
- package/cjs/core/nested-option.js +2 -2
- package/cjs/core/options-manager.d.ts +7 -6
- package/cjs/core/options-manager.js +37 -22
- package/cjs/core/template-manager.d.ts +16 -0
- package/cjs/core/template-manager.js +180 -0
- package/cjs/core/template-wrapper.d.ts +4 -29
- package/cjs/core/template-wrapper.js +93 -97
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +2 -2
- package/cjs/core/types.d.ts +59 -0
- package/cjs/core/types.js +15 -0
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +2 -2
- package/cjs/data-grid.d.ts +5 -12
- package/cjs/data-grid.js +3 -2
- package/cjs/date-box.d.ts +2 -2
- package/cjs/date-box.js +5 -3
- package/cjs/date-range-box.d.ts +2 -2
- package/cjs/date-range-box.js +5 -3
- package/cjs/defer-rendering.d.ts +2 -2
- package/cjs/defer-rendering.js +3 -2
- package/cjs/diagram.d.ts +2 -2
- package/cjs/diagram.js +3 -2
- package/cjs/draggable.d.ts +2 -2
- package/cjs/draggable.js +3 -2
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +3 -2
- package/cjs/drop-down-box.d.ts +2 -2
- package/cjs/drop-down-box.js +5 -3
- package/cjs/drop-down-button.d.ts +2 -2
- package/cjs/drop-down-button.js +12 -2
- package/cjs/file-manager.d.ts +2 -2
- package/cjs/file-manager.js +3 -2
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +3 -2
- package/cjs/filter-builder.d.ts +2 -2
- package/cjs/filter-builder.js +3 -2
- package/cjs/form.d.ts +2 -2
- package/cjs/form.js +3 -2
- package/cjs/funnel.d.ts +18 -18
- package/cjs/funnel.js +3 -2
- package/cjs/gallery.d.ts +2 -2
- package/cjs/gallery.js +3 -2
- package/cjs/gantt.d.ts +2 -2
- package/cjs/gantt.js +3 -2
- package/cjs/html-editor.d.ts +2 -2
- package/cjs/html-editor.js +3 -2
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/linear-gauge.d.ts +13 -14
- package/cjs/linear-gauge.js +3 -2
- package/cjs/list.d.ts +3 -3
- package/cjs/list.js +3 -2
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +3 -2
- package/cjs/load-panel.d.ts +2 -2
- package/cjs/load-panel.js +3 -2
- package/cjs/lookup.d.ts +2 -2
- package/cjs/lookup.js +5 -3
- package/cjs/map.d.ts +2 -2
- package/cjs/map.js +3 -2
- package/cjs/menu.d.ts +2 -2
- package/cjs/menu.js +3 -2
- package/cjs/multi-view.d.ts +2 -2
- package/cjs/multi-view.js +3 -2
- package/cjs/number-box.d.ts +2 -2
- package/cjs/number-box.js +5 -3
- package/cjs/pie-chart.d.ts +22 -23
- package/cjs/pie-chart.js +3 -2
- package/cjs/pivot-grid-field-chooser.d.ts +2 -2
- package/cjs/pivot-grid-field-chooser.js +3 -2
- package/cjs/pivot-grid.d.ts +2 -2
- package/cjs/pivot-grid.js +3 -2
- package/cjs/polar-chart.d.ts +46 -47
- package/cjs/polar-chart.js +3 -2
- package/cjs/popover.d.ts +2 -2
- package/cjs/popover.js +3 -2
- package/cjs/popup.d.ts +2 -2
- package/cjs/popup.js +3 -2
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +3 -2
- package/cjs/radio-group.d.ts +2 -2
- package/cjs/radio-group.js +3 -2
- package/cjs/range-selector.d.ts +14 -15
- package/cjs/range-selector.js +3 -2
- package/cjs/range-slider.d.ts +2 -2
- package/cjs/range-slider.js +3 -2
- package/cjs/recurrence-editor.d.ts +2 -2
- package/cjs/recurrence-editor.js +3 -2
- package/cjs/resizable.d.ts +2 -2
- package/cjs/resizable.js +3 -2
- package/cjs/responsive-box.d.ts +4 -4
- package/cjs/responsive-box.js +3 -2
- package/cjs/sankey.d.ts +9 -9
- package/cjs/sankey.js +3 -2
- package/cjs/scheduler.d.ts +3 -2
- package/cjs/scheduler.js +4 -2
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +3 -2
- package/cjs/select-box.d.ts +2 -2
- package/cjs/select-box.js +5 -3
- package/cjs/slider.d.ts +2 -2
- package/cjs/slider.js +3 -2
- package/cjs/sortable.d.ts +2 -2
- package/cjs/sortable.js +3 -2
- package/cjs/sparkline.d.ts +4 -4
- package/cjs/sparkline.js +3 -2
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +3 -2
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +3 -2
- package/cjs/tab-panel.d.ts +2 -2
- package/cjs/tab-panel.js +3 -2
- package/cjs/tabs.d.ts +2 -2
- package/cjs/tabs.js +3 -2
- package/cjs/tag-box.d.ts +2 -2
- package/cjs/tag-box.js +5 -3
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +5 -3
- package/cjs/text-box.d.ts +2 -2
- package/cjs/text-box.js +5 -3
- package/cjs/tile-view.d.ts +2 -2
- package/cjs/tile-view.js +3 -2
- package/cjs/toast.d.ts +2 -2
- package/cjs/toast.js +3 -2
- package/cjs/toolbar.d.ts +2 -2
- package/cjs/toolbar.js +3 -2
- package/cjs/tooltip.d.ts +2 -2
- package/cjs/tooltip.js +3 -2
- package/cjs/tree-list.d.ts +2 -2
- package/cjs/tree-list.js +3 -2
- package/cjs/tree-map.d.ts +13 -13
- package/cjs/tree-map.js +3 -2
- package/cjs/tree-view.d.ts +3 -3
- package/cjs/tree-view.js +3 -2
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +3 -2
- package/cjs/validation-summary.d.ts +2 -2
- package/cjs/validation-summary.js +3 -2
- package/cjs/validator.d.ts +2 -2
- package/cjs/validator.js +3 -2
- package/cjs/vector-map.d.ts +21 -21
- package/cjs/vector-map.js +3 -2
- package/core/component/package.json +6 -0
- package/core/config/package.json +6 -0
- package/core/extension-component/package.json +6 -0
- package/core/nested-option/package.json +6 -0
- package/esm/accordion.js +3 -2
- package/esm/action-sheet.js +3 -2
- package/esm/autocomplete.js +5 -3
- package/esm/bar-gauge.js +3 -2
- package/esm/box.js +3 -2
- package/esm/bullet.js +3 -2
- package/esm/button-group.js +3 -2
- package/esm/button.js +3 -2
- package/esm/calendar.js +3 -2
- package/esm/chart.js +3 -2
- package/esm/check-box.js +3 -2
- package/esm/circular-gauge.js +3 -2
- package/esm/color-box.js +5 -3
- 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 +3 -2
- package/esm/core/component-base.js +82 -30
- 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/react/tree.js +2 -2
- package/esm/core/configuration/tree.js +2 -2
- package/esm/core/configuration/utils.js +2 -2
- package/esm/core/extension-component.js +2 -2
- package/esm/core/helpers.js +154 -3
- package/esm/core/nested-option.js +2 -2
- package/esm/core/options-manager.js +37 -22
- package/esm/core/template-manager.js +157 -0
- package/esm/core/template-wrapper.js +93 -97
- package/esm/core/template.js +2 -2
- package/esm/core/types.js +14 -0
- package/esm/core/widget-config.js +2 -2
- package/esm/data-grid.js +3 -2
- package/esm/date-box.js +5 -3
- package/esm/date-range-box.js +5 -3
- package/esm/defer-rendering.js +3 -2
- package/esm/diagram.js +3 -2
- package/esm/draggable.js +3 -2
- package/esm/drawer.js +3 -2
- package/esm/drop-down-box.js +5 -3
- package/esm/drop-down-button.js +12 -2
- package/esm/file-manager.js +3 -2
- package/esm/file-uploader.js +3 -2
- package/esm/filter-builder.js +3 -2
- package/esm/form.js +3 -2
- package/esm/funnel.js +3 -2
- package/esm/gallery.js +3 -2
- package/esm/gantt.js +3 -2
- package/esm/html-editor.js +3 -2
- package/esm/index.js +2 -2
- package/esm/linear-gauge.js +3 -2
- package/esm/list.js +3 -2
- package/esm/load-indicator.js +3 -2
- package/esm/load-panel.js +3 -2
- package/esm/lookup.js +5 -3
- package/esm/map.js +3 -2
- package/esm/menu.js +3 -2
- package/esm/multi-view.js +3 -2
- package/esm/number-box.js +5 -3
- package/esm/pie-chart.js +3 -2
- package/esm/pivot-grid-field-chooser.js +3 -2
- package/esm/pivot-grid.js +3 -2
- package/esm/polar-chart.js +3 -2
- package/esm/popover.js +3 -2
- package/esm/popup.js +3 -2
- package/esm/progress-bar.js +3 -2
- package/esm/radio-group.js +3 -2
- package/esm/range-selector.js +3 -2
- package/esm/range-slider.js +3 -2
- package/esm/recurrence-editor.js +3 -2
- package/esm/resizable.js +3 -2
- package/esm/responsive-box.js +3 -2
- package/esm/sankey.js +3 -2
- package/esm/scheduler.js +4 -2
- package/esm/scroll-view.js +3 -2
- package/esm/select-box.js +5 -3
- package/esm/slider.js +3 -2
- package/esm/sortable.js +3 -2
- package/esm/sparkline.js +3 -2
- package/esm/speed-dial-action.js +3 -2
- package/esm/switch.js +3 -2
- package/esm/tab-panel.js +3 -2
- package/esm/tabs.js +3 -2
- package/esm/tag-box.js +5 -3
- package/esm/text-area.js +5 -3
- package/esm/text-box.js +5 -3
- package/esm/tile-view.js +3 -2
- package/esm/toast.js +3 -2
- package/esm/toolbar.js +3 -2
- package/esm/tooltip.js +3 -2
- package/esm/tree-list.js +3 -2
- package/esm/tree-map.js +3 -2
- package/esm/tree-view.js +3 -2
- package/esm/validation-group.js +3 -2
- package/esm/validation-summary.js +3 -2
- package/esm/validator.js +3 -2
- package/esm/vector-map.js +3 -2
- package/package.json +5 -6
- package/cjs/core/dx-template.d.ts +0 -26
- package/cjs/core/dx-template.js +0 -99
- package/cjs/core/templates-manager.d.ts +0 -25
- package/cjs/core/templates-manager.js +0 -88
- package/cjs/core/templates-renderer.d.ts +0 -28
- package/cjs/core/templates-renderer.js +0 -103
- package/cjs/core/templates-store.d.ts +0 -24
- package/cjs/core/templates-store.js +0 -50
- package/esm/core/dx-template.js +0 -77
- package/esm/core/templates-manager.js +0 -67
- package/esm/core/templates-renderer.js +0 -81
- package/esm/core/templates-store.js +0 -47
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -12,21 +12,6 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
15
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
31
16
|
if (k2 === undefined) k2 = k;
|
|
32
17
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -46,95 +31,106 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
46
31
|
__setModuleDefault(result, mod);
|
|
47
32
|
return result;
|
|
48
33
|
};
|
|
34
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
35
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
36
|
+
if (!m) return o;
|
|
37
|
+
var i = m.call(o), r, ar = [], e;
|
|
38
|
+
try {
|
|
39
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
40
|
+
}
|
|
41
|
+
catch (error) { e = { error: error }; }
|
|
42
|
+
finally {
|
|
43
|
+
try {
|
|
44
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
45
|
+
}
|
|
46
|
+
finally { if (e) throw e.error; }
|
|
47
|
+
}
|
|
48
|
+
return ar;
|
|
49
|
+
};
|
|
49
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
51
|
exports.TemplateWrapper = void 0;
|
|
51
|
-
var events = __importStar(require("devextreme/events"));
|
|
52
52
|
var React = __importStar(require("react"));
|
|
53
|
-
var
|
|
53
|
+
var events = __importStar(require("devextreme/events"));
|
|
54
|
+
var react_1 = require("react");
|
|
55
|
+
var react_dom_1 = require("react-dom");
|
|
54
56
|
var component_base_1 = require("./component-base");
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
_this._removalListenerRef = React.createRef();
|
|
66
|
-
_this.state = { removalListenerRequired: false };
|
|
67
|
-
_this._onDxRemove = _this._onDxRemove.bind(_this);
|
|
68
|
-
_this.getPreviousSiblingNode = _this.getPreviousSiblingNode.bind(_this);
|
|
69
|
-
return _this;
|
|
57
|
+
var helpers_1 = require("./helpers");
|
|
58
|
+
var createHiddenNode = function (containerNodeName, ref, defaultElement) {
|
|
59
|
+
var style = { display: 'none' };
|
|
60
|
+
switch (containerNodeName) {
|
|
61
|
+
case 'TABLE':
|
|
62
|
+
return React.createElement("tbody", { style: style, ref: ref });
|
|
63
|
+
case 'TBODY':
|
|
64
|
+
return React.createElement("tr", { style: style, ref: ref });
|
|
65
|
+
default:
|
|
66
|
+
return React.createElement(defaultElement, { style: style, ref: ref });
|
|
70
67
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
|
|
68
|
+
};
|
|
69
|
+
var TemplateWrapperComponent = function (_a) {
|
|
70
|
+
var templateFactory = _a.templateFactory, data = _a.data, index = _a.index, container = _a.container, onRemoved = _a.onRemoved, onRendered = _a.onRendered;
|
|
71
|
+
var _b = __read(react_1.useState(false), 2), removalListenerRequired = _b[0], setRemovalListenerRequired = _b[1];
|
|
72
|
+
var isRemovalLocked = react_1.useRef(false);
|
|
73
|
+
var removalLocker = react_1.useMemo(function () { return ({
|
|
74
|
+
lock: function () { isRemovalLocked.current = true; },
|
|
75
|
+
unlock: function () { isRemovalLocked.current = false; },
|
|
76
|
+
}); }, []);
|
|
77
|
+
var element = react_1.useRef();
|
|
78
|
+
var hiddenNodeElement = react_1.useRef();
|
|
79
|
+
var removalListenerElement = react_1.useRef();
|
|
80
|
+
var onTemplateRemoved = react_1.useCallback(function (_, args) {
|
|
81
|
+
if ((args === null || args === void 0 ? void 0 : args.isUnmounting) || isRemovalLocked) {
|
|
82
|
+
return;
|
|
86
83
|
}
|
|
87
|
-
if (
|
|
88
|
-
|
|
84
|
+
if (element.current) {
|
|
85
|
+
events.off(element.current, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
89
86
|
}
|
|
90
|
-
if (
|
|
91
|
-
|
|
87
|
+
if (removalListenerElement.current) {
|
|
88
|
+
events.off(removalListenerElement.current, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
92
89
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
101
|
-
TemplateWrapper.prototype.getPreviousSiblingNode = function (node) {
|
|
102
|
-
this.hiddenElement = node;
|
|
103
|
-
this.element = node === null || node === void 0 ? void 0 : node.previousSibling;
|
|
104
|
-
};
|
|
105
|
-
TemplateWrapper.prototype._subscribeOnRemove = function () {
|
|
106
|
-
var node = this.element;
|
|
107
|
-
var removalListenerRequired = this.state.removalListenerRequired;
|
|
108
|
-
if (node && node.nodeType === Node.ELEMENT_NODE) {
|
|
109
|
-
this._subscribeOnElementRemoval(node);
|
|
110
|
-
return;
|
|
90
|
+
onRemoved();
|
|
91
|
+
}, [onRemoved]);
|
|
92
|
+
react_1.useLayoutEffect(function () {
|
|
93
|
+
var el = element.current;
|
|
94
|
+
if (el) {
|
|
95
|
+
events.off(el, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
96
|
+
events.on(el, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
111
97
|
}
|
|
112
98
|
if (!removalListenerRequired) {
|
|
113
|
-
|
|
114
|
-
return;
|
|
99
|
+
setRemovalListenerRequired(true);
|
|
115
100
|
}
|
|
116
|
-
if (
|
|
117
|
-
|
|
101
|
+
else if (removalListenerElement.current) {
|
|
102
|
+
events.off(removalListenerElement.current, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
103
|
+
events.on(removalListenerElement.current, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
118
104
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
105
|
+
return function () {
|
|
106
|
+
if (element.current) {
|
|
107
|
+
container.appendChild(element.current);
|
|
108
|
+
}
|
|
109
|
+
if (hiddenNodeElement.current) {
|
|
110
|
+
container.appendChild(hiddenNodeElement.current);
|
|
111
|
+
}
|
|
112
|
+
if (removalListenerElement.current) {
|
|
113
|
+
container.appendChild(removalListenerElement.current);
|
|
114
|
+
}
|
|
115
|
+
if (el) {
|
|
116
|
+
events.off(el, component_base_1.DX_REMOVE_EVENT, onTemplateRemoved);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}, [onTemplateRemoved, removalListenerRequired, container]);
|
|
120
|
+
react_1.useEffect(function () {
|
|
121
|
+
onRendered();
|
|
122
|
+
}, [onRendered]);
|
|
123
|
+
var hiddenNode = createHiddenNode(container === null || container === void 0 ? void 0 : container.nodeName, function (node) {
|
|
124
|
+
hiddenNodeElement.current = node;
|
|
125
|
+
element.current = node === null || node === void 0 ? void 0 : node.previousSibling;
|
|
126
|
+
}, 'div');
|
|
127
|
+
var removalListener = removalListenerRequired
|
|
128
|
+
? createHiddenNode(container === null || container === void 0 ? void 0 : container.nodeName, function (node) { removalListenerElement.current = node; }, 'span')
|
|
129
|
+
: undefined;
|
|
130
|
+
return react_dom_1.createPortal(React.createElement(React.Fragment, null,
|
|
131
|
+
React.createElement(helpers_1.RemovalLockerContext.Provider, { value: removalLocker },
|
|
132
|
+
templateFactory({ data: data, index: index, onRendered: onRendered }),
|
|
133
|
+
hiddenNode,
|
|
134
|
+
removalListener)), container);
|
|
135
|
+
};
|
|
136
|
+
exports.TemplateWrapper = react_1.memo(TemplateWrapperComponent);
|
package/cjs/core/template.d.ts
CHANGED
package/cjs/core/template.js
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-react
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2023 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
|
+
import { ITemplate } from './configuration/config-node';
|
|
15
|
+
interface DXTemplate {
|
|
16
|
+
render: RenderFunc;
|
|
17
|
+
}
|
|
18
|
+
declare type RenderFunc = (arg: RenderArgs) => HTMLElement;
|
|
19
|
+
interface TemplateArgs {
|
|
20
|
+
data: any;
|
|
21
|
+
index?: number;
|
|
22
|
+
onRendered: () => void;
|
|
23
|
+
}
|
|
24
|
+
export interface RenderArgs {
|
|
25
|
+
model?: any;
|
|
26
|
+
container: any;
|
|
27
|
+
index?: any;
|
|
28
|
+
onRendered?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export interface UpdateLocker {
|
|
31
|
+
lock: () => void;
|
|
32
|
+
unlock: () => void;
|
|
33
|
+
}
|
|
34
|
+
export declare type DXTemplateCollection = Record<string, DXTemplate>;
|
|
35
|
+
export interface TemplateWrapperProps {
|
|
36
|
+
templateFactory: TemplateFunc;
|
|
37
|
+
data: any;
|
|
38
|
+
index: number;
|
|
39
|
+
container: HTMLElement;
|
|
40
|
+
onRendered: () => void;
|
|
41
|
+
onRemoved: () => void;
|
|
42
|
+
}
|
|
43
|
+
export declare type TemplateFunc = (arg: TemplateArgs) => JSX.Element;
|
|
44
|
+
export declare type DXTemplateCreator = (templateOptions: Record<string, ITemplate>, callback?: () => void) => DXTemplateCollection;
|
|
45
|
+
export interface TemplateManagerProps {
|
|
46
|
+
init: (getDXTemplates: DXTemplateCreator, clearInstantiationModels: () => void) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface TemplateInstantiationModel {
|
|
49
|
+
templateKey: string;
|
|
50
|
+
componentKey: string;
|
|
51
|
+
index: any;
|
|
52
|
+
onRendered: () => void;
|
|
53
|
+
onRemoved: () => void;
|
|
54
|
+
}
|
|
55
|
+
export declare type GetRenderFuncFn = (templateKey: string) => RenderFunc;
|
|
56
|
+
export interface DXRemoveCustomArgs {
|
|
57
|
+
isUnmounting: boolean;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-react
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2023 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 strict";
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/cjs/data-grid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -16,17 +16,17 @@ export { ExplicitTypes } from "devextreme/ui/data_grid";
|
|
|
16
16
|
import dxDataGrid, { Properties } from "devextreme/ui/data_grid";
|
|
17
17
|
import { Component as BaseComponent, IHtmlOptions } from "./core/component";
|
|
18
18
|
import NestedOption from "./core/nested-option";
|
|
19
|
-
import type { dxDataGridColumn, AdaptiveDetailRowPreparingEvent, CellClickEvent, CellDblClickEvent, CellPreparedEvent, ContentReadyEvent, ContextMenuPreparingEvent, DataErrorOccurredEvent, DisposingEvent, EditCanceledEvent, EditCancelingEvent, EditingStartEvent, EditorPreparedEvent, EditorPreparingEvent, ExportingEvent, FocusedCellChangingEvent, FocusedRowChangingEvent, InitializedEvent, InitNewRowEvent, KeyDownEvent, RowClickEvent, RowCollapsedEvent, RowCollapsingEvent, RowDblClickEvent, RowExpandedEvent, RowExpandingEvent, RowInsertedEvent, RowInsertingEvent, RowPreparedEvent, RowRemovedEvent, RowRemovingEvent, RowUpdatedEvent, RowUpdatingEvent, RowValidatingEvent, SavedEvent, SavingEvent, ToolbarPreparingEvent, dxDataGridRowObject, dxDataGridColumnButton, dxDataGridToolbarItem } from "devextreme/ui/data_grid";
|
|
19
|
+
import type { dxDataGridColumn, AdaptiveDetailRowPreparingEvent, CellClickEvent, CellDblClickEvent, CellPreparedEvent, ContentReadyEvent, ContextMenuPreparingEvent, DataErrorOccurredEvent, DisposingEvent, EditCanceledEvent, EditCancelingEvent, EditingStartEvent, EditorPreparedEvent, EditorPreparingEvent, ExportingEvent, FocusedCellChangingEvent, FocusedRowChangingEvent, InitializedEvent, InitNewRowEvent, KeyDownEvent, RowClickEvent, RowCollapsedEvent, RowCollapsingEvent, RowDblClickEvent, RowExpandedEvent, RowExpandingEvent, RowInsertedEvent, RowInsertingEvent, RowPreparedEvent, RowRemovedEvent, RowRemovingEvent, RowUpdatedEvent, RowUpdatingEvent, RowValidatingEvent, SavedEvent, SavingEvent, ToolbarPreparingEvent, dxDataGridRowObject, ColumnButtonClickEvent, dxDataGridColumnButton, dxDataGridToolbarItem } from "devextreme/ui/data_grid";
|
|
20
20
|
import type { DataChange, ColumnHeaderFilterSearchConfig, ColumnChooserSearchConfig, ColumnChooserSelectionConfig, HeaderFilterSearchConfig, GridBase } from "devextreme/common/grids";
|
|
21
21
|
import type { ContentReadyEvent as FilterBuilderContentReadyEvent, DisposingEvent as FilterBuilderDisposingEvent, EditorPreparedEvent as FilterBuilderEditorPreparedEvent, EditorPreparingEvent as FilterBuilderEditorPreparingEvent, InitializedEvent as FilterBuilderInitializedEvent, dxFilterBuilderField, dxFilterBuilderCustomOperation, OptionChangedEvent, ValueChangedEvent } from "devextreme/ui/filter_builder";
|
|
22
22
|
import type { ContentReadyEvent as FormContentReadyEvent, DisposingEvent as FormDisposingEvent, InitializedEvent as FormInitializedEvent, dxFormSimpleItem, dxFormOptions, OptionChangedEvent as FormOptionChangedEvent, dxFormGroupItem, dxFormTabbedItem, dxFormEmptyItem, dxFormButtonItem, EditorEnterKeyEvent, FieldDataChangedEvent } from "devextreme/ui/form";
|
|
23
23
|
import type { AnimationConfig, AnimationState } from "devextreme/animation/fx";
|
|
24
|
-
import type { event, EventInfo } from "devextreme/events/index";
|
|
25
24
|
import type { template } from "devextreme/core/templates/template";
|
|
26
25
|
import type { DataSourceOptions } from "devextreme/data/data_source";
|
|
27
26
|
import type { Store } from "devextreme/data/abstract_store";
|
|
28
27
|
import type { PositionConfig } from "devextreme/animation/position";
|
|
29
28
|
import type { dxPopupOptions, dxPopupToolbarItem } from "devextreme/ui/popup";
|
|
29
|
+
import type { event, EventInfo } from "devextreme/events/index";
|
|
30
30
|
import type { Component } from "devextreme/core/component";
|
|
31
31
|
import type { CollectionWidgetItem } from "devextreme/ui/collection/ui.collection_widget.base";
|
|
32
32
|
import type dxOverlay from "devextreme/ui/overlay";
|
|
@@ -318,14 +318,7 @@ declare type IButtonProps = React.PropsWithChildren<{
|
|
|
318
318
|
hint?: string;
|
|
319
319
|
icon?: string;
|
|
320
320
|
name?: "cancel" | "delete" | "edit" | "save" | "undelete";
|
|
321
|
-
onClick?: ((e:
|
|
322
|
-
column: dxDataGridColumn;
|
|
323
|
-
component: dxDataGrid;
|
|
324
|
-
element: any;
|
|
325
|
-
event: event;
|
|
326
|
-
model: Record<string, any>;
|
|
327
|
-
row: dxDataGridRowObject;
|
|
328
|
-
}) => void);
|
|
321
|
+
onClick?: ((e: ColumnButtonClickEvent) => void);
|
|
329
322
|
template?: ((cellElement: any, cellInfo: {
|
|
330
323
|
column: dxDataGridColumn;
|
|
331
324
|
columnIndex: number;
|
package/cjs/data-grid.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
package/cjs/date-box.d.ts
CHANGED
package/cjs/date-box.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
|
@@ -140,7 +141,8 @@ DateBox.propTypes = {
|
|
|
140
141
|
PropTypes.oneOf([
|
|
141
142
|
"static",
|
|
142
143
|
"floating",
|
|
143
|
-
"hidden"
|
|
144
|
+
"hidden",
|
|
145
|
+
"outside"
|
|
144
146
|
])
|
|
145
147
|
]),
|
|
146
148
|
maxLength: PropTypes.oneOfType([
|
package/cjs/date-range-box.d.ts
CHANGED
package/cjs/date-range-box.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
|
@@ -140,7 +141,8 @@ DateRangeBox.propTypes = {
|
|
|
140
141
|
PropTypes.oneOf([
|
|
141
142
|
"static",
|
|
142
143
|
"floating",
|
|
143
|
-
"hidden"
|
|
144
|
+
"hidden",
|
|
145
|
+
"outside"
|
|
144
146
|
])
|
|
145
147
|
]),
|
|
146
148
|
multiView: PropTypes.bool,
|
package/cjs/defer-rendering.d.ts
CHANGED
package/cjs/defer-rendering.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
package/cjs/diagram.d.ts
CHANGED
package/cjs/diagram.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
package/cjs/draggable.d.ts
CHANGED
package/cjs/draggable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
package/cjs/drawer.d.ts
CHANGED
package/cjs/drawer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
package/cjs/drop-down-box.d.ts
CHANGED
package/cjs/drop-down-box.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 23.2.2-beta
|
|
4
|
+
* Build date: Fri Nov 10 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
"use client";
|
|
14
15
|
"use strict";
|
|
15
16
|
var __extends = (this && this.__extends) || (function () {
|
|
16
17
|
var extendStatics = function (d, b) {
|
|
@@ -128,7 +129,8 @@ DropDownBox.propTypes = {
|
|
|
128
129
|
PropTypes.oneOf([
|
|
129
130
|
"static",
|
|
130
131
|
"floating",
|
|
131
|
-
"hidden"
|
|
132
|
+
"hidden",
|
|
133
|
+
"outside"
|
|
132
134
|
])
|
|
133
135
|
]),
|
|
134
136
|
maxLength: PropTypes.oneOfType([
|